connection pool docu

2004-07-29 Thread Lee Chin Khiong

Is the example in tomcat site document works ? 

I do what it say but not working, especially the taglib?

Anybody knows what problem ?

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or
the jar files deployed with this application

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:50)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409
)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118
)

org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibrary
InfoImpl.java:316)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java
:147)

org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:22
0)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)






Re: SSL Problem need Help!

2004-07-29 Thread Bill Barker
Edit the file by hand, and get rid of the 'keypass' attribute.  There is a
bunch of other stuff you could clean up, but it's mostly aliases of the same
attribute over and over.

"Stephan Kühn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hallo,



i new with Tomcat and i use Tomcat 5.16 with j2re1.4.2_03 on Windows.

So i whnat to configure a server base ssl auth. So i create my cert with xca
my own ca and a serfver cert in pkcs12 format.



So when i try to setup https with webgui after restart the apache/tomcat
service, the service faild to start. Why evey



Here is my server.xml







  

  

  







  

factory

org.apache.catalina.users.MemoryUserDatabaseFactory

  

  

pathname

conf/tomcat-users.xml

  



  

  











  





  



  

  

  

  

  



  





Have anybody i idea for me ??





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



Re: Client Certificate Information not available

2004-07-29 Thread Bill Barker
Try the "javax.servlet.request.X509Certificate" attribute.

"nicolas alin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi !!!
> I'm using Tomcat 5 (stand-alone)
> I'm trying to get the client certificat (i'm doing a strong SSL
identification it's works well)
> but when i try to get te client certificat from my jsp, nothing work...
> is there somting to configure in tomcat ?
> my jsp code is :
> X509Certificate certChain[] =
(X509Certificate[])request.getAttribute("javax.net.ssl.peer_certificates");
> if( certChain != null )
> {
>  for (int i=0; i < certChain.length; i++)
>  {
>   String a = certChain[i].toString();
>   System.out.println(a);
>  }
> }
>
> Tkanks, i really need help :(
>
>
> -
> Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
> Créez votre Yahoo! Mail
>
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés
pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !




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



{Filename?} Returned mail: see transcript for details

2004-07-29 Thread tomcat-user
Warning: This message has had one or more attachments removed
Warning: (transcript.exe).
Warning: Please read the "VirusWarning.txt" attachment(s) for more information.



This is a message from the MailScanner E-Mail Virus Protection Service
--
The original e-mail attachment "transcript.exe"
is on the list of unacceptable attachments for this site and has been
replaced by this warning message.

If you wish to receive a copy of the original attachment, please
e-mail helpdesk and include the whole of this message
in your request. Alternatively, you can call them, with
the contents of this message to hand when you call.

At Fri Jul 30 09:02:46 2004 the virus scanner said:
   MailScanner: Executable DOS/Windows programs are dangerous in email (transcript.exe)

Note to Help Desk: Look on the MailScanner in 
/var/spool/MailScanner/quarantine/20040730 (message 094DB87893).
-- 
Postmaster
Mailscanner thanks transtec Computers for their support

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

will apache handle .do extension?

2004-07-29 Thread Batpurev
Dear all,

I am new to Tomcat+Apache+Mod_JK staff.
What I understand is Tomcat handles all JSP staff that passed to it from
Apache. When when file extension comes to other than JSP maybe 
/ example: search.do?report=y&scode=82 / or just no extension what
happens to this request? Does it goes to Tomcat or Apache? Actually this
request was generated from JSP staff.

What I wanna know is that will only JSP or some fixed files will be
passed to Tomcat? 

Is there any other rule not defined in the httpd.conf or in Tomcats conf
file?

Regards,
Purvee




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



Re: [tomcat] Strange problem with Apache2/Tomcat4

2004-07-29 Thread Harold Pritchett
Ernesto Echeverría wrote:
I'm having problems with mod_jk myself.
Haven't gone thru all your steps, however I'd try to establish whether the
problem is related to mod_jk or incorrect settings of tomcat.
Have you tried accessing the same pages with the tomcat default port 8080
instead of going thru Apache? 

If I immediately connect to http://localhost:8080 (without doing anything to
the servers,) all of the applications work just fine.
Harold
--
Harold Pritchett
[EMAIL PROTECTED]+1.706.546.0692
pgp public key: http://www.arches.uga.edu/~harold/pgpkey.html
"They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
   Benjamin Franklin, Historical Review of Pennsylvania, 1759.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [tomcat] Strange problem with Apache2/Tomcat4

2004-07-29 Thread Ernesto Echeverría
I'm having problems with mod_jk myself.

Haven't gone thru all your steps, however I'd try to establish whether the
problem is related to mod_jk or incorrect settings of tomcat.

Have you tried accessing the same pages with the tomcat default port 8080
instead of going thru Apache? 


José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Harold Pritchett [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 29 de Julio de 2004 06:27 p.m.
To: Tomcat Users List
Subject: [tomcat] Strange problem with Apache2/Tomcat4

Help!

I'm trying to install Apache HTTPD and Jakarta Tomcat and get them to play
nice together.  I've done this before with different releases of the
software, so I can't figure out what I'm doing wrong.

First, the releases of the software I'm using:

SuSE Linux Standard Server 8, done as a "basic" install.  The default Apache
1.3 server was removed with "rpm" before any of this was done.

openssl-0.9.7d
httpd-2.0.50
jakarta-tomcat-4.1.30
jakarta-tomcat-connectors-jk-1.2.5

Sun Java J2SE:  j2sdk-1_4_2_05

Apache is installed in /usr/local/apache2 Tomcat is installed in
/usr/local/jakarta-tomcat-4.1.30
  and then linked to /usr/local/tomcat Java is installed in
/opt/j2sdk1.4.2_05
  and then linked to /usr/lib/java

Some environment variables (some lines wrapped for readability):

 JRE_HOME=/usr/lib/java/jre
 PATH=/usr/lib/java/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:
/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:
/opt/gnome/bin
 JAVA_BINDIR=/usr/lib/java/bin
 JAVA_HOME=/usr/lib/java
 SDK_HOME=/usr/lib/java
 JDK_HOME=/usr/lib/java
 CLASSPATH=/usr/local/tomcat/bin/bootstrap.jar:
/usr/lib/java/lib/tools.jar:
/usr/local/tomcat/common/lib/servlet.jar:.
 JAVA_ROOT=/usr/lib/java
 CATALINA_HOME=/usr/local/tomcat

Finally, here's what I did:

1.  Install SSL in /usr/local/ssl
2.  Install Apache HTTPD.  Used:

 ./configure --prefix=/usr/local/apache2 \
--enable-so --enable-rewrite --enable-ssl \
--with-ssl=/usr/local/ssl --enable-proxy
 make
 su -
 make install
 cd /usr/local/apache2/bin
 ./apachectl start

 Started up a web browser and connected to http://localhost.
 Got the standard "You have installed apache httpd" page.
 The httpd server works fine.

 ./apachectl stop

3.  Install tomcat server.  Used:

 Created user and group "tomcat4"
 Downloaded tomcat 4.1.30 binary distribution to /download/bin
 cd /usr/local
 tar zxf /download/bin/jakarta-tomcat-4.1.30.tar.gz
 ln -s jakarta-tomcat-4.1.30/ tomcat
 chown -R tomcat4.tomcat4 /usr/local/tomcat
 /usr/local/tomcat/bin/startup.sh

 check to see if tomcat is running with "ps ax"
 Started up a web browser and connected to http://localhost:8080.
 Got the standard Tomcat home page.  Clicked on the "JSP Examples"
 link.  Got the "JSP Examples" page.  I then clicked on EVERY
 SINGLE EXAMPLE and made sure it worked.  Ditto for the "Servlet"
 examples.  Everything works fine!  stopped the server with

 /usr/local/tomcat/bin/shutdown.sh

 OK, httpd works fine and tomcat works fine, independently.  Next,
 make them work togehter.

4.  Install the Mod_JK connector.

 download the source for the connector from jakarta.apache.org.

 unpack into a temp directory, configure, and make.

 cd /tmp
 tar zxf
/download/src/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz
 cd jakarta-tomcat-connectors-jk-1.2.5-src/jk/native
 ./buildconf.sh
 ./configure --with-apxs=/usr/local/apache2/bin/apxs
 make
 cd apache-2.0/
 cp mod_jk.so /usr/local/apache2/modules

 now, build the workers.properties file in /usr/local/tomcat/conf/jd

 cd /usr/local/tomcat/conf
 mkdir jk
 cd jk
 vi workers.properties
 cat workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp1
 cd ..


 Edit the server.xml file and make the following changes

 Following the line beginning 

 and following the lines:

   
   

 insert the lines

   

 and finally, edit the /usr/local/apache2/conf/httpd.conf and place
 a line at the very end which says:

Include /usr/local/tomcat/conf/auto/mod_jk.conf

Start Tomcat, wait 30 seconds and start apache

Use a browser and connect to http://localhost.  Get the Apache default
screen.  Connect to http://localhost/examples.  Since this is only defined
as a directory, we get the usual apache display of a directory with three
sub-directories.  Looks exactly like what we would expect.

CLick on "jsp"  Since there is a "index.html" file in this directory, we get
the "JSP Samples" page.  Still exactly what we expected.  Everything is
looking fine so far.

Let's try the first jsp, "n

Strange problem with Apache2/Tomcat4

2004-07-29 Thread Harold Pritchett
Help!
I'm trying to install Apache HTTPD and Jakarta Tomcat and get them
to play nice together.  I've done this before with different
releases of the software, so I can't figure out what I'm doing wrong.
First, the releases of the software I'm using:
SuSE Linux Standard Server 8, done as a "basic" install.  The default
Apache 1.3 server was removed with "rpm" before any of this was done.
openssl-0.9.7d
httpd-2.0.50
jakarta-tomcat-4.1.30
jakarta-tomcat-connectors-jk-1.2.5
Sun Java J2SE:  j2sdk-1_4_2_05
Apache is installed in /usr/local/apache2
Tomcat is installed in /usr/local/jakarta-tomcat-4.1.30
 and then linked to /usr/local/tomcat
Java is installed in /opt/j2sdk1.4.2_05
 and then linked to /usr/lib/java
Some environment variables (some lines wrapped for readability):
JRE_HOME=/usr/lib/java/jre
PATH=/usr/lib/java/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:
/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:
/opt/gnome/bin
JAVA_BINDIR=/usr/lib/java/bin
JAVA_HOME=/usr/lib/java
SDK_HOME=/usr/lib/java
JDK_HOME=/usr/lib/java
CLASSPATH=/usr/local/tomcat/bin/bootstrap.jar:
/usr/lib/java/lib/tools.jar:
/usr/local/tomcat/common/lib/servlet.jar:.
JAVA_ROOT=/usr/lib/java
CATALINA_HOME=/usr/local/tomcat
Finally, here's what I did:
1.  Install SSL in /usr/local/ssl
2.  Install Apache HTTPD.  Used:
./configure --prefix=/usr/local/apache2 \
--enable-so --enable-rewrite --enable-ssl \
--with-ssl=/usr/local/ssl --enable-proxy
make
su -
make install
cd /usr/local/apache2/bin
./apachectl start
Started up a web browser and connected to http://localhost.
Got the standard "You have installed apache httpd" page.
The httpd server works fine.
./apachectl stop
3.  Install tomcat server.  Used:
Created user and group "tomcat4"
Downloaded tomcat 4.1.30 binary distribution to /download/bin
cd /usr/local
tar zxf /download/bin/jakarta-tomcat-4.1.30.tar.gz
ln -s jakarta-tomcat-4.1.30/ tomcat
chown -R tomcat4.tomcat4 /usr/local/tomcat
/usr/local/tomcat/bin/startup.sh
check to see if tomcat is running with "ps ax"
Started up a web browser and connected to http://localhost:8080.
Got the standard Tomcat home page.  Clicked on the "JSP Examples"
link.  Got the "JSP Examples" page.  I then clicked on EVERY
SINGLE EXAMPLE and made sure it worked.  Ditto for the "Servlet"
examples.  Everything works fine!  stopped the server with
/usr/local/tomcat/bin/shutdown.sh
OK, httpd works fine and tomcat works fine, independently.  Next,
make them work togehter.
4.  Install the Mod_JK connector.
download the source for the connector from jakarta.apache.org.
unpack into a temp directory, configure, and make.
cd /tmp
tar zxf /download/src/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz
cd jakarta-tomcat-connectors-jk-1.2.5-src/jk/native
./buildconf.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
cd apache-2.0/
cp mod_jk.so /usr/local/apache2/modules
now, build the workers.properties file in /usr/local/tomcat/conf/jd
cd /usr/local/tomcat/conf
mkdir jk
cd jk
vi workers.properties
cat workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp1
cd ..
Edit the server.xml file and make the following changes
Following the line beginning 

and following the lines:
  
  
insert the lines
  
and finally, edit the /usr/local/apache2/conf/httpd.conf and place
a line at the very end which says:
Include /usr/local/tomcat/conf/auto/mod_jk.conf
Start Tomcat, wait 30 seconds and start apache
Use a browser and connect to http://localhost.  Get the Apache default
screen.  Connect to http://localhost/examples.  Since this is only
defined as a directory, we get the usual apache display of a directory
with three sub-directories.  Looks exactly like what we would expect.
CLick on "jsp"  Since there is a "index.html" file in this directory, we
get the "JSP Samples" page.  Still exactly what we expected.  Everything
is looking fine so far.
Let's try the first jsp, "numberguess"  Click the "execute" link.
Do we get the numberguess screen?  No.  We get a screen which says
"Internal Server Error"
"The Server encountered an internal error or misconfiguration
and was unable to complete your request."
"Please contact the server administrator, [EMAIL PROTECTED] and inform
them of the time the error occurred and anything you might have done
that may have caused the error."
"More information about this error may be available in the server
error log"
This is the case with all of the buttons which invoke a "jsp" first.
for several of the pages which start with an "html" file which then
invokes a jsp, the 

Re: AccessLogValve question: how to correctly log HttpSession attribute

2004-07-29 Thread Tim Funk
You'll need  implement toString() for your Promotion object.
I was able to get the Webtrends 4 to read the output from the access log 
valve. (Fortunetly for me I haven't used webtrends since.)

-Tim
Mitchell Teixeira wrote:
Hello, I have a question related to capturing data in the Tomcat access
logs.  I'm using Tomcat 5.0.19 with the Sun 1.4.2_03 SDK on Windows 2000.
According to the documentation for the Tomcat AccessLogValve component, I
should be able to capture attributes in the HttpSession into my access
logs. I was able to get some information into my logs following the syntax
""%{promotion}s%quot;".  Using that syntax, I get what appears to be
the attribute object id in my logs: "[EMAIL PROTECTED]".  I want to
see actual >>value<< of this attribute instead!  What is the correct
syntax to the get the value of the attribute? In my case, it should be a
five digit number like "12345".  While I'm glad to get this far, its still
not close enough.  Is there more doc on this topic anyplace?
Also, is anyone on the list using Webtrends 7?  If so, what logging
"pattern" are you using in your server.xml? While it appears to be in the
logs, the Search Engine data is not appearing in our Webtrends reports.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread David Smith
Ok.  Cool.  That's what I'm using as well. 

Your on the right track with the bean.  Just make sure it extends 
org.apache.struts.action.ActionForm (it won't work otherwise) and then 
add it to the  section of your struts-config.xml file.  
There are examples already there if you're using one of the struts war 
files.  I tend to  start with struts-blank.war when I start my projects.

You won't have to instantiate the bean yourself in the jsp because that 
will be taken care of by the  tag.  You will have to make 
sure the name of your form-bean is specified in the name attribute of 
your  entry of the struts-config.xml.  Again, the struts war 
files have examples in their stock standard struts-config.xml files.  
Also take a look at the struts-examples.war and struts-docs.war files.  
They are all downloaded together in one archive from the Struts site.

That should get you going.
--David
Shilpa Nalgonda wrote:
thanks, and i am using Struts
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 4:47 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
Quick question -- are you using Struts?  I just need to know so I know
what to recommend.
I've got to run now and get my exercise.  I'll check back later when I
get home.
--David
Shilpa Nalgonda wrote:
 

yeah, ur right i just want to select a default value for the radio button.
Radio button has two values a new user and a returning user.
user also has a email address.
But i am not sure how exactly this can be done ..
should i write a bean class called "User" with 2 properties,
public class User{
Private String emailaddress = null;
private String usrType = "new";
//getters and setters;
}
And then in jsp <% User usr = new User(); %>
when i use the < html:radio  tag how can i display that usr?
--please help, i am new to java world
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:56 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
Well
The checked attribute is without a value.  You'll have to set it to
something or remove it.  As mentioned by Tim Funk, the checked attribute
doesn't exist in the API for the  tag.
I'm guessing you want to set one of the radio buttons as a default.  If
so, you'll have to do something different like set a default value in
the bean class when it's initialized.
--David
Shilpa Nalgonda wrote:

   

How to resolve that?
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:27 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
I bet its:

-Tim
Shilpa Nalgonda wrote:

 

Hi i am getting the following error,
org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
expected
at


   

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandle
 

r
 

 

.
   

 

java:94)
at


   

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:4
 

2
 

 

8
   

 

)
at


   

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:1
 

2
 

 

6
   

 

)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
belolw is my jsp using struts tags.  I have combined html and struts

   

tags..

 

where am i doing wrong...
http://www.w3.org/TR/html4/loose.dtd";>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



Login or Start Order









Welcome
Select Product
Choose Options
Create Order
Review Order
Complete Order



Ordering from MyPublisher is quick and
easy


 

   
   
   
   
  
  
   
   
 

RE: How to build tomcat 5 on windows? tar.gz's??

2004-07-29 Thread Mark Thomas
Ant will handle these quite happily for you on Windows. (So will WinZip if you
really want to things by hand.)

You should be able to follow the instructions as
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/building.html to build TC5.

Mark

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 29, 2004 11:01 PM
> To: Tomcat Users List
> Subject: How to build tomcat 5 on windows? tar.gz's??
> 
> 
> Am trying to build tomcat 5 on Windows.
> 
> I am stuck with commons-daemon, however, as the 
> build.properties suggests
> several tar.gz files, and I can't find a Windows download of
> commons-daemon.
> 
> Any ideas?  Or don't I need it on Windows?
> 
> Cheers,
> 
> David
> 
> 
> 
> 
> -
> 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]



How to build tomcat 5 on windows? tar.gz's??

2004-07-29 Thread dhay

Am trying to build tomcat 5 on Windows.

I am stuck with commons-daemon, however, as the build.properties suggests
several tar.gz files, and I can't find a Windows download of
commons-daemon.

Any ideas?  Or don't I need it on Windows?

Cheers,

David




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



JSPC/Jasper2 with no package name - bug???

2004-07-29 Thread dhay

Hi,

I precompile my JSP's.  I have the source files under a directory structure
as follows:

src
jsp
user
admin


I am trying to use the JspC with Ant as described at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html.
However, I want the package name to be the sub-directory ie user, admin
etc. for the respective files.

I tried leaving off package= at first, but this created them all with a
package of org.apache.jsp.user/admin etc..

I then tried just putting package="", but now I get an error with the
package name becoming ".user", ".admin", which is obviously invalid.

How do I achieve what I need?  Is this a bug?  Can anyone point me in the
right direction where the package statement is generated when the java
files are created?

Many thanks,

David





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



Re: Unable to deploy a JSP from tomcat

2004-07-29 Thread Sunitha Kumar
Set to Java's j2sdk path:
/usr/local/thirdparty/java/j2sdk
Martin, David S wrote:
Sunitha,
What is your JAVA_HOME environment variable set to? 



David Martin
-Original Message-
From: Sunitha Kumar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 29, 2004 1:19 PM
To: Sunitha Kumar
Cc: [EMAIL PROTECTED]
Subject: Re: Unable to deploy a JSP from tomcat

Also, looking at documentation at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
It says, CLASSPATH is ignored. And, tools.jar should have been loaded?
   * System - This class loader is normally initialized from the
 contents of the CLASSPATH environment variable. All such classes
 are visible to both Tomcat internal classes, and to web
 applications. However, the standard Tomcat 4 startup scripts
 ($CATALINA_HOME/bin/catalina.sh or
 %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of
 the CLASSPATH environment variable itself, and instead build the
 System class loader from the following repositories:
 o $CATALINA_HOME/bin/bootstrap.jar - Contains the main()
   method that is used to initialize the Tomcat 4 server, and
   the class loader implementation classes it depends on.
 o $JAVA_HOME/lib/tools.jar - Contains the "javac" compiler
   used to convert JSP pages into servlet classes.

Sunitha Kumar wrote:
 

Folks:
I have defined CLASSPATH to have $JAVA_HOME/lib/tools.jar, in
   

catalina.sh
 

However, while deploying my .war file, it fails to find tools.jar.
Any pointers?
thanks,
-sunitha
Servlet  threw load() exception
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the
   

JSP.
 

This can usually be solved by copying manually 
$JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat
   

 

restart.
If using an alternate Java compiler, please check its installation and
   

 

access path.
  at 

   

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:127) 
 

  at 

   

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:351) 
 

  at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
  at
   

org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
 

  at
   

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 

  at 

   

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:553) 
 

  at 

   

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:291) 
 

  at 

   

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 

  at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown
   

Source)
 

  at 

   

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) 
 

  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)


   

 


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


NoClassDefFoundError

2004-07-29 Thread Rishi Pande
Hello, 
I am using tomcat 5.0.25. One of my jar web applications requires
the commons-logging.jar file. However, no matter where I put it (server/lib,
common/lib, shared/lib, webapps/app/WEB-INF/lib) I get a
NoClassDefFoundError. I am completely clueless about this. 
It would be great to hear any suggestions from the list. 
Rishi

Here's the stacktrace:
exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
edu.vt.middleware.ldap.Ldap.(Unknown Source)
edu.vt.middleware.ldap.ed.EdAuth.(Unknown Source)

edu.vt.sakai.plugin.VTLdapAuthService.authenticateUser(VTLdapAuthService.jav
a:39)

org.sakaiproject.component.legacy.user.BaseUserDirectoryService.authenticate
(BaseUserDirectoryService.java:758)

org.sakaiproject.service.legacy.user.cover.UserDirectoryService.authenticate
(UserDirectoryService.java:177)

org.sakaiproject.component.framework.session.BaseUsageSessionService.loginSe
ssionUser(BaseUsageSessionService.java:235)

org.sakaiproject.service.framework.session.cover.UsageSessionService.loginSe
ssionUser(UsageSessionService.java:57)

org.jasig.portal.security.provider.SakaiUserSecurityContext.authenticate(Sak
aiUserSecurityContext.java:195)

org.jasig.portal.services.Authentication.authenticate(Authentication.java:10
4)
org.jasig.portal.LoginServlet.doGet(LoginServlet.java:160)
org.jasig.portal.LoginServlet.doPost(LoginServlet.java:127)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:75)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)



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



in-WAR context.xml in 5.0.27

2004-07-29 Thread QM

Has anyone noticed a problem with Tomcat deploying in-WAR context.xml
files in 5.0.27, compared to 5.0.18?  (OS = Fedora Core 1)   Bugzilla
report 29895 looks close but I can't quite tell.

Explanation:

I set "deployOnStartup=true" in server.xml, so apps are deployed when I
kick off Tomcat using the start script.

In 5.0.18, when I included META-INF/context.xml in a WAR file, said XML
file would be copied to:

${CATALINA_BASE}/conf/{engine}/{host}/{somefile}.xml

In 5.0.27, the above is created but it's a *directory*.  The contents of
the context.xml inside the WAR file are ignored (or perhaps, not
loaded).  For example: any access logs (via AccessValve) aren't created,
and s declared in context.xml aren't available.

If I manually copy my webapp's context.xml file to conf/{engine}/{host}
then everything works without a hitch under 5.0.27.

So, has it just been a long day and I've missed something? =) -or should
I proceed to Bugzilla? It'll be a few days before I can get to Tomcat's
source code and provide more assistance...

A stub WAR file that exhibits this behavior is available on request.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Unable to deploy a JSP from tomcat

2004-07-29 Thread Martin, David S
Sunitha,

What is your JAVA_HOME environment variable set to? 



David Martin

-Original Message-
From: Sunitha Kumar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 29, 2004 1:19 PM
To: Sunitha Kumar
Cc: [EMAIL PROTECTED]
Subject: Re: Unable to deploy a JSP from tomcat

Also, looking at documentation at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

It says, CLASSPATH is ignored. And, tools.jar should have been loaded?

* System - This class loader is normally initialized from the
  contents of the CLASSPATH environment variable. All such classes
  are visible to both Tomcat internal classes, and to web
  applications. However, the standard Tomcat 4 startup scripts
  ($CATALINA_HOME/bin/catalina.sh or
  %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of
  the CLASSPATH environment variable itself, and instead build the
  System class loader from the following repositories:
  o $CATALINA_HOME/bin/bootstrap.jar - Contains the main()
method that is used to initialize the Tomcat 4 server, and
the class loader implementation classes it depends on.
  o $JAVA_HOME/lib/tools.jar - Contains the "javac" compiler
used to convert JSP pages into servlet classes.



Sunitha Kumar wrote:

> Folks:
> I have defined CLASSPATH to have $JAVA_HOME/lib/tools.jar, in
catalina.sh
> However, while deploying my .war file, it fails to find tools.jar.
> Any pointers?
> thanks,
> -sunitha
>
> Servlet  threw load() exception
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> No Java compiler was found to compile the generated source for the
JSP.
> This can usually be solved by copying manually 
> $JAVA_HOME/lib/tools.jar from the JDK
> to the common/lib directory of the Tomcat server, followed by a Tomcat

> restart.
> If using an alternate Java compiler, please check its installation and

> access path.
>
>at 
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:127) 
>
>at 
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:351) 
>
>at 
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
>at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
>at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>at 
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:553) 
>
>at 
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:291) 
>
>at 
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
>at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown
Source)
>at 
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) 
>
>at java.lang.reflect.Method.invoke(Method.java:324)
>at 
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
>
>
>

-- 
Sunitha Kumar
http://www.cisco.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: Unable to deploy a JSP from tomcat

2004-07-29 Thread Sunitha Kumar
Also, looking at documentation at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
It says, CLASSPATH is ignored. And, tools.jar should have been loaded?
   * System - This class loader is normally initialized from the
 contents of the CLASSPATH environment variable. All such classes
 are visible to both Tomcat internal classes, and to web
 applications. However, the standard Tomcat 4 startup scripts
 ($CATALINA_HOME/bin/catalina.sh or
 %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of
 the CLASSPATH environment variable itself, and instead build the
 System class loader from the following repositories:
 o $CATALINA_HOME/bin/bootstrap.jar - Contains the main()
   method that is used to initialize the Tomcat 4 server, and
   the class loader implementation classes it depends on.
 o $JAVA_HOME/lib/tools.jar - Contains the "javac" compiler
   used to convert JSP pages into servlet classes.

Sunitha Kumar wrote:
Folks:
I have defined CLASSPATH to have $JAVA_HOME/lib/tools.jar, in catalina.sh
However, while deploying my .war file, it fails to find tools.jar.
Any pointers?
thanks,
-sunitha
Servlet  threw load() exception
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually 
$JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat 
restart.
If using an alternate Java compiler, please check its installation and 
access path.

   at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127) 

   at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351) 

   at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553) 

   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)


--
Sunitha Kumar
http://www.cisco.com

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


Re: HttpServletRequest.getCharacterEncoding -- useless?

2004-07-29 Thread Ian Pilcher
Ian Pilcher wrote:
Does the subject API ever return anything useful.  Using Tomcat 5, I
can't get it to return anything but null.  Googling around, it seems
that other servlet containers either always return null or always return
some default value (usually ISO-8859-1).
OK, getCharacterEncoding isn't completely useless.  It is, however,
almost completely useless.  AFAICT, it only works if the client includes
the encoding in the Content-Type HTTP header.  If I manually create an
HTTP request with:
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
request.getCharacterEncoding returns "UTF-8".
Unfortunately, neither IE nor Mozilla do this.  There is a Mozilla bug
open:
http://bugzilla.mozilla.org/show_bug.cgi?id=241540
I encourage anyone who is getting bitten by this issue to vote for this
bug.
--

Ian Pilcher[EMAIL PROTECTED]

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


Re: application path/docBase property

2004-07-29 Thread erh
On Thu, Jul 29, 2004 at 01:16:48PM -0400, Shapira, Yoav wrote:
> See Jacob Kjome's contributions to the log4j sandbox at
> http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apa
> che/log4j/ (servlet and selector packages).  People have been using them
> in production for a long time now, all reporting success.  We will
> probably put it in log4j 1.3 proper (i.e. promote it from the sandbox,
> so it will be included in the default log4j distribution).

hmm.. not much documentation on how to use it, but from what I could 
gather it seems to set a property named .log.home.
That's not very useful when the application path isn't constant!
I suppose I can probably hard code it somewhere in that code.  More
trouble than I was hoping for, but it probably won't be too bad.

Thanks for the pointer.

eric

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



RE: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread Shilpa Nalgonda
thanks, and i am using Struts

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 4:47 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected


Quick question -- are you using Struts?  I just need to know so I know
what to recommend.

I've got to run now and get my exercise.  I'll check back later when I
get home.

--David

Shilpa Nalgonda wrote:

>yeah, ur right i just want to select a default value for the radio button.
>Radio button has two values a new user and a returning user.
>user also has a email address.
>
>But i am not sure how exactly this can be done ..
>should i write a bean class called "User" with 2 properties,
>
>public class User{
>Private String emailaddress = null;
>private String usrType = "new";
>
>//getters and setters;
>}
>
> And then in jsp <% User usr = new User(); %>
>when i use the < html:radio  tag how can i display that usr?
>
>--please help, i am new to java world
>
>-Original Message-
>From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 3:56 PM
>To: Tomcat Users List
>Subject: Re: org.apache.jasper.JasperException:
>/CheckCustomer.jsp(36,67) equal symbol expected
>
>
>Well
>
>The checked attribute is without a value.  You'll have to set it to
>something or remove it.  As mentioned by Tim Funk, the checked attribute
>doesn't exist in the API for the  tag.
>
>I'm guessing you want to set one of the radio buttons as a default.  If
>so, you'll have to do something different like set a default value in
>the bean class when it's initialized.
>
>--David
>
>Shilpa Nalgonda wrote:
>
>
>
>>How to resolve that?
>>
>>
>>-Original Message-
>>From: Tim Funk [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 29, 2004 3:27 PM
>>To: Tomcat Users List
>>Subject: Re: org.apache.jasper.JasperException:
>>/CheckCustomer.jsp(36,67) equal symbol expected
>>
>>
>>I bet its:
>>
>>
>>
>>-Tim
>>
>>Shilpa Nalgonda wrote:
>>
>>
>>
>>
>>>Hi i am getting the following error,
>>>org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
>>>expected
>>> at
>>>
>>>
>>>
>>>
>>>
>>org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandle
r
>>
>>
>.
>
>
>>
>>
>>>java:94)
>>> at
>>>
>>>
>>>
>>>
>>>
>>org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:4
2
>>
>>
>8
>
>
>>
>>
>>>)
>>> at
>>>
>>>
>>>
>>>
>>>
>>org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:1
2
>>
>>
>6
>
>
>>
>>
>>>)
>>> at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
>>> at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
>>> at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
>>> at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>>> at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
>>> at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
>>> at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>>>
>>>
>>>belolw is my jsp using struts tags.  I have combined html and struts
>>>
>>>
>>>
>>>
>>tags..
>>
>>
>>
>>
>>>where am i doing wrong...
>>>
>"http://www.w3.org/TR/html4/loose.dtd";>
>>>
>>><%@ page contentType="text/html;charset=UTF-8" language="java" %>
>>><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>>><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>>><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>>>
>>>
>>>
>>>Login or Start Order
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 
>>> 
>>> Welcome
>>> Select Product
>>> Choose Options
>>> Create Order
>>> Review Order
>>> Complete Order
>>> 
>>> 
>>>
>>> Ordering from MyPublisher is quick and
>>>easy
>>> 
>>> 
>>>  
>>>  >>maxlength="16"/>
>>> 
>>>>> value="new" checked/>
>>>
>>> 
>>>   
>>>   
>>>>> value="returning"/>
>>>
>>> 
>>>   
>>>
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>> >>onClick="location.href='editShipping.html'">
>>> >>onClick="location.href='orderSummary.html'">
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>-
>>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 

Re: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread David Smith
Quick question -- are you using Struts?  I just need to know so I know 
what to recommend.

I've got to run now and get my exercise.  I'll check back later when I 
get home.

--David
Shilpa Nalgonda wrote:
yeah, ur right i just want to select a default value for the radio button.
Radio button has two values a new user and a returning user.
user also has a email address.
But i am not sure how exactly this can be done ..
should i write a bean class called "User" with 2 properties,
public class User{
Private String emailaddress = null;
private String usrType = "new";
//getters and setters;
}
And then in jsp <% User usr = new User(); %>
when i use the < html:radio  tag how can i display that usr?
--please help, i am new to java world
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:56 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
Well
The checked attribute is without a value.  You'll have to set it to
something or remove it.  As mentioned by Tim Funk, the checked attribute
doesn't exist in the API for the  tag.
I'm guessing you want to set one of the radio buttons as a default.  If
so, you'll have to do something different like set a default value in
the bean class when it's initialized.
--David
Shilpa Nalgonda wrote:
 

How to resolve that?
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:27 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
I bet its:

-Tim
Shilpa Nalgonda wrote:
   

Hi i am getting the following error,
org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
expected
at

 

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler
   

.
 

   

java:94)
at

 

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:42
   

8
 

   

)
at

 

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:12
   

6
 

   

)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
belolw is my jsp using struts tags.  I have combined html and struts
 

tags..
   

where am i doing wrong...
http://www.w3.org/TR/html4/loose.dtd";>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



Login or Start Order









Welcome
Select Product
Choose Options
Create Order
Review Order
Complete Order



Ordering from MyPublisher is quick and
easy


 
 

   
   

  
  
   
   

  


   








 

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


AccessLogValve question: how to correctly log HttpSession attribute

2004-07-29 Thread Mitchell Teixeira
Hello, I have a question related to capturing data in the Tomcat access
logs.  I'm using Tomcat 5.0.19 with the Sun 1.4.2_03 SDK on Windows 2000.

According to the documentation for the Tomcat AccessLogValve component, I
should be able to capture attributes in the HttpSession into my access
logs. I was able to get some information into my logs following the syntax
""%{promotion}s%quot;".  Using that syntax, I get what appears to be
the attribute object id in my logs: "[EMAIL PROTECTED]".  I want to
see actual >>value<< of this attribute instead!  What is the correct
syntax to the get the value of the attribute? In my case, it should be a
five digit number like "12345".  While I'm glad to get this far, its still
not close enough.  Is there more doc on this topic anyplace?

Also, is anyone on the list using Webtrends 7?  If so, what logging
"pattern" are you using in your server.xml? While it appears to be in the
logs, the Search Engine data is not appearing in our Webtrends reports.

Many thanks for reading and for any hints - 

MitchellT


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



RE: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread Shilpa Nalgonda
yeah, ur right i just want to select a default value for the radio button.
Radio button has two values a new user and a returning user.
user also has a email address.

But i am not sure how exactly this can be done ..
should i write a bean class called "User" with 2 properties,

public class User{
Private String emailaddress = null;
private String usrType = "new";

//getters and setters;
}

 And then in jsp <% User usr = new User(); %>
when i use the < html:radio  tag how can i display that usr?

--please help, i am new to java world

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:56 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected


Well

The checked attribute is without a value.  You'll have to set it to
something or remove it.  As mentioned by Tim Funk, the checked attribute
doesn't exist in the API for the  tag.

I'm guessing you want to set one of the radio buttons as a default.  If
so, you'll have to do something different like set a default value in
the bean class when it's initialized.

--David

Shilpa Nalgonda wrote:

>How to resolve that?
>
>
>-Original Message-
>From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 3:27 PM
>To: Tomcat Users List
>Subject: Re: org.apache.jasper.JasperException:
>/CheckCustomer.jsp(36,67) equal symbol expected
>
>
>I bet its:
>
>
>
>-Tim
>
>Shilpa Nalgonda wrote:
>
>
>>Hi i am getting the following error,
>>org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
>>expected
>>  at
>>
>>
>>
>org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler
.
>
>
>>java:94)
>>  at
>>
>>
>>
>org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:42
8
>
>
>>)
>>  at
>>
>>
>>
>org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:12
6
>
>
>>)
>>  at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
>>  at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
>>  at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
>>  at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>>  at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
>>  at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
>>  at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>>
>>
>>belolw is my jsp using struts tags.  I have combined html and struts
>>
>>
>tags..
>
>
>>where am i doing wrong...
>>
>>>"http://www.w3.org/TR/html4/loose.dtd";>
>>
>><%@ page contentType="text/html;charset=UTF-8" language="java" %>
>><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>>
>>
>>
>>Login or Start Order
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>  Welcome
>>  Select Product
>>  Choose Options
>>  Create Order
>>  Review Order
>>  Complete Order
>>  
>>  
>>
>>  Ordering from MyPublisher is quick and
>>easy
>>  
>>  
>>   
>>   >maxlength="16"/>
>>  
>> > value="new" checked/>
>> 
>>  
>>
>>
>> > value="returning"/>
>> 
>>  
>>
>>
>>  
>>  
>> 
>>  
>>  
>>  
>>  >onClick="location.href='editShipping.html'">
>>  >onClick="location.href='orderSummary.html'">
>>
>>  
>>
>>
>>
>>
>
>-
>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]



Different Behaviors of mod_jk2 in linux & windows

2004-07-29 Thread Ernesto Echeverría
I'm trying for the 1st time to setup mod_jk2 in a server running Red Hat
Entreprise Edition version 3 with Tomcat 5.

In the workers2.properties file I have the following setting:


[uri:/jsp-examples/*]
info=JSP Examples page


 
In Windows (Apache2 + Tomcat5), the previous setting allows me to navigate
to the jsp-examples page using the following url

http://localhost/jsp-examples

Allowing access to the whole webapp. The expected behaviour occurs in
Windows.

However, in linux (apache + tomcat), I can't run any of the examples
themselves, and I'm not able to watch the images in the jsp-examples page. 

Aparently I have to type a different line in the settings file
(workers2.properties) for each different directory.

Is there a way to circumvent this? Is it a missing setting or something that
has to do with a different configuration file.

Thanks for your help.


Ernesto Echeverria
 


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



Re: tomcat startup with beans error :-s

2004-07-29 Thread Betto McRose G,
yep, I inserted    to define a postgres
pool.

but I restarted the server having postmaster running before tomcat

problem resolve.


- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Betto McRose G,"
<[EMAIL PROTECTED]>
Sent: Thursday, July 29, 2004 3:37 PM
Subject: RE: tomcat startup with beans error :-s


>
> Hi,
> How have you modified server.xml? ;)  If you took out the
> LifecycleListener or MBean declarations, that could cause this error.
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Betto McRose G, [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, July 29, 2004 3:17 PM
> >To: Tomcat Users List
> >Subject: tomcat startup with beans error :-s
> >
> >what is the problem here ?
> >
> >Jul 29, 2004 3:13:53 PM org.apache.coyote.http11.Http11Protocol init
> >INFO: Initializing Coyote HTTP/1.1 on port 8080
> >Jul 29, 2004 3:13:53 PM org.apache.catalina.startup.Catalina load
> >INFO: Initialization processed in 3345 ms
> >Jul 29, 2004 3:13:53 PM
> org.apache.catalina.mbeans.ServerLifecycleListener
> >createMBeans
> >SEVERE: createMBeans: MBeanException
> >java.lang.Exception: ManagedBean is not found with DefaultContext
> > at
> org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:326)
> > at
> >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
> ifec
> >ycleListener.java:534)
> > at
> >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
> ifec
> >ycleListener.java:654)
> > at
> >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
> ifec
> >ycleListener.java:596)
> > at
> >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
> ifec
> >ycleListener.java:779)
> > at
> >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
> ifec
> >ycleListener.java:747)
> > at
> >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
> ifec
> >ycleListener.java:365)
> > at
> >org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Serve
> rLif
> >ecycleListener.java:190)
> > at
> >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
> uppo
> >rt.java:119)
> > at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2291)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:547)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:3
> >9)
> > at
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImp
> >l.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:3
> >9)
> > at
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImp
> >l.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
>
>
>
> This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
>
>
> -
> 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: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread David Smith
Well
The checked attribute is without a value.  You'll have to set it to 
something or remove it.  As mentioned by Tim Funk, the checked attribute 
doesn't exist in the API for the  tag.

I'm guessing you want to set one of the radio buttons as a default.  If 
so, you'll have to do something different like set a default value in 
the bean class when it's initialized.

--David
Shilpa Nalgonda wrote:
How to resolve that?
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:27 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
I bet its:

-Tim
Shilpa Nalgonda wrote:
 

Hi i am getting the following error,
org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
expected
at
   

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
 

java:94)
at
   

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
 

)
at
   

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126
 

)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
belolw is my jsp using struts tags.  I have combined html and struts
   

tags..
 

where am i doing wrong...
http://www.w3.org/TR/html4/loose.dtd";>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



Login or Start Order









Welcome
Select Product
Choose Options
Create Order
Review Order
Complete Order



Ordering from MyPublisher is quick and
easy


 
  
 
   
   
 
  
  
   
   
 
  
 
 






	


   

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


Win2k SP4, Tomcat 5.0.27: Problem Setting JVM Heap Size

2004-07-29 Thread Noah
I have recieved help (thanks Pradeep and Tonte) from the list
about a problem that seems to come from Tomcat running out of
memory. The solution seems to be increasing the JVM memory.

However, I have run into a problem in doing this. I thought that
I had worked toward solving the problem but needed to
increase the available memory more. However, it seemed that
in the task manager, Tomcat was not approaching the amount
I allocated. Checking the logs of the application we are running
(eMatrix...) we saw that it doesn't think the -Xms/Xmx option
have been set.

On the dev server I tried setting the options using the Tomcat 
configuration tool, the registry, catalina.bat, and even making
a JAVA_OPTS system environment variable, but none of 
these things are reflected in the eMatrix logs.

Do any other methods of setting JVM options exist? I would
appreciate any suggestions.

Thanks,
Noah

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



Unable to deploy a JSP from tomcat

2004-07-29 Thread Sunitha Kumar
Folks:
I have defined CLASSPATH to have $JAVA_HOME/lib/tools.jar, in catalina.sh
However, while deploying my .war file, it fails to find tools.jar.
Any pointers?
thanks,
-sunitha
Servlet  threw load() exception
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar 
from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat 
restart.
If using an alternate Java compiler, please check its installation and 
access path.

   at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
   at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
   at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)


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


Re: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread Tim Funk
What do the struts docs say?  I don't see a checked field. Follow up with the 
struts list:

http://struts.apache.org/userGuide/struts-html.html#radio
-Tim
Shilpa Nalgonda wrote:
How to resolve that?
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:27 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
I bet its:

-Tim
Shilpa Nalgonda wrote:
Hi i am getting the following error,
org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
expected
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:94)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126
)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
belolw is my jsp using struts tags.  I have combined html and struts
tags..
where am i doing wrong...
http://www.w3.org/TR/html4/loose.dtd";>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



Login or Start Order









Welcome
Select Product
Choose Options
Create Order
Review Order
Complete Order



Ordering from MyPublisher is quick and
easy


 
  
 
   
   
 
  
  
   
   
 
  
 
 










-
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: tomcat startup with beans error :-s

2004-07-29 Thread Shapira, Yoav

Hi,
How have you modified server.xml? ;)  If you took out the
LifecycleListener or MBean declarations, that could cause this error.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Betto McRose G, [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 3:17 PM
>To: Tomcat Users List
>Subject: tomcat startup with beans error :-s
>
>what is the problem here ?
>
>Jul 29, 2004 3:13:53 PM org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on port 8080
>Jul 29, 2004 3:13:53 PM org.apache.catalina.startup.Catalina load
>INFO: Initialization processed in 3345 ms
>Jul 29, 2004 3:13:53 PM
org.apache.catalina.mbeans.ServerLifecycleListener
>createMBeans
>SEVERE: createMBeans: MBeanException
>java.lang.Exception: ManagedBean is not found with DefaultContext
> at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:326)
> at
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
ifec
>ycleListener.java:534)
> at
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
ifec
>ycleListener.java:654)
> at
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
ifec
>ycleListener.java:596)
> at
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
ifec
>ycleListener.java:779)
> at
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
ifec
>ycleListener.java:747)
> at
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL
ifec
>ycleListener.java:365)
> at
>org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Serve
rLif
>ecycleListener.java:190)
> at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
>rt.java:119)
> at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2291)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:547)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: HttpServletRequest.getCharacterEncoding -- useless?

2004-07-29 Thread Shapira, Yoav

Hi,
The JavaDocs for java.net.URLDecoder suggest that you're fairly safe
with URLDecoder.decode(String s, "UTF-8").

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ian Pilcher
>Sent: Thursday, July 29, 2004 3:24 PM
>To: [EMAIL PROTECTED]
>Subject: HttpServletRequest.getCharacterEncoding -- useless?
>
>Does the subject API ever return anything useful.  Using Tomcat 5, I
>can't get it to return anything but null.  Googling around, it seems
>that other servlet containers either always return null or always
return
>some default value (usually ISO-8859-1).
>
>How the heck am I supposed to process form input if I can't figure out
>how it's encoded?
>
>Thanks!
>
>--
>===
=
>Ian Pilcher
[EMAIL PROTECTED]
>===
=
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread Shilpa Nalgonda
How to resolve that?


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:27 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected


I bet its:



-Tim

Shilpa Nalgonda wrote:
> Hi i am getting the following error,
> org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
> expected
>   at
>
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
> java:94)
>   at
>
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
> )
>   at
>
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126
> )
>   at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
>   at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
>   at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
>   at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>   at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
>   at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
>   at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>
>
> belolw is my jsp using struts tags.  I have combined html and struts
tags..
> where am i doing wrong...
>
>  "http://www.w3.org/TR/html4/loose.dtd";>
>
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> 
> 
> 
> Login or Start Order
> 
> 
> 
> 
>
> 
> 
> 
>   
>   
>   Welcome
>   Select Product
>   Choose Options
>   Create Order
>   Review Order
>   Complete Order
>   
>   
> 
>   Ordering from MyPublisher is quick and
> easy
>   
>   
>
> maxlength="16"/>
>   
>   value="new" checked/>
>  
>   
> 
> 
>   value="returning"/>
>  
>   
> 
>
>   
>   
>  
>   
>   
>   
>onClick="location.href='editShipping.html'">
>onClick="location.href='orderSummary.html'">
>
>   
> 
> 

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



HttpServletRequest.getCharacterEncoding -- useless?

2004-07-29 Thread Ian Pilcher
Does the subject API ever return anything useful.  Using Tomcat 5, I
can't get it to return anything but null.  Googling around, it seems
that other servlet containers either always return null or always return
some default value (usually ISO-8859-1).
How the heck am I supposed to process form input if I can't figure out
how it's encoded?
Thanks!
--

Ian Pilcher[EMAIL PROTECTED]

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


Re: org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread Tim Funk
I bet its:

-Tim
Shilpa Nalgonda wrote:
Hi i am getting the following error,
org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
expected
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:94)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126
)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
belolw is my jsp using struts tags.  I have combined html and struts tags..
where am i doing wrong...
http://www.w3.org/TR/html4/loose.dtd";>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



Login or Start Order









Welcome
Select Product
Choose Options
Create Order
Review Order
Complete Order



Ordering from MyPublisher is quick and
easy


 
   
  
   
   
  
  
  
   
   
  
  
  
  
 








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


org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol expected

2004-07-29 Thread Shilpa Nalgonda
Hi i am getting the following error,
org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
expected
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:94)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126
)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)


belolw is my jsp using struts tags.  I have combined html and struts tags..
where am i doing wrong...

http://www.w3.org/TR/html4/loose.dtd";>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



Login or Start Order










Welcome
Select Product
Choose Options
Create Order
Review Order
Complete Order



Ordering from MyPublisher is quick and
easy


 
   
  
   
   
  
  
  
   
   
  
  

  
  
 













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



tomcat startup with beans error :-s

2004-07-29 Thread Betto McRose G,
what is the problem here ?

Jul 29, 2004 3:13:53 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Jul 29, 2004 3:13:53 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3345 ms
Jul 29, 2004 3:13:53 PM org.apache.catalina.mbeans.ServerLifecycleListener createMBeans
SEVERE: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with DefaultContext
 at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:326)
 at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:534)
 at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:654)
 at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:596)
 at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:779)
 at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:747)
 at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:365)
 at 
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:190)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2291)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:547)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)


RE: Cannot create JDBC driver of class

2004-07-29 Thread Shapira, Yoav
Hi,
Only declare the Resource once: it's EITHER GlobalNamingResources or a
Resource under your Context, but not both.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Bussie, Andre D [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 1:13 PM
>To: [EMAIL PROTECTED]
>Subject: Cannot create JDBC driver of class
>
>At a standstill with accessing a datasource through JNDI in Tomcat
>5.0.19.
>
>
>
>Snippet of server.xml
>
>...
>
>docBase="phone" path="/phone">
>
>  
>
>  
>
>
>
>url
>
>jdbc:hsqldb.hsql://localhost
>
>
>
>
>
>   driverClassName
>
>   org.hsqldb.jdbcDriver
>
>
>
>  
>
>  
>
>
>
>
>
>...
>
>
>
>...
>
>  
>
>maxWait
>
>5000
>
>  
>
>  
>
>maxActive
>
>4
>
>  
>
>  
>
>password
>
>
>
>  
>
>  
>
>url
>
>jdbc:hsqldb.hsql://localhost
>
>  
>
>  
>
>driverClassName
>
>org.hsqldb.jdbcDriver
>
>  
>
>  
>
>maxIdle
>
>2
>
>  
>
>  
>
>username
>
>sa
>
>  
>
>
>
>
>
>
>
>Here is a snippet of web.xml
>
>
>
>Database Connection for the phone web
>application
>
>  jdbc/phone
>
>  javax.sql.DataSource
>
>  Container
>
>  
>
>
>
>Snippet of context.xml
>
>
>
>docBase="phone" path="/phone">
>
> type="javax.sql.DataSource"/>
>
>
>
>
>
>
>
>Code Snippet
>
>Context ctx = new InitialContext();
>
>   Context env = (Context)ctx.lookup("java:comp/env");
>
>   DataSource ds = (DataSource) env.lookup("jdbc/phone");
>
>   Connection conn = ds.getConnection();
>
>   try{
>
>
>
>Error message received
>
>org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
>class 'org.hsqldb.jdbcDriver' for connect URL
>'jdbc:hsqldb.hsql://localhost', cause:
>
>java.sql.SQLException: No suitable driver
>
>
>
> What more can I do to get this working?
>
>
>
>


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



RE: application path/docBase property

2004-07-29 Thread Shapira, Yoav
Hi,
See Jacob Kjome's contributions to the log4j sandbox at
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apa
che/log4j/ (servlet and selector packages).  People have been using them
in production for a long time now, all reporting success.  We will
probably put it in log4j 1.3 proper (i.e. promote it from the sandbox,
so it will be included in the default log4j distribution).

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 1:14 PM
>To: [EMAIL PROTECTED]
>Subject: application path/docBase property
>
>
>   I'm trying to find the property that corresponds to either the
>application path (i.e. the path attribute of the Context element), or
>the installed path (i.e. the docBase attribute).  I haven't had any
luck
>finding it.  Is there such a property?
>
>   Specifically, what I am trying to do is have a application that
can
>be installed to an arbitrary path use a common log4j properties file
>and have the logs go to an appropriate log file.  Right now I'm working
>around the problem by generating the log4j properties file at build
time,
>but I'd prefer not to have to rebuild just to install to a new
location.
>
>e.g., I'd like to be able to do something like this:
>log4j.appender.MYLOG.File=${catalina.home}/logs/${application.path}.log
>or even:
>log4j.appender.MYLOG.File=${application.path}/WEB-INF/logs/application.
log
>
>Any suggestions?
>
>thanks,
>eric
>
>
>-
>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]



application path/docBase property

2004-07-29 Thread erh

I'm trying to find the property that corresponds to either the
application path (i.e. the path attribute of the Context element), or
the installed path (i.e. the docBase attribute).  I haven't had any luck
finding it.  Is there such a property?

Specifically, what I am trying to do is have a application that can
be installed to an arbitrary path use a common log4j properties file
and have the logs go to an appropriate log file.  Right now I'm working
around the problem by generating the log4j properties file at build time,
but I'd prefer not to have to rebuild just to install to a new location.

e.g., I'd like to be able to do something like this:
log4j.appender.MYLOG.File=${catalina.home}/logs/${application.path}.log
or even:
log4j.appender.MYLOG.File=${application.path}/WEB-INF/logs/application.log

Any suggestions?

thanks,
eric


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



Cannot create JDBC driver of class

2004-07-29 Thread Bussie, Andre D
At a standstill with accessing a datasource through JNDI in Tomcat
5.0.19.

 

Snippet of server.xml

...



  

  



url

jdbc:hsqldb.hsql://localhost





   driverClassName

   org.hsqldb.jdbcDriver



  

  





...



...

  

maxWait

5000

  

  

maxActive

4

  

  

password



  

  

url

jdbc:hsqldb.hsql://localhost

  

  

driverClassName

org.hsqldb.jdbcDriver

  

  

maxIdle

2

  

  

username

sa

  



 



Here is a snippet of web.xml



Database Connection for the phone web
application

  jdbc/phone

  javax.sql.DataSource

  Container

  

 

Snippet of context.xml





 



 

 

Code Snippet

Context ctx = new InitialContext();

   Context env = (Context)ctx.lookup("java:comp/env");

   DataSource ds = (DataSource) env.lookup("jdbc/phone");

   Connection conn = ds.getConnection();

   try{

 

Error message received

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class 'org.hsqldb.jdbcDriver' for connect URL
'jdbc:hsqldb.hsql://localhost', cause: 

java.sql.SQLException: No suitable driver

 

 What more can I do to get this working?

 

 



Problem with mod_jk2 modifying the port numbers of original URL

2004-07-29 Thread Tim Waldner
Apache 2.0.50/mod_jk2 2.0.4/Linux/Tomcat5
Hello,
in this deployment scenario a request is coming in on standard port 80, is 
forwarded to Apache listening on port 8000 and then forwarded to Tomcat 
through mod_jk2.

Everything worked well until Apache port was changed from 80 to 8000. 
Suddenly Tomcat started to see URLs with port number 8000 added, though the 
original request was still addressed to the same externally visible standard 
port. Finally we found that mod_jk2 is rewriting the URL to include the 
Apache port number 8000.

Normally I would expect the URL to remain as seen in the browser, regardless 
through which ports and proxy servers it passes before it arrives at the 
destinaion. We could not find a way to control this behavior through the 
worker2.properties, do we actually have to tweak the mod_jk2 source code?

Is this the intended behavior? The problem I'm stuck here is that the 
applciation can no longer determine the URL sent by the browser.

Any help greatly appreciated,
Tim
_
Overwhelmed by debt? Find out how to ‘Dig Yourself Out of Debt’ from MSN 
Money. http://special.msn.com/money/0407debt.armx

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


RE: [JavaMail] Error with Tomcat 5.0.25

2004-07-29 Thread Shapira, Yoav
Hola,

5.0.26 fixes the bug, so upgrade to 5.0.27.



http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29255

Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Florian Kiebel [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 12:50 PM
To: [EMAIL PROTECTED]
Subject: [JavaMail] Error with Tomcat 5.0.25



Hello guys !



I want to submit a problem I have with Tomcat 5.0.25 et JavaMail. Indeed, I wanted to 
use my Javamail application (which works very well with Tomcat 4.0.24) and Tomcat 
didn't like this since it generated a NamingException.



I look for any ideas for this problem on Internet and I see this link : 
http://www.junlu.com/msg/95432.html

So there is a problem with this naming-factory.jar...



I wanted to know if the last Tomcat version (5.0.27) correct this problem or must I do 
the tip I looked for?



Thanks for your answers...



.:Florian KIEBEL:.

.: Chef de projet Modula :.
[EMAIL PROTECTED] 

10 rue des Blés - 93210 La Plaine Saint Denis
T : + 33 1 49 46 94 16 - F : + 33 1 55 93 15 60






This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



[JavaMail] Error with Tomcat 5.0.25

2004-07-29 Thread Florian Kiebel








Hello guys !

 

I want to submit a problem I have with Tomcat 5.0.25
et JavaMail. Indeed, I wanted to use my Javamail application (which works very
well with Tomcat 4.0.24) and Tomcat didn’t like this since it generated a
NamingException.

 

I look for any ideas for this problem on Internet and
I see this link : http://www.junlu.com/msg/95432.html

So there is a problem with this naming-factory.jar…

 

I wanted to know if the last Tomcat version (5.0.27)
correct this problem or must I do the tip I looked for?

 

Thanks for your answers…

 

.:Florian
 KIEBEL:.

.: Chef de projet Modula :.
[EMAIL PROTECTED]

10 rue des Blés - 93210 La Plaine Saint Denis
T : + 33 1 49 46 94 16 - F : + 33 1 55 93 15 60

 








RE: Proxy settings for Tomcat's JVM

2004-07-29 Thread Dale, Matt

If you want to use JAVA_OPTS with a windows service you'll need to make registry 
edits. I'm not sure of the exact keys. I believe there is a tool that can configure it 
though.

If you start it on the command line then it will obey your environment variable or can 
be set in catalina.sh or catalina.bat

Ta
Matt

-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: 29 July 2004 17:26
To: Tomcat Users List
Subject: Re: Proxy settings for Tomcat's JVM


Let me state the question in a more general way:

If you wanted to pass JVM arguments, where would you do it?  Does the
Tomcat5 NT service use the JAVA_OPTS environment variable?  Has anyone had
success using deployment.properties:

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/proper
ties.html

Thanks,

-Sasha Borodin


> From: Sasha Borodin <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> Date: Thu, 29 Jul 2004 11:05:49 -0500
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Proxy settings for Tomcat's JVM
> 
> Can anyone tell me the best place (from a maintenance perspective) to set
> http/ftp/etc proxy settings for the JVM in which tomcat runs?
> 
> I'm talking about the settings that impact java.net.Socket operation (not
> the proxy settings found in server.xml).
> 
> I know I can make a context listener that does something like this to get
> things set up:
> System.getProperties().put( "ftpProxySet", "true" );
> System.getProperties().put( "ftpProxyHost", "myProxyMachineName" );
> System.getProperties().put( "ftpProxyPort", "85" );
> 
> But this should be a deployment configuration; as far as I know, there's two
> ways to do it:
> A) either as a parameter to the JVM
> B) or in a jvm config file (deployment.properties)
> 
> Has anyone had any luck with option B? I haven't...
> 
> If you were to use option a, where would you store the arguments to the jvm?
> 
> Thank you,
> 
> -Sasha Borodin
> 
> 
> 
> -
> 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]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Re: Proxy settings for Tomcat's JVM

2004-07-29 Thread Sasha Borodin
Let me state the question in a more general way:

If you wanted to pass JVM arguments, where would you do it?  Does the
Tomcat5 NT service use the JAVA_OPTS environment variable?  Has anyone had
success using deployment.properties:

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/proper
ties.html

Thanks,

-Sasha Borodin


> From: Sasha Borodin <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> Date: Thu, 29 Jul 2004 11:05:49 -0500
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Proxy settings for Tomcat's JVM
> 
> Can anyone tell me the best place (from a maintenance perspective) to set
> http/ftp/etc proxy settings for the JVM in which tomcat runs?
> 
> I'm talking about the settings that impact java.net.Socket operation (not
> the proxy settings found in server.xml).
> 
> I know I can make a context listener that does something like this to get
> things set up:
> System.getProperties().put( "ftpProxySet", "true" );
> System.getProperties().put( "ftpProxyHost", "myProxyMachineName" );
> System.getProperties().put( "ftpProxyPort", "85" );
> 
> But this should be a deployment configuration; as far as I know, there's two
> ways to do it:
> A) either as a parameter to the JVM
> B) or in a jvm config file (deployment.properties)
> 
> Has anyone had any luck with option B? I haven't...
> 
> If you were to use option a, where would you store the arguments to the jvm?
> 
> Thank you,
> 
> -Sasha Borodin
> 
> 
> 
> -
> 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: Getting a handle to a Container/Catalina/Embedded instance

2004-07-29 Thread Carl Olivier
Hi Yoav.

Thank you for your quick response (as always!).

I will look into your suggestions!  Thanks!

Carl

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 29, 2004 5:55 PM
To: Tomcat Users List
Subject: RE: Getting a handle to a Container/Catalina/Embedded instance


Hi,
Sure, in a couple of ways.  One is to use the Catalina code, starting
with: 
Server server = ServerFactory.getServer(); You can then cast to
StandardServer, crawl down the hierarchy to Service, Engine, Host,
Connector, Context, etc, and call methods on each in turn as you need.
Server and ServerFactory are in org.apache.catalina, so your code would need
to import those classes and run in a classloader that sees them.

The other way is using JMX.  Not all the operations and attributes are
exposed via JMX, but most are.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 11:47 AM
>To: Tomcat Users List
>Subject: Getting a handle to a Container/Catalina/Embedded instance
>
>Greetings..
>
>Not sure this is possible, but here goes:
>
>I want to be able to get a handle to the Catalina/Embedded instance in
a
>standard Tomcat standalone implementation.  I will deploy a webapp to
the
>server/webapps location and mount it to a host which runs in its own 
>service for security reasons etc.
>
>Is this possible?
>
>I want to be able to dynamicall add a host to the server instance,
setting
>it up in memory, adding the new instance to a specified
Container/Engine
>component, and then start it - thus not having to restart Tomcat
completely
>when a new host is added.
>
>Am I looking in the correct places/going in the right direction here?
Or
>can someone point me in a better direction?
>
>Regards,
>
>Carl
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: JVM memory size changing dramatically

2004-07-29 Thread Shapira, Yoav
Hi,

>| The options for what?
>
>These:
>
>-
>My JAVA_OPTS as follows
>
>
>JAVA_OPTS=-server -Xms256m -Xmx768m -XX:NewSize=64m -XX:MaxNewSize=64m
>-XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
>-XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m
-Xss128k
>-XX:+DisableExplicitGC
>-

Here: http://java.sun.com/docs/hotspot/VMOptions.html.  There are also
related documents linked from that page that illustrate some examples on
when to use which options.  It boils down to a lot of trials and
experimentation.

Yoav Shapira

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



RE: JVM memory size changing dramatically

2004-07-29 Thread Endre Stølsvik
On Thu, 29 Jul 2004, Shapira, Yoav wrote:

| >One question from me: where do you get all those other options from?
| Where >do I get a listing of those extra-options, documentation?
|
| The options for what?

These:

-
My JAVA_OPTS as follows


JAVA_OPTS=-server -Xms256m -Xmx768m -XX:NewSize=64m -XX:MaxNewSize=64m
-XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
-XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m -Xss128k
-XX:+DisableExplicitGC
-

Endre


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



Proxy settings for Tomcat's JVM

2004-07-29 Thread Sasha Borodin
Can anyone tell me the best place (from a maintenance perspective) to set
http/ftp/etc proxy settings for the JVM in which tomcat runs?

I'm talking about the settings that impact java.net.Socket operation (not
the proxy settings found in server.xml).

I know I can make a context listener that does something like this to get
things set up:
System.getProperties().put( "ftpProxySet", "true" );
System.getProperties().put( "ftpProxyHost", "myProxyMachineName" );
System.getProperties().put( "ftpProxyPort", "85" );

But this should be a deployment configuration; as far as I know, there's two
ways to do it:
A) either as a parameter to the JVM
B) or in a jvm config file (deployment.properties)

Has anyone had any luck with option B? I haven't...

If you were to use option a, where would you store the arguments to the jvm?

Thank you,

-Sasha Borodin



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



Re: Tomcat 5 in debug mode

2004-07-29 Thread Martin
Thanks a lot for your answers. I figured out that the problem was that
tomcat was running as a windows service - I changed this and it is working
fine now. Besides this I found a good tutorial concerning remote debugging
at http://jakarta.apache.org/site/idedev-rdtomcat.html

Best regards,
Martin

> -Ursprüngliche Nachricht-
> Von: Christophe Thiébaud [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 29. Juli 2004 14:21
> An: Tomcat Users List
> Betreff: Re: Tomcat 5 in debug mode
> 
> 
> I use this on windows:
> 
> 1.
> in bin\catalina.bat, set JPDA_TRANSPORT and JPDA_ADDRESS to 
> fit your needs e.g. mine are: set JPDA_TRANSPORT=dt_socket 
> set JPDA_ADDRESS=8000
> 
> I also change the default suspend=n to suspend=y on the last lines of 
> the script (starting with %_EXECJAVA%)
> 
> 2.
> start command prompt in TOMCAT_HOME
> 
> 3.
> enter
> bin\catalina.bat jpda start
> 
> CT
> 
> Martin wrote:
> 
> >Hi all,
> >
> >could somebody please tell me how to start tomcat 5 on 
> Windows in debug 
> >mode? I would like to use it for remote debugging, but I 
> just recently 
> >upgraded to tomcat 5 and could not find any description how 
> to do this.
> >
> >Is there maybe any generic solution to start tomcat 5 on windows and 
> >linux in debug mode?
> >
> >Many thanks,
> >Martin

-- 
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl


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



Context Descriptors: which directory

2004-07-29 Thread Charles N. Harvey III
Hello.
I was using Tomcat 4 and I had my foo.xml file in 
$catalina_home/webapps/foo.xml.
This pointed Tomcat to a different directory where the application resided.
Now, in Tomcat 5 I see in the docs that I am supposed to be placing these
files in $catalina_home/conf/Catalina/localhost/foo.xml.

Do I HAVE to?  Can I configure Tomcat 5 to see them in the /webapps/ dir?
Or, is that a bad practice?
Just wondering.  Thanks a lot.
Charlie
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Stopping takes ages

2004-07-29 Thread Christina Androne
Viorel Dragomir wrote:
Hi Christina,
Regarding the Warp connector, if you don't need that servlets can be served from an apache webserver you can disable it from server.xml Anyway you have to change that connector to jk2 (or at least jk)..
Some infos are here http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html
 

I need to understand something: if I use tomcat as the webserver then 
the only connectors I should have enabled would be the HTTP 1.1 ones. 
According to that doc, the "web server connectors" are useless for me 
right?

The access_log from $CATALINA_HOME/logs contains some informations regarding what information is exchanged. You can use this if you know when a servlet finishes without any output to the client.
 

You mean that I can output to catalina.log for example something from my 
servlet? This is what I do, that;s why I do know that the servlet code 
does not hang. And checking those logs showed up the socket connection 
closed too.

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


RE: Getting a handle to a Container/Catalina/Embedded instance

2004-07-29 Thread Shapira, Yoav

Hi,
Sure, in a couple of ways.  One is to use the Catalina code, starting
with:
Server server = ServerFactory.getServer();
You can then cast to StandardServer, crawl down the hierarchy to
Service, Engine, Host, Connector, Context, etc, and call methods on each
in turn as you need.  Server and ServerFactory are in
org.apache.catalina, so your code would need to import those classes and
run in a classloader that sees them.

The other way is using JMX.  Not all the operations and attributes are
exposed via JMX, but most are.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 11:47 AM
>To: Tomcat Users List
>Subject: Getting a handle to a Container/Catalina/Embedded instance
>
>Greetings..
>
>Not sure this is possible, but here goes:
>
>I want to be able to get a handle to the Catalina/Embedded instance in
a
>standard Tomcat standalone implementation.  I will deploy a webapp to
the
>server/webapps location and mount it to a host which runs in its own
>service
>for security reasons etc.
>
>Is this possible?
>
>I want to be able to dynamicall add a host to the server instance,
setting
>it up in memory, adding the new instance to a specified
Container/Engine
>component, and then start it - thus not having to restart Tomcat
completely
>when a new host is added.
>
>Am I looking in the correct places/going in the right direction here?
Or
>can someone point me in a better direction?
>
>Regards,
>
>Carl
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Getting a handle to a Container/Catalina/Embedded instance

2004-07-29 Thread Carl Olivier
Greetings..

Not sure this is possible, but here goes:

I want to be able to get a handle to the Catalina/Embedded instance in a
standard Tomcat standalone implementation.  I will deploy a webapp to the
server/webapps location and mount it to a host which runs in its own service
for security reasons etc.

Is this possible?

I want to be able to dynamicall add a host to the server instance, setting
it up in memory, adding the new instance to a specified Container/Engine
component, and then start it - thus not having to restart Tomcat completely
when a new host is added.

Am I looking in the correct places/going in the right direction here?  Or
can someone point me in a better direction?

Regards,

Carl

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



Re: Stopping takes ages

2004-07-29 Thread Viorel Dragomir
Hi Christina,

Regarding the Warp connector, if you don't need that servlets can be served from an 
apache webserver you can disable it from server.xml Anyway you have to change that 
connector to jk2 (or at least jk)..
Some infos are here 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

The access_log from $CATALINA_HOME/logs contains some informations regarding what 
information is exchanged. You can use this if you know when a servlet finishes without 
any output to the client.

Viorel

--
Ce mica este lumea :)
  - Original Message - 
  From: Christina Androne 
  To: Tomcat Users List 
  Sent: Thursday, July 29, 2004 18:23
  Subject: Re: Stopping takes ages


  Dale, Matt wrote:

  >Yes those look like the right ones. Are you using apache as the webserver? If so 
which module are you using to send the requests to tomcat?
  >
  >  
  >
  The webserver is Tomcat only.

  (Apache is installed on that machine though, but I never start it)


  Christina

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


Re: Stopping takes ages

2004-07-29 Thread Christina Androne
Dale, Matt wrote:
Then what you want to do is comment out the Coyote Connectors in your server.xml, they 
are not required.
 

Ok, I'll comment those out and see how it goes.
Thank you,
Christina
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Stopping takes ages

2004-07-29 Thread Dale, Matt

Then what you want to do is comment out the Coyote Connectors in your server.xml, they 
are not required.

The only connector you require is the standard http one.

It looks something like this, although this is taken from a tomcat 5 server.xml


-


-Original Message-
From: Christina Androne [mailto:[EMAIL PROTECTED]
Sent: 29 July 2004 16:23
To: Tomcat Users List
Subject: Re: Stopping takes ages


Dale, Matt wrote:

>Yes those look like the right ones. Are you using apache as the webserver? If so 
>which module are you using to send the requests to tomcat?
>
>  
>
The webserver is Tomcat only.

(Apache is installed on that machine though, but I never start it)


Christina

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Re: Stopping takes ages

2004-07-29 Thread Christina Androne
Dale, Matt wrote:
Yes those look like the right ones. Are you using apache as the webserver? If so which 
module are you using to send the requests to tomcat?
 

The webserver is Tomcat only.
(Apache is installed on that machine though, but I never start it)
Christina
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Stopping takes ages

2004-07-29 Thread Dale, Matt

Yes those look like the right ones. Are you using apache as the webserver? If so which 
module are you using to send the requests to tomcat?

Ta
Matt

-Original Message-
From: Christina Androne [mailto:[EMAIL PROTECTED]
Sent: 29 July 2004 16:14
To: Tomcat Users List
Subject: Re: Stopping takes ages


Dale, Matt wrote:

>It sounds like its possible that error could be causing the problem. I would suggest 
>switching to either JK or JK2 connectors to connect to your webserver as they are 
>still being developed, unlike Warp.
>
>  
>
Right now the only connectors I have enabled are:





Are those the right ones to use?

Thank you
Christina


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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Understanding tomcat web administration tool. [OT]

2004-07-29 Thread Ralph Einfeldt
Whow,

did you write a 'tomcat-answermatic-robot' during your last
holiday ? (Can you share it ? May be it can be extented to
an 'give-me-the-answer-to-any-question-robot')

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 29, 2004 3:43 PM
> To: Tomcat Users List
> Subject: RE: Understanding tomcat web administration tool.
> 
> 
> Hola,
> It's a work-in-progress, I assume.  But I'm not sure what you 
> mean since I don't have that ability...
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 

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



Re: Stopping takes ages

2004-07-29 Thread Christina Androne
Dale, Matt wrote:
It sounds like its possible that error could be causing the problem. I would suggest 
switching to either JK or JK2 connectors to connect to your webserver as they are 
still being developed, unlike Warp.
 

Right now the only connectors I have enabled are:
   
   
Are those the right ones to use?
Thank you
Christina
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Stopping takes ages

2004-07-29 Thread Dale, Matt

It sounds like its possible that error could be causing the problem. I would suggest 
switching to either JK or JK2 connectors to connect to your webserver as they are 
still being developed, unlike Warp.

Ta
Matt

-Original Message-
From: Christina Androne [mailto:[EMAIL PROTECTED]
Sent: 29 July 2004 15:52
To: Tomcat Users List
Subject: Re: Stopping takes ages


Hi

Just a wild guess, can be because of this error that keeps showing up in 
the logs?

2004-07-29 01:42:32 [org.apache.catalina.connector.warp.WarpConnector] 
Error accepting requests
java.net.SocketException: Socket closed
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
   at java.net.ServerSocket.implAccept(ServerSocket.java:448)
   at java.net.ServerSocket.accept(ServerSocket.java:419)
   at org.apache.catalina.connector.warp.WarpConnector.run(Unknown Source)
   at java.lang.Thread.run(Thread.ja

The tomcat version is 4.1.29, OS is red hat 8 and jdk 1 .4.2_03. But the 
biggest problem is not that stopping is slow, but that the browser does 
not get response from the servlet. I've placed debug messages in the 
servlet so I am sure it does not hang inside of it.

Christina

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Stopping takes ages

2004-07-29 Thread Shapira, Yoav
Hi,
It could be because of this error, or because of other things ;)  As you
say, it's a wild guess ;)  For starters, ditch the WARP connector and
use the much more actively developed and maintained Coyote connector,
assuming that's an option for your environment.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Christina Androne [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 10:52 AM
>To: Tomcat Users List
>Subject: Re: Stopping takes ages
>
>Hi
>
>Just a wild guess, can be because of this error that keeps showing up
in
>the logs?
>
>2004-07-29 01:42:32 [org.apache.catalina.connector.warp.WarpConnector]
>Error accepting requests
>java.net.SocketException: Socket closed
>   at java.net.PlainSocketImpl.socketAccept(Native Method)
>   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
>   at java.net.ServerSocket.implAccept(ServerSocket.java:448)
>   at java.net.ServerSocket.accept(ServerSocket.java:419)
>   at org.apache.catalina.connector.warp.WarpConnector.run(Unknown
Source)
>   at java.lang.Thread.run(Thread.ja
>
>The tomcat version is 4.1.29, OS is red hat 8 and jdk 1 .4.2_03. But
the
>biggest problem is not that stopping is slow, but that the browser does
>not get response from the servlet. I've placed debug messages in the
>servlet so I am sure it does not hang inside of it.
>
>Christina
>
>-
>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: Stopping takes ages

2004-07-29 Thread Christina Androne
Hi
Just a wild guess, can be because of this error that keeps showing up in 
the logs?

2004-07-29 01:42:32 [org.apache.catalina.connector.warp.WarpConnector] 
Error accepting requests
java.net.SocketException: Socket closed
  at java.net.PlainSocketImpl.socketAccept(Native Method)
  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
  at java.net.ServerSocket.implAccept(ServerSocket.java:448)
  at java.net.ServerSocket.accept(ServerSocket.java:419)
  at org.apache.catalina.connector.warp.WarpConnector.run(Unknown Source)
  at java.lang.Thread.run(Thread.ja

The tomcat version is 4.1.29, OS is red hat 8 and jdk 1 .4.2_03. But the 
biggest problem is not that stopping is slow, but that the browser does 
not get response from the servlet. I've placed debug messages in the 
servlet so I am sure it does not hang inside of it.

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


RE: JSP-debugging problem

2004-07-29 Thread Shapira, Yoav

Hi,
Why don't you just let Tomcat use the default work directory?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: OR623 [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 11:35 AM
>To: '[EMAIL PROTECTED]'
>Subject: JSP-debugging problem
>
>Hello!
>
>I am using JDK 1.4.2_05, Tomcat 5.0.25, Eclipse 2.1.3, Lomboz 2.1.3. My
>task
>is to develop a webapplication. Therefore I need JSP-debugging, I mean
it
>would be nice.
>
>
>What I made to make JSP-Debugging possible (according to
>http://www.objectlearn.com/support/docs/debuggingJSP.jsp):
>
>1. Put a file named context.xml under
>[eclipsehome]/workspace/myapp/mywebapp/meta-inf
>
>2. The code in context.xml:
>  docbase="C:/Programme/eclipse/workspace/fase_dev/fase_dev"
>   workDir="C:/Programme/eclipse/workspace/fase_dev/j2src" />
>
>3. Use Deploy-Command from Lomboz, which generates a war-file (with the
>context.xml inside)
>
>4. Start Tomcat
>
>Tomcat seems to accept the context.xml. After starting, the context.xml
can
>also be found at [tomcathome]/conf/Catalina/localhost with name
>mywebapp.xml. But in the tomcat console an error occurs:
>29.07.2004 11:53:33 org.apache.jasper.EmbeddedServletOptions 
>SCHWERWIEGEND: The scratchDir you specified: C:\TOMCAT50\
>C:\Programme\eclipse\workspace\fase_dev\j2src is unusable.
>29.07.2004 11:53:33 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Processing Context configuration file URL
>file:C:\TOMCAT50\conf\Catalina\localhost\manager.xml
>
>Somehow the workDir got the prefix [tomcathome]. Does anyone know,
where I
>can disable this functionality?
>
>
>Thanks in Advance!
>
>Kathleen
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



JSP-debugging problem

2004-07-29 Thread OR623
Hello!

I am using JDK 1.4.2_05, Tomcat 5.0.25, Eclipse 2.1.3, Lomboz 2.1.3. My task
is to develop a webapplication. Therefore I need JSP-debugging, I mean it
would be nice.


What I made to make JSP-Debugging possible (according to
http://www.objectlearn.com/support/docs/debuggingJSP.jsp):

1. Put a file named context.xml under
[eclipsehome]/workspace/myapp/mywebapp/meta-inf

2. The code in context.xml:


3. Use Deploy-Command from Lomboz, which generates a war-file (with the
context.xml inside)

4. Start Tomcat

Tomcat seems to accept the context.xml. After starting, the context.xml can
also be found at [tomcathome]/conf/Catalina/localhost with name
mywebapp.xml. But in the tomcat console an error occurs:
29.07.2004 11:53:33 org.apache.jasper.EmbeddedServletOptions 
SCHWERWIEGEND: The scratchDir you specified: C:\TOMCAT50\
C:\Programme\eclipse\workspace\fase_dev\j2src is unusable.
29.07.2004 11:53:33 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:C:\TOMCAT50\conf\Catalina\localhost\manager.xml

Somehow the workDir got the prefix [tomcathome]. Does anyone know, where I
can disable this functionality?


Thanks in Advance!

Kathleen



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



RE: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED

2004-07-29 Thread Martin, David S
I also tried the latest version just now thinking the same thing and it
does not work either. I will test JDK1.5 when it is released, and post
the results here as well.



David Martin
Software Engineer, Board Tools Software Development
Intel Corporation
Platform Architecture and Solutions Division, Desktop Products Group
Phone: (503) 696-8658
Email:[EMAIL PROTECTED]


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 29, 2004 7:21 AM
To: Tomcat Users List
Subject: RE: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED


Hi,
Thanks for posting the conclusion: such posts are extremely valuable to
people searching the archives in the future.

If you can try it, does 1.4.2_04 (the latest I believe) solve the
problem?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Martin, David S [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 10:03 AM
>To: Tomcat Users List
>Subject: RE: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED
>
>So it turns out that the issue I was having with Win2k3 and Tomcat was
>with the JDK that I was using, 1.4.2_02. One of our IT guys found a
>reference in their bug parade that there is an HTTP issue with 1.4.2. I
>rolled our JDK back to 1.4.1_02 and my web application works like it
did
>on Linux and Win2K.
>
>I just wanted to let people know incase someone else asks the same
>question.
>
>
>---
-
>
>David Martin
>
>
>-Original Message-
>From: Martin, David S [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 27, 2004 12:18 PM
>To: Tomcat Users List
>Subject: RE: Win2K3 / Tomcat 4.1 and 5.0 issues
>
>QM,
>
>Yes, they both have the same FS in the Win2K and Win2K3 machines.
>
>Well I know it's not the NIC card on the machine because I can log onto
>the server that is having the issue, go to the machine where the 48MB
>file lives and drag and drop it onto the desktop and the file transfers
>in ~2 min.
>
>
>---
-
>
>David Martin
>
>
>-Original Message-
>From: QM [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 27, 2004 12:08 PM
>To: Tomcat Users List
>Subject: Re: Win2K3 / Tomcat 4.1 and 5.0 issues
>
>On Tue, Jul 27, 2004 at 12:05:00PM -0700, Martin, David S wrote:
>: our IT guys install IIS on the machine with the issue, created a test
>: HTML page that has an upload field and IIS is showing the same type
of
>: problem ... weird.
>
>Hmm... That takes Java I/O out of the picture.
>
>Same type of FS under 2k vs 2k3?
>
>-or what about a NIC problem?
>I've been bitten by a few "autonegotiating" cards that didn't.
>
>-QM
>
>--
>
>software  -- http://www.brandxdev.net
>tech news -- http://www.RoarNetworX.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]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
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: sendRedirect not working same after upgrade to 5...26

2004-07-29 Thread Williams, Bret M.
It works fine in 3.3.a.  

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thu 7/29/2004 8:21 AM 
To: Williams, Bret M. 
Cc: 
Subject: RE: sendRedirect not working same after upgrade to 5...26



Hi,
I'll look at this if I have time.  Can you try Tomcat 3.3.x?  That has
the same HTTP Connector as Tomcat 5, so the behavior should be the same.
If it also breaks in Tomcat 3.3.x, that'd be helpful for us to narrow
down the code location.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Williams, Bret M. [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 28, 2004 5:19 PM
>To: Shapira, Yoav
>Subject: RE: sendRedirect not working same after upgrade to 5...26
>
>   Thanks for the MARC Info. That helped.  Sorry for the direct
mailing
>but again the company I work for bounced the "SPAM" I was sending to
>tomcat-user.
>
>   I have narrowed the problem down a little by coming up with a
small
>test. It seems to be an issue with using Tomcat 5.x (Tomcat 3.2.1
works) to
>sendRedirect() to a servlet that renders  contenttype
to
>IE 6.x (Mozilla works). I get a blank page that needs to be refreshed.
The
>fact that Tomcat 3.2.1 works makes me think it's a Tomcat bug. What do
you
>think?
>
>   I attached my simple little test servlets. There's a test.pdf
file in
>the .jar that is used for the servlet output. Its location is hardcoded
to
>c:\test.pdf in the TestPDFOutputServlet.
>
>   Thanks, Bret.
>
>   -Original Message-
>
>   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> ]
>
>   Sent: Tuesday, July 27, 2004 1:10 PM
>
>   To: Tomcat Users List
>
>   Subject: RE: sendRedirect not working same after upgrade to
5...26
>
>
>
>   Hi,
>
>   It's not a problem that's been discussed to death, that's for
sure.
>
>   Enable the AccessLogValve (it's commented out by default in
>server.xml) and observe the URL requested and server response code for
your
>redirect request.
>
>   As for archives, try the ones at AIMS (marc.theaimsgroup.com or
>something like that), as they are just a normal site and not likely to
be
>blocked.
>
>   Yoav Shapira
>
>   Millennium Research Informatics
>
>
>
>   >-Original Message-
>
>   >From: Williams, Bret M. [mailto:[EMAIL PROTECTED]
> ]
>
>   >Sent: Tuesday, July 27, 2004 2:04 PM
>
>   >To: [EMAIL PROTECTED]
>
>   >Subject: sendRedirect not working same after upgrade to 5...26
>
>   >
>
>   >Hi,
>
>   >I recently upgraded from Tomcat 3.2.1 to 5.xxx and noticed that
>
>   >sendRedirect() did not work the same between the two versions.
In
>
>   Tomcat 5
>
>   >when I tried to redirect to a servlet whose output contenttype
was
>
>   > or  I would get a blank page and
be
>
>   forced
>
>   >to refresh from the browser to see the results. I can get it to
work
>
>   with
>
>   >forward(req,res), but forward() doesn't register in the
browser. Any
>
>   help
>
>   >would be appreciated.
>
>   >
>
>   >If this is a problem that has been discussed to death - sorry -
the
>
>   >company I work for blocks me accessing the Tomcat-user
Archives.
>
>   >
>
>   >Thanks, Bret
>
>   >
>
>
>
>-
>
>   >To unsubscribe, e-mail:
[EMAIL PROTECTED]
>
>   >For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
>
>
>
>
>   This e-mail, including any attachments, is a confidential
business
>communication, and may contain information that is confidential,
>proprietary and/or privileged. This e-mail is intended o

RE: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED

2004-07-29 Thread Shapira, Yoav

Hi,
Thanks for posting the conclusion: such posts are extremely valuable to
people searching the archives in the future.

If you can try it, does 1.4.2_04 (the latest I believe) solve the
problem?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Martin, David S [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 10:03 AM
>To: Tomcat Users List
>Subject: RE: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED
>
>So it turns out that the issue I was having with Win2k3 and Tomcat was
>with the JDK that I was using, 1.4.2_02. One of our IT guys found a
>reference in their bug parade that there is an HTTP issue with 1.4.2. I
>rolled our JDK back to 1.4.1_02 and my web application works like it
did
>on Linux and Win2K.
>
>I just wanted to let people know incase someone else asks the same
>question.
>
>
>---
-
>
>David Martin
>
>
>-Original Message-
>From: Martin, David S [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 27, 2004 12:18 PM
>To: Tomcat Users List
>Subject: RE: Win2K3 / Tomcat 4.1 and 5.0 issues
>
>QM,
>
>Yes, they both have the same FS in the Win2K and Win2K3 machines.
>
>Well I know it's not the NIC card on the machine because I can log onto
>the server that is having the issue, go to the machine where the 48MB
>file lives and drag and drop it onto the desktop and the file transfers
>in ~2 min.
>
>
>---
-
>
>David Martin
>
>
>-Original Message-
>From: QM [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 27, 2004 12:08 PM
>To: Tomcat Users List
>Subject: Re: Win2K3 / Tomcat 4.1 and 5.0 issues
>
>On Tue, Jul 27, 2004 at 12:05:00PM -0700, Martin, David S wrote:
>: our IT guys install IIS on the machine with the issue, created a test
>: HTML page that has an upload field and IIS is showing the same type
of
>: problem ... weird.
>
>Hmm... That takes Java I/O out of the picture.
>
>Same type of FS under 2k vs 2k3?
>
>-or what about a NIC problem?
>I've been bitten by a few "autonegotiating" cards that didn't.
>
>-QM
>
>--
>
>software  -- http://www.brandxdev.net
>tech news -- http://www.RoarNetworX.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]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: JasperException in custom tag processing

2004-07-29 Thread Jonathan Oddy
On 28 July 2004 18:44 I said:
> I don't understand why tomcat/jasper has decide to call 
> getValueFromPropertyEditorManager for properties "second" 
> and "targetDate" and not simply passed in the strings 
> that have been set up (as it did in the setFirst call).

I tracked this down; it would appear that the JSP pre-processor Tomcat uses
doesn't cope with beans being used as tags where the bean has setters with
parameter overloading.  In my case I had setSecond(Date) and
setSecond(String) methods within my tag implementation.  Whereas JRun could
cope with this Tomact couldn't and seemed to arbitrarily choose the wrong
method to construct in its Java representation of my JSP.

I still don't know why tomcat coped with setFirst as it is also
overloaded... 

Jonathan


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



RE: Understanding tomcat web administration tool.

2004-07-29 Thread Shapira, Yoav
Hi,

>When you say "coming soon", is it a matter of days, weeks, or months?

The same answer as always: when it's ready.  We can't give an ETA
because we don't know.  Typically we don't go more than a few weeks
without a release, but this feature might not be ready for the next
release.  If you're really interested, subscribe to and follow
tomcat-dev discussions, where we frequently discuss work progress
towards the next release.

>also, is the plan to make it so that adding hosts via the manager will
or
>will not require a tomcat restart?

I think so.

Yoav


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



RE: How can I display number of requests over the past n seconds?

2004-07-29 Thread Shapira, Yoav
Hi,
You would need to modify your filter.  One approach would be to have
separate counters, one for each time period, with a monitor thread for
each one.  The monitor thread would sleep for the duration of the timer,
then reset it.  The Filter would initialize these counters and threads,
then increment each timer by one every time a request comes in.  The JSP
would simply read the counter values.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: tom ly [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 10:11 AM
>To: [EMAIL PROTECTED]
>Subject: How can I display number of requests over the past n seconds?
>
>I need to display on a .jsp page the number of requests for Tomcat in
the
>past 5 / 10 / 15/ 30 / 45 / 60 seconds.  I've already implement a
Filter
>will count the total number of requests.  I did this with a static int,
>which is incremented everytime a request comes in.  But what should I
do so
>that I can show number of request over past time intervals?  Since the
>present time is always changing, "the past n seconds" is constantly
>changing also.
>Thanks in advance,
>Tom
>
>__
>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: How can I display number of requests over the past n seconds?

2004-07-29 Thread Tim Funk
You could use a list of java.util.Dates with the oldest date at the beginning 
of the list and the newest at the end of the List. Push new Dates onto the 
list and pull (expired) dates from the front of the list accoring to your 
threshold.

The number of hits per unit time is the size of each list.
-Tim
tom ly wrote:
I need to display on a .jsp page the number of requests for Tomcat in the past 5 / 10 / 15/ 30 / 45 / 60 seconds.  I've already implement a Filter will count the total number of requests.  I did this with a static int, which is incremented everytime a request comes in.  But what should I do so that I can show number of request over past time intervals?  Since the present time is always changing, "the past n seconds" is constantly changing also.  

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


Re: Logging, Analysis and Forwarding

2004-07-29 Thread Tim Funk
To rotate your logs monthly - use the fileDateFormat field
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html
for example: fileDateFormat="-MM"
-Tim
Shapira, Yoav wrote:
Hi,
There are many free log analysis tools.  Tomcat's AccessLogValve writes
the standard formats (CLF and ELF, Common Logfile Format and Extended
Logfile Format).  So you can use something like WebAlizer or
http-analyze.
Monthly collection of your logs is something you'd have to script
yourself: there's no such facility built into Tomcat.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 3:47 PM
To: [EMAIL PROTECTED]
Subject: Logging, Analysis and Forwarding
Hi
I have 3 questions:
1. How can I enable redirection of errorLogs, accessLogs AND
stdout/stderr
into MONTHLY files with tomcat 5.0.27+?
2. Is there any freeware tool to analyse tomcats accessLogs?
3. Is there an easy way to forward host/test/... to
http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on
80). I
read that filters could do so, but found no example...
Maybe someone can help me. Thanks.
Regards,
Steffen
-
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: Understanding tomcat web administration tool.

2004-07-29 Thread Matthew Mamet
When you say "coming soon", is it a matter of days, weeks, or months?
 
also, is the plan to make it so that adding hosts via the manager will or will not 
require a tomcat restart?
 
thanks!



From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thu 7/29/2004 9:20 AM
To: Tomcat Users List
Subject: RE: Understanding tomcat web administration tool.



Hi,
The ability to add Hosts via the Manager webapp is coming soon.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Stephan Kühn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 9:16 AM
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>Ok,,
>
>why i must edit the server.xml file by hand only to add a vhost?? When i
>try this with the webgui it will not work...
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Donnerstag, 29. Juli 2004 15:11
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>
>Hi,
>Out of the box, you don't need to edit admin.xml or manager.xml.  You
>just need to add a user with roles of admin and manager to the
>tomcat-users.xml file and restart the server.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 29, 2004 8:22 AM
>>To: Tomcat Users List
>>Subject: Understanding tomcat web administration tool.
>>
>>I'm trying to understand how to configure admin.xml correctly so I can
>>access the web and manager administration tool.
>>
>>I'm trying to understand how the following doc applies to the admin.xml
>>:
>>
>>  The administration and manager web applications, which are
>defined in
>>the
>>$CATALINA_BASE/webapps/admin.xml and $CATALINA_BASE/webapps/manager.xml
>>will
>>not run in that configuration, unless either:
>>- The path specified in the docBase attribute of the Context element is
>>made
>>  absolute, and replaced respectively by
>>$CATALINA_HOME/server/webapps/admin
>>  and $CATALINA_HOME/server/webapps/manager
>>- Copying and linking both web applications in $CATALINA_BASE, and
>>modify
>>  accordingly the path specified in the docBase attribute of the
>Context
>>  element
>>- Disabling both web applications by removing
>>$CATALINA_BASE/webapps/admin.xml
>>  and $CATALINA_BASE/webapps/manager.xml
>>
>>How do I correctly edit the admin.xml with regards to the "context
>>element"?
>>
>>What should this read:  >docBase="../server/webapps/admin"
>> debug="0" privileged="true">  My tomcat installation is
>>/usr/local/tomcat4
>>
>>Mac OS 10.3
>>
>>Thanks,
>>
>>Samuel.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an) intended
>recipient, please immediately delete this e-mail from your computer system
>and notify the sender.  Thank you.
>
>
>-
>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: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED

2004-07-29 Thread Martin, David S
I think we can chalk "IIS as being IIS" and the machine probably needed
a reboot since it was running a MS OS. :)



David Martin
Software Engineer, Board Tools Software Development
Intel Corporation
Platform Architecture and Solutions Division, Desktop Products Group
Phone: (503) 696-8658
Email:[EMAIL PROTECTED]


-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 29, 2004 7:10 AM
To: Tomcat Users List
Subject: Re: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED

On Thu, Jul 29, 2004 at 07:03:13AM -0700, Martin, David S wrote:
: So it turns out that the issue I was having with Win2k3 and Tomcat was
: with the JDK that I was using, 1.4.2_02. One of our IT guys found a
: reference in their bug parade that there is an HTTP issue with 1.4.2.

Excellent!

What was with the red herring from IIS, though? I recall you installed
IIS as a test and it exhibited the same poor I/O performance as Tomcat
under JDK 1.4.2...

-or do we just chalk that up as "IIS being IIS?" ;)


btw, thanks for sharing the solution with the list.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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]



How can I display number of requests over the past n seconds?

2004-07-29 Thread tom ly
I need to display on a .jsp page the number of requests for Tomcat in the past 5 / 10 
/ 15/ 30 / 45 / 60 seconds.  I've already implement a Filter will count the total 
number of requests.  I did this with a static int, which is incremented everytime a 
request comes in.  But what should I do so that I can show number of request over past 
time intervals?  Since the present time is always changing, "the past n seconds" is 
constantly changing also.  
Thanks in advance,
Tom

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

Re: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED

2004-07-29 Thread QM
On Thu, Jul 29, 2004 at 07:03:13AM -0700, Martin, David S wrote:
: So it turns out that the issue I was having with Win2k3 and Tomcat was
: with the JDK that I was using, 1.4.2_02. One of our IT guys found a
: reference in their bug parade that there is an HTTP issue with 1.4.2.

Excellent!

What was with the red herring from IIS, though? I recall you installed
IIS as a test and it exhibited the same poor I/O performance as Tomcat
under JDK 1.4.2...

-or do we just chalk that up as "IIS being IIS?" ;)


btw, thanks for sharing the solution with the list.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Stopping takes ages

2004-07-29 Thread Dale, Matt

You'll need to at least tell us what version of tomcat and supply logs and 
configurations and environment details before anyone will be able to help you.

-Original Message-
From: Webmaster [mailto:[EMAIL PROTECTED]
Sent: 29 July 2004 15:03
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: RE: Stopping takes ages




-Original Message-
From: Christina Androne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 28, 2004 5:31 PM
To: [EMAIL PROTECTED]
Subject: Stopping takes ages

Hello everybody

Does anybody has a clue on why stopping the Tomcat takes ages? And why 
some pages are never returned to the client although the servlets send 
the output in less then a second?

Thank you,
Christina

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Win2K3 / Tomcat 4.1 and 5.0 issues - SOLVED

2004-07-29 Thread Martin, David S
So it turns out that the issue I was having with Win2k3 and Tomcat was
with the JDK that I was using, 1.4.2_02. One of our IT guys found a
reference in their bug parade that there is an HTTP issue with 1.4.2. I
rolled our JDK back to 1.4.1_02 and my web application works like it did
on Linux and Win2K. 

I just wanted to let people know incase someone else asks the same
question.




David Martin


-Original Message-
From: Martin, David S [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 27, 2004 12:18 PM
To: Tomcat Users List
Subject: RE: Win2K3 / Tomcat 4.1 and 5.0 issues

QM,

Yes, they both have the same FS in the Win2K and Win2K3 machines.

Well I know it's not the NIC card on the machine because I can log onto
the server that is having the issue, go to the machine where the 48MB
file lives and drag and drop it onto the desktop and the file transfers
in ~2 min.




David Martin


-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 27, 2004 12:08 PM
To: Tomcat Users List
Subject: Re: Win2K3 / Tomcat 4.1 and 5.0 issues

On Tue, Jul 27, 2004 at 12:05:00PM -0700, Martin, David S wrote:
: our IT guys install IIS on the machine with the issue, created a test
: HTML page that has an upload field and IIS is showing the same type of
: problem ... weird.

Hmm... That takes Java I/O out of the picture.

Same type of FS under 2k vs 2k3?

-or what about a NIC problem? 
I've been bitten by a few "autonegotiating" cards that didn't.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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]


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



RE: Stopping takes ages

2004-07-29 Thread Webmaster


-Original Message-
From: Christina Androne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 28, 2004 5:31 PM
To: [EMAIL PROTECTED]
Subject: Stopping takes ages

Hello everybody

Does anybody has a clue on why stopping the Tomcat takes ages? And why 
some pages are never returned to the client although the servlets send 
the output in less then a second?

Thank you,
Christina

-
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: Understanding tomcat web administration tool.

2004-07-29 Thread Stephan Kühn
Ok sorry..

When you open the admin page , then you can add additional vhost under your service. 
Now add a contect to the vhost. So when you save and confirm your changing and restart 
the tomcat service all your changes are gone! But if you say, thill will  fixed, very 
good :-))

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 29. Juli 2004 15:43
To: Tomcat Users List
Subject: RE: Understanding tomcat web administration tool.

Hola,
It's a work-in-progress, I assume.  But I'm not sure what you mean since I don't have 
that ability...

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Stephan Kühn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 9:39 AM
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>Hahah,
>
>and why i can choice this from the menu now ?
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Donnerstag, 29. Juli 2004 15:20
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>Hi,
>The ability to add Hosts via the Manager webapp is coming soon.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Stephan Kühn [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 29, 2004 9:16 AM
>>To: Tomcat Users List
>>Subject: RE: Understanding tomcat web administration tool.
>>
>>Ok,,
>>
>>why i must edit the server.xml file by hand only to add a vhost?? When i
>>try this with the webgui it will not work...
>>
>>-Original Message-
>>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>>Sent: Donnerstag, 29. Juli 2004 15:11
>>To: Tomcat Users List
>>Subject: RE: Understanding tomcat web administration tool.
>>
>>
>>Hi,
>>Out of the box, you don't need to edit admin.xml or manager.xml.  You
>>just need to add a user with roles of admin and manager to the
>>tomcat-users.xml file and restart the server.
>>
>>Yoav Shapira
>>Millennium Research Informatics
>>
>>
>>>-Original Message-
>>>From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, July 29, 2004 8:22 AM
>>>To: Tomcat Users List
>>>Subject: Understanding tomcat web administration tool.
>>>
>>>I'm trying to understand how to configure admin.xml correctly so I can
>>>access the web and manager administration tool.
>>>
>>>I'm trying to understand how the following doc applies to the admin.xml
>>>:
>>>
>>> The administration and manager web applications, which are
>>defined in
>>>the
>>>$CATALINA_BASE/webapps/admin.xml and $CATALINA_BASE/webapps/manager.xml
>>>will
>>>not run in that configuration, unless either:
>>>- The path specified in the docBase attribute of the Context element is
>>>made
>>>  absolute, and replaced respectively by
>>>$CATALINA_HOME/server/webapps/admin
>>>  and $CATALINA_HOME/server/webapps/manager
>>>- Copying and linking both web applications in $CATALINA_BASE, and
>>>modify
>>>  accordingly the path specified in the docBase attribute of the
>>Context
>>>  element
>>>- Disabling both web applications by removing
>>>$CATALINA_BASE/webapps/admin.xml
>>>  and $CATALINA_BASE/webapps/manager.xml
>>>
>>>How do I correctly edit the admin.xml with regards to the "context
>>>element"?
>>>
>>>What should this read:  >>docBase="../server/webapps/admin"
>>> debug="0" privileged="true">  My tomcat installation is
>>>/usr/local/tomcat4
>>>
>>>Mac OS 10.3
>>>
>>>Thanks,
>>>
>>>Samuel.
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>This e-mail, including any attachments, is a confidential business
>>communication, and may contain information that is confidential,
>>proprietary and/or privileged.  This e-mail is intended only for the
>>individual(s) to whom it is addressed, and may not be saved, copied,
>>printed, disclosed or used by anyone else.  If you are not the(an)
>intended
>>recipient, please immediately delete this e-mail from your computer system
>>and notify the sender.  Thank you.
>>
>>
>>-
>>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]




--

AW: Logging, Analysis and Forwarding

2004-07-29 Thread Gunnar Pörschke
There is also "analog" for windows os and unix.

Under tomcat log on as admin and create a new valve for the specific
content. There you should find the mentioned logger. Use option combined to
log almost everything in your log file.

Take care to accept the changes. Maybe you need to redo the settings,
because tomcat didn't save it on the first time...

Cheers,

gunnar

-Ursprüngliche Nachricht-
Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 29. Juli 2004 15:03
An: Tomcat Users List
Betreff: RE: Logging, Analysis and Forwarding

Hi,
There are many free log analysis tools.  Tomcat's AccessLogValve writes the
standard formats (CLF and ELF, Common Logfile Format and Extended Logfile
Format).  So you can use something like WebAlizer or http-analyze.

Monthly collection of your logs is something you'd have to script
yourself: there's no such facility built into Tomcat.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: SH Solutions [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 28, 2004 3:47 PM
>To: [EMAIL PROTECTED]
>Subject: Logging, Analysis and Forwarding
>
>Hi
>
>I have 3 questions:
>
>1. How can I enable redirection of errorLogs, accessLogs AND
stdout/stderr
>into MONTHLY files with tomcat 5.0.27+?
>2. Is there any freeware tool to analyse tomcats accessLogs?
>3. Is there an easy way to forward host/test/... to 
>http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on
80). I
>read that filters could do so, but found no example...
>
>Maybe someone can help me. Thanks.
>
>Regards,
>  Steffen
>
>
>-
>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: Understanding tomcat web administration tool.

2004-07-29 Thread Shapira, Yoav
Hola,
It's a work-in-progress, I assume.  But I'm not sure what you mean since I don't have 
that ability...

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Stephan Kühn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 9:39 AM
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>Hahah,
>
>and why i can choice this from the menu now ?
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Donnerstag, 29. Juli 2004 15:20
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>Hi,
>The ability to add Hosts via the Manager webapp is coming soon.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Stephan Kühn [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 29, 2004 9:16 AM
>>To: Tomcat Users List
>>Subject: RE: Understanding tomcat web administration tool.
>>
>>Ok,,
>>
>>why i must edit the server.xml file by hand only to add a vhost?? When i
>>try this with the webgui it will not work...
>>
>>-Original Message-
>>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>>Sent: Donnerstag, 29. Juli 2004 15:11
>>To: Tomcat Users List
>>Subject: RE: Understanding tomcat web administration tool.
>>
>>
>>Hi,
>>Out of the box, you don't need to edit admin.xml or manager.xml.  You
>>just need to add a user with roles of admin and manager to the
>>tomcat-users.xml file and restart the server.
>>
>>Yoav Shapira
>>Millennium Research Informatics
>>
>>
>>>-Original Message-
>>>From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, July 29, 2004 8:22 AM
>>>To: Tomcat Users List
>>>Subject: Understanding tomcat web administration tool.
>>>
>>>I'm trying to understand how to configure admin.xml correctly so I can
>>>access the web and manager administration tool.
>>>
>>>I'm trying to understand how the following doc applies to the admin.xml
>>>:
>>>
>>> The administration and manager web applications, which are
>>defined in
>>>the
>>>$CATALINA_BASE/webapps/admin.xml and $CATALINA_BASE/webapps/manager.xml
>>>will
>>>not run in that configuration, unless either:
>>>- The path specified in the docBase attribute of the Context element is
>>>made
>>>  absolute, and replaced respectively by
>>>$CATALINA_HOME/server/webapps/admin
>>>  and $CATALINA_HOME/server/webapps/manager
>>>- Copying and linking both web applications in $CATALINA_BASE, and
>>>modify
>>>  accordingly the path specified in the docBase attribute of the
>>Context
>>>  element
>>>- Disabling both web applications by removing
>>>$CATALINA_BASE/webapps/admin.xml
>>>  and $CATALINA_BASE/webapps/manager.xml
>>>
>>>How do I correctly edit the admin.xml with regards to the "context
>>>element"?
>>>
>>>What should this read:  >>docBase="../server/webapps/admin"
>>> debug="0" privileged="true">  My tomcat installation is
>>>/usr/local/tomcat4
>>>
>>>Mac OS 10.3
>>>
>>>Thanks,
>>>
>>>Samuel.
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>This e-mail, including any attachments, is a confidential business
>>communication, and may contain information that is confidential,
>>proprietary and/or privileged.  This e-mail is intended only for the
>>individual(s) to whom it is addressed, and may not be saved, copied,
>>printed, disclosed or used by anyone else.  If you are not the(an)
>intended
>>recipient, please immediately delete this e-mail from your computer system
>>and notify the sender.  Thank you.
>>
>>
>>-
>>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: Understanding tomcat web administration tool.

2004-07-29 Thread Stephan Kühn
Hahah,

and why i can choice this from the menu now ? 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 29. Juli 2004 15:20
To: Tomcat Users List
Subject: RE: Understanding tomcat web administration tool.

Hi,
The ability to add Hosts via the Manager webapp is coming soon.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Stephan Kühn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 9:16 AM
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>Ok,,
>
>why i must edit the server.xml file by hand only to add a vhost?? When i
>try this with the webgui it will not work...
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Donnerstag, 29. Juli 2004 15:11
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>
>Hi,
>Out of the box, you don't need to edit admin.xml or manager.xml.  You
>just need to add a user with roles of admin and manager to the
>tomcat-users.xml file and restart the server.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 29, 2004 8:22 AM
>>To: Tomcat Users List
>>Subject: Understanding tomcat web administration tool.
>>
>>I'm trying to understand how to configure admin.xml correctly so I can
>>access the web and manager administration tool.
>>
>>I'm trying to understand how the following doc applies to the admin.xml
>>:
>>
>>  The administration and manager web applications, which are
>defined in
>>the
>>$CATALINA_BASE/webapps/admin.xml and $CATALINA_BASE/webapps/manager.xml
>>will
>>not run in that configuration, unless either:
>>- The path specified in the docBase attribute of the Context element is
>>made
>>  absolute, and replaced respectively by
>>$CATALINA_HOME/server/webapps/admin
>>  and $CATALINA_HOME/server/webapps/manager
>>- Copying and linking both web applications in $CATALINA_BASE, and
>>modify
>>  accordingly the path specified in the docBase attribute of the
>Context
>>  element
>>- Disabling both web applications by removing
>>$CATALINA_BASE/webapps/admin.xml
>>  and $CATALINA_BASE/webapps/manager.xml
>>
>>How do I correctly edit the admin.xml with regards to the "context
>>element"?
>>
>>What should this read:  >docBase="../server/webapps/admin"
>> debug="0" privileged="true">  My tomcat installation is
>>/usr/local/tomcat4
>>
>>Mac OS 10.3
>>
>>Thanks,
>>
>>Samuel.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an) intended
>recipient, please immediately delete this e-mail from your computer system
>and notify the sender.  Thank you.
>
>
>-
>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: How to disable CGI's 404 error

2004-07-29 Thread Shapira, Yoav
Hi,
The "development" state or flag is unique to the JSP servlet.  The CGI
servlet and others don't have that option.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 9:29 AM
>To: Tomcat Users List
>Subject: Re: How to disable CGI's 404 error
>
>Yes, that did the trick.
>
>I still wonder why I'm in the development state, after setting
>web.xml the jsp servlet with development to false. Is this a compiled
>in option for the CGI servlet or something I can configure?
>
>Thanks
>
>On Thu, Jul 29, 2004 at 08:56:42AM -0400, Shapira, Yoav wrote:
>>
>> Hola,
>> The normal 404 error page doesn't have that information, so I'm
guessing
>> you're seeing the CGI servlet's more detailed error page.  That page
was
>> created to assist developers in debugging CGI problems, and you're
right
>> to not want to show it to the world.  Check to see what the HTTP
>> response code is for a non-existing URL (you'd think 404), and create
a
>> simple custom error page for that code (just a static HTML page with
a
>> "not found" message).  Then map the custom error page in your
web.xml.
>>
>> Yoav Shapira
>> Millennium Research Informatics
>>
>>
>> >-Original Message-
>> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> >Sent: Thursday, July 29, 2004 7:40 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: How to disable CGI's 404 error
>> >
>> >Hello,
>> >
>> >We have a per user tomcat4 installation with Proxy enabled. I've
>> configured
>> >tomcat4 to serve CGI files and it works fine for that user. However
>> >there's one problem. When I enter an non-existing URL under the
>> cgi-bin/
>> >path, I get a html source of a "CGI script not found or not
specified"
>> >error, along with all sorts of info about my server like
>> >ServletRequest Properties, HttpServletRequest Properties and
>> >ServletRequest Attributes.
>> >
>> >Of course I don't want this info to be available to anyone and want
>> >to disable it. I search google, this group archive and
>> jakarta.apache.org
>> >with no luck (the only thing I came close to was the change of
listings
>> >from true to false under the default servlet, but that didn't
assist)
>> so
>> >here I am, asking you guys.
>> >
>> >Thanks in advance.
>> >
>> >-G
>> >
>> >
>>
>-
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>> This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender.  Thank you.
>>
>>
>> -
>> 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: How to disable CGI's 404 error

2004-07-29 Thread tomcat-users
Yes, that did the trick.

I still wonder why I'm in the development state, after setting 
web.xml the jsp servlet with development to false. Is this a compiled
in option for the CGI servlet or something I can configure?

Thanks

On Thu, Jul 29, 2004 at 08:56:42AM -0400, Shapira, Yoav wrote:
> 
> Hola,
> The normal 404 error page doesn't have that information, so I'm guessing
> you're seeing the CGI servlet's more detailed error page.  That page was
> created to assist developers in debugging CGI problems, and you're right
> to not want to show it to the world.  Check to see what the HTTP
> response code is for a non-existing URL (you'd think 404), and create a
> simple custom error page for that code (just a static HTML page with a
> "not found" message).  Then map the custom error page in your web.xml.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, July 29, 2004 7:40 AM
> >To: [EMAIL PROTECTED]
> >Subject: How to disable CGI's 404 error
> >
> >Hello,
> >
> >We have a per user tomcat4 installation with Proxy enabled. I've
> configured
> >tomcat4 to serve CGI files and it works fine for that user. However
> >there's one problem. When I enter an non-existing URL under the
> cgi-bin/
> >path, I get a html source of a "CGI script not found or not specified"
> >error, along with all sorts of info about my server like
> >ServletRequest Properties, HttpServletRequest Properties and
> >ServletRequest Attributes.
> >
> >Of course I don't want this info to be available to anyone and want
> >to disable it. I search google, this group archive and
> jakarta.apache.org
> >with no luck (the only thing I came close to was the change of listings
> >from true to false under the default servlet, but that didn't assist)
> so
> >here I am, asking you guys.
> >
> >Thanks in advance.
> >
> >-G
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> 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: Understanding tomcat web administration tool.

2004-07-29 Thread Shapira, Yoav
Hi,
The ability to add Hosts via the Manager webapp is coming soon.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Stephan Kühn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 9:16 AM
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>Ok,,
>
>why i must edit the server.xml file by hand only to add a vhost?? When i
>try this with the webgui it will not work...
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Donnerstag, 29. Juli 2004 15:11
>To: Tomcat Users List
>Subject: RE: Understanding tomcat web administration tool.
>
>
>Hi,
>Out of the box, you don't need to edit admin.xml or manager.xml.  You
>just need to add a user with roles of admin and manager to the
>tomcat-users.xml file and restart the server.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 29, 2004 8:22 AM
>>To: Tomcat Users List
>>Subject: Understanding tomcat web administration tool.
>>
>>I'm trying to understand how to configure admin.xml correctly so I can
>>access the web and manager administration tool.
>>
>>I'm trying to understand how the following doc applies to the admin.xml
>>:
>>
>>  The administration and manager web applications, which are
>defined in
>>the
>>$CATALINA_BASE/webapps/admin.xml and $CATALINA_BASE/webapps/manager.xml
>>will
>>not run in that configuration, unless either:
>>- The path specified in the docBase attribute of the Context element is
>>made
>>  absolute, and replaced respectively by
>>$CATALINA_HOME/server/webapps/admin
>>  and $CATALINA_HOME/server/webapps/manager
>>- Copying and linking both web applications in $CATALINA_BASE, and
>>modify
>>  accordingly the path specified in the docBase attribute of the
>Context
>>  element
>>- Disabling both web applications by removing
>>$CATALINA_BASE/webapps/admin.xml
>>  and $CATALINA_BASE/webapps/manager.xml
>>
>>How do I correctly edit the admin.xml with regards to the "context
>>element"?
>>
>>What should this read:  >docBase="../server/webapps/admin"
>> debug="0" privileged="true">  My tomcat installation is
>>/usr/local/tomcat4
>>
>>Mac OS 10.3
>>
>>Thanks,
>>
>>Samuel.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an) intended
>recipient, please immediately delete this e-mail from your computer system
>and notify the sender.  Thank you.
>
>
>-
>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: Understanding tomcat web administration tool.

2004-07-29 Thread Stephan Kühn
Ok,,

why i must edit the server.xml file by hand only to add a vhost?? When i try this with 
the webgui it will not work...

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 29. Juli 2004 15:11
To: Tomcat Users List
Subject: RE: Understanding tomcat web administration tool.


Hi,
Out of the box, you don't need to edit admin.xml or manager.xml.  You
just need to add a user with roles of admin and manager to the
tomcat-users.xml file and restart the server.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 8:22 AM
>To: Tomcat Users List
>Subject: Understanding tomcat web administration tool.
>
>I'm trying to understand how to configure admin.xml correctly so I can
>access the web and manager administration tool.
>
>I'm trying to understand how the following doc applies to the admin.xml
>:
>
>   The administration and manager web applications, which are
defined in
>the
>$CATALINA_BASE/webapps/admin.xml and $CATALINA_BASE/webapps/manager.xml
>will
>not run in that configuration, unless either:
>- The path specified in the docBase attribute of the Context element is
>made
>  absolute, and replaced respectively by
>$CATALINA_HOME/server/webapps/admin
>  and $CATALINA_HOME/server/webapps/manager
>- Copying and linking both web applications in $CATALINA_BASE, and
>modify
>  accordingly the path specified in the docBase attribute of the
Context
>  element
>- Disabling both web applications by removing
>$CATALINA_BASE/webapps/admin.xml
>  and $CATALINA_BASE/webapps/manager.xml
>
>How do I correctly edit the admin.xml with regards to the "context
>element"?
>
>What should this read:  docBase="../server/webapps/admin"
> debug="0" privileged="true">  My tomcat installation is
>/usr/local/tomcat4
>
>Mac OS 10.3
>
>Thanks,
>
>Samuel.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
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: Permanent Delivery Failure

2004-07-29 Thread David Smith
And how much coffee have you had this morning?? :-)  As a manager of a 
few email lists myself, I can fully appreciate the problem.  Kudos for 
keeping the list as clean as it is.

--David
Shapira, Yoav wrote:
Hi,
We monitor the list and unsubscribe autoresponders and things like that.
But given the constant influx of worms, viruses, people changing jobs
and not unsubscribing, companies dying and people from them not
unsubscribing, etc, it's nearly impossible to keep up with the flow,
especially given the banality of the task and the plethora of more fun
activities to be done.  I think the above is a fantastic example of a
run-on sentence that should be avoided by anyone who knows basic English
grammar...
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Vladislav Y. Ryabyshkin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 5:26 AM
To: Tomcat Users List
Subject: Re: Permanent Delivery Failure
Hey, don't remove me from the list, I'm alive!
It seems that the DNS server could not resolve quinity.com..
And "Route message back to sender" is not activated on the server.
   

Hope,
 

it was a one-time DNS error.
Sorry for the trouble. I'm not the mail-admin though.
Good luck!
Frans Flippo wrote:
   

Hi,
Is there any way to get people like this with non-working accounts
 

off
 

the list? It's kind of annoying when posting a message to get all
 

these
 

mailer-program replies in your inbox.
Looks like this guy's address is [EMAIL PROTECTED]
I haven't been able to find anything about this sort of thing in the
mailing list guidelines. Is there a human list manager that can be
contacted?
Greetings,
Frans
[EMAIL PROTECTED] wrote:
 

The attached message had PERMANENT fatal delivery errors!
After one or more unsuccessful delivery attempts the attached
   

message
 

has
   

been removed from the mail queue on this server.  The number and
frequency
of delivery attempts are determined by local configuration
   

parameters.
 

YOUR MESSAGE WAS NOT DELIVERED TO ANY OF IT'S RECIPIENTS!
--- Session Transcript ---
Parsing Message 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Mysterious null pointer exception
Message-ID: <[EMAIL PROTECTED]>
Route slip host: 194.85.58.3
Route slip port: 25
Attempting SMTP connection to [194.85.58.3 : 25]
Waiting for socket connection...
Socket connection established (10.1.1.20 : 3416 -> 194.85.58.3 : 25)
Waiting for protocol initiation...
<-- 220 tlscom.tlsoft.ru ESMTP Sendmail 8.9.2/8.9.2; Thu, 29 Jul
   

2004
 

11:41:01 +0400 (MSK)
--> EHLO tlsoft.ru
<-- 250-tlscom.tlsoft.ru Hello mod1.tlsoft.ru [10.1.1.20], pleased
   

to
 

meet you
<-- 250-EXPN
<-- 250-VERB
<-- 250-8BITMIME
<-- 250-SIZE
<-- 250-DSN
<-- 250-ONEX
<-- 250-ETRN
<-- 250-XUSR
<-- 250 HELP
--> MAIL From:<[EMAIL PROTECTED]> SIZE=8515
<-- 451 <[EMAIL PROTECTED]>... Sender domain must resolve
--> QUIT
Attempting to send message to gateway.
Attempting SMTP connection to [213.247.208.6 : 25]
Waiting for socket connection...
Socket connection established (213.247.208.17 : 3420 ->
   

213.247.208.6
 

: 25)
Waiting for protocol initiation...
<-- 220 mx10.1baza.ru ESMTP CommuniGate Pro 4.0.2 is glad to see
   

you!
 

--> EHLO tlsoft.ru
<-- 250-mx10.1baza.ru no DNS A-data returned tlsoft.ru
<-- 250-HELP
<-- 250-PIPELINING
<-- 250-ETRN
<-- 250-DSN
<-- 250-TURN
<-- 250-ATRN
<-- 250-SIZE 31457280
<-- 250-STARTTLS
<-- 250-AUTH=LOGIN
<-- 250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5 MSN
<-- 250 EHLO
--> MAIL From:<[EMAIL PROTECTED]> SIZE=8515
<-- 250 [EMAIL PROTECTED] sender accepted
--> RCPT To:<[EMAIL PROTECTED]>
<-- 551 [EMAIL PROTECTED] failed to route the address
--- End Transcript ---
: Message contains [1] file attachments

   


 

Subject:
Re: Mysterious null pointer exception
From:
Frans Flippo <[EMAIL PROTECTED]>
Date:
Thu, 29 Jul 2004 09:42:09 +0200
To:
Tomcat Users List <[EMAIL PROTECTED]>
Try debugging.
You have two options.
1) Insert System.out.println() statements in your code printing out
references that might be null. This should point you in the right
direction.
2) Use the Java Debugger (jdb) to debug your servlet. Start as jdb
-connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000
Make sure you've started Tomcat as ./catalina.sh jpda run
(JPDA means debugging is turned on).
Then place a breakpoint in your code in a place you know is still
working. Then step through your code from there. (Use 'next' to go
   

to
 

the next line of code on the same level, 'step' to step into a
   

method).
 

Of course, you could also use a combination of 1) and 2).
Good luck,
Frans
Vamsee Kanakala wrote:
   

Hello list users,
  Maybe this is not the best place to ask a general servlet doubt,
but I'm hoping someone can point out the mistake I'm making. I'm
attaching a servlet file (FetchEmployeeServlet.java), which for
 

some
 

strange r

RE: Understanding tomcat web administration tool.

2004-07-29 Thread Shapira, Yoav

Hi,
Out of the box, you don't need to edit admin.xml or manager.xml.  You
just need to add a user with roles of admin and manager to the
tomcat-users.xml file and restart the server.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 8:22 AM
>To: Tomcat Users List
>Subject: Understanding tomcat web administration tool.
>
>I'm trying to understand how to configure admin.xml correctly so I can
>access the web and manager administration tool.
>
>I'm trying to understand how the following doc applies to the admin.xml
>:
>
>   The administration and manager web applications, which are
defined in
>the
>$CATALINA_BASE/webapps/admin.xml and $CATALINA_BASE/webapps/manager.xml
>will
>not run in that configuration, unless either:
>- The path specified in the docBase attribute of the Context element is
>made
>  absolute, and replaced respectively by
>$CATALINA_HOME/server/webapps/admin
>  and $CATALINA_HOME/server/webapps/manager
>- Copying and linking both web applications in $CATALINA_BASE, and
>modify
>  accordingly the path specified in the docBase attribute of the
Context
>  element
>- Disabling both web applications by removing
>$CATALINA_BASE/webapps/admin.xml
>  and $CATALINA_BASE/webapps/manager.xml
>
>How do I correctly edit the admin.xml with regards to the "context
>element"?
>
>What should this read:  docBase="../server/webapps/admin"
> debug="0" privileged="true">  My tomcat installation is
>/usr/local/tomcat4
>
>Mac OS 10.3
>
>Thanks,
>
>Samuel.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Stopping takes ages

2004-07-29 Thread Shapira, Yoav
Hola,
Stopping is bound by your shutdown activities, such as servlet destroy()
and ServletContextListener contextDestroyed, as well as any JVM daemon
and shutdownHook threads.  With the default installation on both my
Win2k and my Solaris boxes, Tomcat shutdown takes less than 10 seconds
to complete (i.e. the JVM process is gone).  Of course, some would argue
10 seconds is "ages" but I'd disagree under most circumstances (embedded
systems being an  exception) ;)

As for pages never being returned to the client: sounds like a network
issue on your end.  Enable the AccessLogValve to see how the server
responded to requests.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Christina Androne [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 28, 2004 5:31 PM
>To: [EMAIL PROTECTED]
>Subject: Stopping takes ages
>
>Hello everybody
>
>Does anybody has a clue on why stopping the Tomcat takes ages? And why
>some pages are never returned to the client although the servlets send
>the output in less then a second?
>
>Thank you,
>Christina
>
>-
>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: Rewriting URLs in Tomcat

2004-07-29 Thread Shapira, Yoav

Hi,
I wrote Tomcat's Balancer webapp partially to address this need.  Check
it out.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Jon Wingfield [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 6:26 AM
>To: Tomcat Users List
>Subject: Re: Rewriting URLs in Tomcat
>
>sendRedirect(...) tells the browser to use a resource in a different
>location. That location can be same webapp, different webapp, different
>server.
>
>forward(...) is for the same server only.
>In context:
>servletContext.getRequestDispatcher(path).forward(...);
>Out of context:
>servletContext.getContext(foreignContextName).getRequestDispatcher(path
).fo
>rward(...);
>
>For forwarding to a different context you have to have the relevant
>permissions or the servletContext.getContext(foreignContextName) call
>will return null. In tomcat the context doing the forwarding has to be
>marked as crossContext:
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
>
>
>Jon
>
>PS the chained invocations above are illustrative only, not as I would
>normally code it ;)
>
>Jacob Weber wrote:
>
>> Tim Funk <[EMAIL PROTECTED]> wrote:
>>
>>>At http://funkman.home.comcast.net/ I have a project called
ServletUtils.
>>>You can use either RedirectFilter or ForwardFilter. They both can use
>regex's.
>>
>>
>> "Robert Harper" <[EMAIL PROTECTED]> wrote:
>>
>>>Have you tried the HttpServletResponse .sendRedirect( String url )
>method?
>>
>>
>>
>> Correct me if I'm wrong, but I think both of these approaches would
>> require the URL I'm requesting to be part of the same application as
the
>> one I'm redirecting to. So, for example, I couldn't redirect from:
>>
>> http://www.myserver.com/first_app/path
>>
>> to
>>
>> http://www.myserver.com/second_app/path
>>
>> Or am I missing something? This is what I'm trying to do.
>> Thanks,
>> Jacob
>>
>>
>> -
>> 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Permanent Delivery Failure

2004-07-29 Thread Shapira, Yoav

Hi,
We monitor the list and unsubscribe autoresponders and things like that.
But given the constant influx of worms, viruses, people changing jobs
and not unsubscribing, companies dying and people from them not
unsubscribing, etc, it's nearly impossible to keep up with the flow,
especially given the banality of the task and the plethora of more fun
activities to be done.  I think the above is a fantastic example of a
run-on sentence that should be avoided by anyone who knows basic English
grammar...

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Vladislav Y. Ryabyshkin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 5:26 AM
>To: Tomcat Users List
>Subject: Re: Permanent Delivery Failure
>
>Hey, don't remove me from the list, I'm alive!
>It seems that the DNS server could not resolve quinity.com..
>
>And "Route message back to sender" is not activated on the server.
Hope,
>it was a one-time DNS error.
>Sorry for the trouble. I'm not the mail-admin though.
>
>Good luck!
>
>Frans Flippo wrote:
>> Hi,
>>
>> Is there any way to get people like this with non-working accounts
off
>> the list? It's kind of annoying when posting a message to get all
these
>> mailer-program replies in your inbox.
>>
>> Looks like this guy's address is [EMAIL PROTECTED]
>>
>> I haven't been able to find anything about this sort of thing in the
>> mailing list guidelines. Is there a human list manager that can be
>> contacted?
>>
>> Greetings,
>> Frans
>>
>> [EMAIL PROTECTED] wrote:
>>
>>> The attached message had PERMANENT fatal delivery errors!
>>>
>>> After one or more unsuccessful delivery attempts the attached
message
>has
>>> been removed from the mail queue on this server.  The number and
>>> frequency
>>> of delivery attempts are determined by local configuration
parameters.
>>>
>>> YOUR MESSAGE WAS NOT DELIVERED TO ANY OF IT'S RECIPIENTS!
>>>
>>> --- Session Transcript ---
>>> Parsing Message 
>>> From: [EMAIL PROTECTED]
>>> To: [EMAIL PROTECTED]
>>> Subject: Re: Mysterious null pointer exception
>>> Message-ID: <[EMAIL PROTECTED]>
>>> Route slip host: 194.85.58.3
>>> Route slip port: 25
>>> Attempting SMTP connection to [194.85.58.3 : 25]
>>> Waiting for socket connection...
>>> Socket connection established (10.1.1.20 : 3416 -> 194.85.58.3 : 25)
>>> Waiting for protocol initiation...
>>> <-- 220 tlscom.tlsoft.ru ESMTP Sendmail 8.9.2/8.9.2; Thu, 29 Jul
2004
>>> 11:41:01 +0400 (MSK)
>>> --> EHLO tlsoft.ru
>>> <-- 250-tlscom.tlsoft.ru Hello mod1.tlsoft.ru [10.1.1.20], pleased
to
>>> meet you
>>> <-- 250-EXPN
>>> <-- 250-VERB
>>> <-- 250-8BITMIME
>>> <-- 250-SIZE
>>> <-- 250-DSN
>>> <-- 250-ONEX
>>> <-- 250-ETRN
>>> <-- 250-XUSR
>>> <-- 250 HELP
>>> --> MAIL From:<[EMAIL PROTECTED]> SIZE=8515
>>> <-- 451 <[EMAIL PROTECTED]>... Sender domain must resolve
>>> --> QUIT
>>> Attempting to send message to gateway.
>>> Attempting SMTP connection to [213.247.208.6 : 25]
>>> Waiting for socket connection...
>>> Socket connection established (213.247.208.17 : 3420 ->
213.247.208.6
>>> : 25)
>>> Waiting for protocol initiation...
>>> <-- 220 mx10.1baza.ru ESMTP CommuniGate Pro 4.0.2 is glad to see
you!
>>> --> EHLO tlsoft.ru
>>> <-- 250-mx10.1baza.ru no DNS A-data returned tlsoft.ru
>>> <-- 250-HELP
>>> <-- 250-PIPELINING
>>> <-- 250-ETRN
>>> <-- 250-DSN
>>> <-- 250-TURN
>>> <-- 250-ATRN
>>> <-- 250-SIZE 31457280
>>> <-- 250-STARTTLS
>>> <-- 250-AUTH=LOGIN
>>> <-- 250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5 MSN
>>> <-- 250 EHLO
>>> --> MAIL From:<[EMAIL PROTECTED]> SIZE=8515
>>> <-- 250 [EMAIL PROTECTED] sender accepted
>>> --> RCPT To:<[EMAIL PROTECTED]>
>>> <-- 551 [EMAIL PROTECTED] failed to route the address
>>> --- End Transcript ---
>>> : Message contains [1] file attachments
>>>
>>>
>>>
>>>

>>>
>>> Subject:
>>> Re: Mysterious null pointer exception
>>> From:
>>> Frans Flippo <[EMAIL PROTECTED]>
>>> Date:
>>> Thu, 29 Jul 2004 09:42:09 +0200
>>> To:
>>> Tomcat Users List <[EMAIL PROTECTED]>
>>>
>>>
>>> Try debugging.
>>>
>>> You have two options.
>>>
>>> 1) Insert System.out.println() statements in your code printing out
>>> references that might be null. This should point you in the right
>>> direction.
>>>
>>> 2) Use the Java Debugger (jdb) to debug your servlet. Start as jdb
>>> -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000
>>> Make sure you've started Tomcat as ./catalina.sh jpda run
>>> (JPDA means debugging is turned on).
>>> Then place a breakpoint in your code in a place you know is still
>>> working. Then step through your code from there. (Use 'next' to go
to
>>> the next line of code on the same level, 'step' to step into a
method).
>>>
>>> Of course, you could also use a combination of 1) and 2).
>>>
>>> Good luck,
>>> Frans
>>>
>>> Vamsee Kanakala wrote:
>>>
 Hello list users,

Maybe this is not the best place to ask a general servlet doubt,
 but I'm hoping someone can p

RE: Logging, Analysis and Forwarding

2004-07-29 Thread Shapira, Yoav
Hi,
There are many free log analysis tools.  Tomcat's AccessLogValve writes
the standard formats (CLF and ELF, Common Logfile Format and Extended
Logfile Format).  So you can use something like WebAlizer or
http-analyze.

Monthly collection of your logs is something you'd have to script
yourself: there's no such facility built into Tomcat.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: SH Solutions [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 28, 2004 3:47 PM
>To: [EMAIL PROTECTED]
>Subject: Logging, Analysis and Forwarding
>
>Hi
>
>I have 3 questions:
>
>1. How can I enable redirection of errorLogs, accessLogs AND
stdout/stderr
>into MONTHLY files with tomcat 5.0.27+?
>2. Is there any freeware tool to analyse tomcats accessLogs?
>3. Is there an easy way to forward host/test/... to
>http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on
80). I
>read that filters could do so, but found no example...
>
>Maybe someone can help me. Thanks.
>
>Regards,
>  Steffen
>
>
>-
>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: JVM memory size changing dramatically

2004-07-29 Thread Shapira, Yoav
Hi,
Good post ;)

>One question from me: where do you get all those other options from?
Where
>do I get a listing of those extra-options, documentation?

The options for what?

Yoav

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



RE: Error with Tomcat 5.0.19 server

2004-07-29 Thread Shapira, Yoav

Hola,
A better solution?  Dump Access in favor of pretty much any other
database out there.  Then use a normal pure JDBC driver, not ODBC or
JDBC-ODBC bridge.

This is not a tomcat problem: your DB is rejecting connections or
operations because too many are connected to it.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 2:10 AM
>To: [EMAIL PROTECTED]
>Subject: Error with Tomcat 5.0.19 server
>
>Hi tomcat users,
>
>   I am using tomcat 5.0.19. In this webserver i deployed 3 same
>application with different version. when i call the different versions,
>the webserver throws the following error.
>
>   BConnectionClass : connVector() ezm-rep : java.sql.SQLException:
>[Microsoft][ODBC Microsoft Access Driver] Too many client tasks.
>
>i dont have any spefic setting in my webserver for different version of
>applicaion. should i do it? please suggest me the better soultion.
>
>Thanks in advance for your early suggestion.
>
>Kind Regards,
>Balachander S
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Just cannot deploy a servlet! :( Although it can be invoked from .jsp!

2004-07-29 Thread Shapira, Yoav

Hi,
The packaging tip applies more for JSPs, but it's a good idea
nonetheless.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Vladislav Y. Ryabyshkin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 8:42 AM
>To: Tomcat Users List
>Subject: Re: Just cannot deploy a servlet! :( Although it can be
invoked
>from .jsp!
>
>THANK YOU VERY MUCH!
>Yes, the problem had been the wrong URL, misconfigured web.xml!
>I should have written "/MyTestServlet2", sorry for having taken your
>time with a dumb question. ;-)
>
>However, the class is available without being packaged.
>
>Cheers,
>--
>Vlad.
>
>
>David Smith wrote:
>> That's most likely a problem.  You need to package your classes which
>> has been a requirement since at least Tomcat 4 and I believe even
back
>> into the later Tomcat 3 versions.
>>
>> Also, the url pattern is relative to the webapp, not tomcat.  As
>> written, you'd have to use this URL to get the page:
>>
>> http://outpost:8080/mytest2/mytest2/MyTestServlet2
>>
>> --David
>>
>> Vladislav Y. Ryabyshkin wrote:
>>
>>> Thank you for reply!
>>>
>>> I want to have access to the servlet via
>>> "http://outpost:8080/mytest2/MyTestServlet2";.
>>>
>>> The servlet is compiled on the local machine, in that very directory
>>> where it is stored and it is not part of any package.
>>>
>>> Below are the contents of webapps/mytest2/WEB-INF/web.xml:
>>> 
>>>
>>> >> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>>>
>>> 
>>>
>>> My Test Servlet2
>>> 
>>>   My Test Servlet2
>>> 
>>>
>>> 
>>> MyTestServlet2
>>> MyTestServlet2
>>> 
>>>
>>> 
>>> MyTestServlet2
>>> /mytest2/MyTestServlet2
>>> 
>>>
>>> 
>>> .
>>>
>>> Best regards,
>>> Vlad.
>>>
>>>
>>> Schalk Neethling wrote:
>>>
 What is the URL by which you are trying to call up the servlet?

 Vladislav Y. Ryabyshkin wrote:

> Hello!
>
> Hope I am not sending a faq.
>
> I run Tomcat 4.1.18, JVM 1.4.1_02-b06. It works, I can view
examples
> servlets.
>
> But I cannot make a hand-made Hello World servlet available via
URL!
>
> I created a directory webapps/mytest2/WEB-INF/classes, containing
> the MyTestServlet2.class (it is this Hello World class) and I have
> the webapps/mytest2/WEB-INF/web.xml file and an entry in
> conf/server.xml.
>
> Still this is what I get from the logs:
> ...
> 2004-07-29 12:52:54 StandardContext[/mytest2]: Mapping
> contextPath='/mytest2' with requestURI='/mytest2/MyTestServlet2'
and
> relativeURI='/MyTestServlet2'
> 2004-07-29 12:52:54 StandardContext[/mytest2]:   Trying exact
match
> 2004-07-29 12:52:54 StandardContext[/mytest2]:   Trying prefix
match
> 2004-07-29 12:52:54 StandardContext[/mytest2]:   Trying extension
>match
> 2004-07-29 12:52:54 StandardContext[/mytest2]:   Trying default
match
> 2004-07-29 12:52:54 StandardContext[/mytest2]:  Mapped to servlet
> 'default' with servlet path '/MyTestServlet2' and path info 'null'
> and update=true
> ...
> And a 404-Error.
>
> There is a mystery though.
> If I construct an index.jsp with a
> , I get it working
> ('extension match' in the log succeeds). But I don't want a JSP, I
> need a servlet directly-mapped!
>
>
> Can anyone please suggest what do I do wrong? Something silly
> perhaps, but it took plenty of time, and I am at a loss.
>
> I'd appreciate any help, good luck,
> Vlad.
>
>
>
-
> 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: How to disable CGI's 404 error

2004-07-29 Thread Shapira, Yoav

Hola,
The normal 404 error page doesn't have that information, so I'm guessing
you're seeing the CGI servlet's more detailed error page.  That page was
created to assist developers in debugging CGI problems, and you're right
to not want to show it to the world.  Check to see what the HTTP
response code is for a non-existing URL (you'd think 404), and create a
simple custom error page for that code (just a static HTML page with a
"not found" message).  Then map the custom error page in your web.xml.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 7:40 AM
>To: [EMAIL PROTECTED]
>Subject: How to disable CGI's 404 error
>
>Hello,
>
>We have a per user tomcat4 installation with Proxy enabled. I've
configured
>tomcat4 to serve CGI files and it works fine for that user. However
>there's one problem. When I enter an non-existing URL under the
cgi-bin/
>path, I get a html source of a "CGI script not found or not specified"
>error, along with all sorts of info about my server like
>ServletRequest Properties, HttpServletRequest Properties and
>ServletRequest Attributes.
>
>Of course I don't want this info to be available to anyone and want
>to disable it. I search google, this group archive and
jakarta.apache.org
>with no luck (the only thing I came close to was the change of listings
>from true to false under the default servlet, but that didn't assist)
so
>here I am, asking you guys.
>
>Thanks in advance.
>
>-G
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



  1   2   >