Re: Network error with -SSL-

2001-12-13 Thread Sunhild Copony

Hi,

I called keystore with the same command as I used on Solaris:

keytool -genkey -alias tomcat -keyalg RSA

and didn't change the password.

On Suse there is installed openssl. I added sslwrap, but there is no
change...

Thx for any hint!
Sunny

---BeginMessage---

Hi,

my app is running fine on Solaris.
Now I have  a first try on SuSE 7.2.
Everything is fine when I'm using non-ssl connection. With ssl I get the
following:

Netscape:Error
A network error occured while Netscape was receiving data. (Connection
reset by peer)
Try connecting again.

I'm using Tomcat 4.01 stand allone.
I cann't see anything in Tomcat-logs...

Maybe anyone has an idea where to look, I'm completely stuck!

Thx a lot,
Sunny




---End Message---

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Servlet-Mapping/Url-Pattern not recognized - Please - help ....

2001-12-13 Thread Franciszek Michal Misa

Hi All,

I'm trying to:
   - configure the older Tomcat3.3Final   (installed from Binary
RPM)
   - on a linux (RedHatv7.1) system
   - running apache-1.3.22-1.7.1

Both Tomcat and apache are up and running - seem to be working - at
least I can execute all the sample JSP pages and Servlets .
However, my attempts at configuring my own web application are not
completely successful ??
I've poured over all the documentation  the key pieces of
information seem to be spread out !!

I've installed my application into: (All permissions are open - world
execute)
/var/tomcat/webapps/myApp/ index.html
 WEB-INF/web.xml

classes/MyHelloWorld.class

I've configured all environment variables, and agent (mod_jk) property
files etc.

BUT I can only execute my servlet using the following URLs:
http://myhost:8080/myApp/servlet/MyHelloWorld
OK
http://www.myhost.com/myApp/servlet/MyHelloWorld   OK

The following URLs do not work ???
http://myhost:8080/myApp/doHello
FAIL:Not Found (404)
http://www.myhost.com/myApp/doHello
FAIL:Not Found (404)

I think I'm a little confused with what can be configured in httpd.conf
vs. web.xml and uriworkermap.properties  vs. what's picked-up by
DEFAULT
?

Some configuration recipes would be GREATLY appreciated .

Please help

Thanks

I've configured my web server and tomcat in the following way ...





 APACHE

 httpd.conf:

 LoadModule jk_module modules/mod_jk.so
 AddModule mod_jk.c
 
 
 IfModule mod_jk.c
  JkWorkersFile
 /etc/tomcat/conf/jk/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel info
 /IfModule

 NameVirtualHost www.host.com

 # VirtualHost example:
 # Almost any Apache directive may go into a
 VirtualHost container.
 #
 VirtualHost  www.host.com
 ServerAdmin xxx@xxx
 DocumentRoot
 /var/www/html/virtual/www.host.com
 ServerName  www.host.com
 ErrorLog logs/www.host.com-error_log
 CustomLog logs/www.host.com-access_log
 common

IfModule mod_jk.c
 Alias /myApp
 /var/tomcat/webapps/myApp
 Directory /var/tomcat/webapps/myApp

Options Indexes FollowSymLinks
 /Directory
 JkMount /myApp/* ajp12
 JkMount /myApp/*.jsp ajp12
 # Location /myApp/WEB-INF/
 #   AllowOverride None
 #   deny from all
 #/Location
   /IfModule

 /VirtualHost


AGENT mod_jk.so

* I don't see WHY this should be required - but out of desperation -
I've also added the following line to the mod_jk:
 uriworkermap.properties

# Mount the examples context to the ajp12 worker
 /myApp/*=ajp12



TOMCAT

* Configured tomcat.conf java home classpath etc.
etc. etc.

* I figure I don't need an  apps-myApp.xml  under
my tomcat/conf directory  - should be picked up by
DEFAULT context path ?

web.xml  - Application deployment descriptor 
?xml version=1.0 encoding=ISO-8859-1?
DOCTYPE web-app  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
display-name
My display name
/display-name
description
Some description here
/description

servlet
servlet-namemyHelloWorld/servlet-name
servlet-classMyHelloWorld/servlet-class
/servlet

servlet-mapping
servlet-namemyHelloWorld/servlet-name
 url-pattern/doHello/url-pattern
 /servlet-mapping
/web-app



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Error while executing jsp page (Urgent)

2001-12-13 Thread pandrajula seshu srinivas


Hi,

While i am executing .JSP file in jakarta-tomcat4.0.1
it is giving the problem as follows. Please let me know the problem quickly.

JSP File

%@ page language=java import=java.sql.* %
html
headtitleNumber Guess/title/head
body

%
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
Connection con=DriverManager.getConnection(Jdbc:Odbc:IMP);
if(con.isReadOnly()) con.setReadOnly(false);
Statement st=con.createStatement();
ResultSet rs = st.executeQuery(select * from [Sheet1$]);
//int rows = st.executeUpdate(INSERT INTO [Sheet1$](PART,Item) 
VALUES('-77','N-77'));
//int rows = st.executeUpdate(UPDATE [Sheet1$] SET PART = '-88' WHERE  
PART = '-77');
//int rows = st.executeUpdate(DELETE FROM [Sheet1$]);
while(rs.next())
{
System.out.println(First value+rs.getString(1));
}
//System.out.println(Rows inserted:+rows);
con.commit();
con.close();

%
/body
/html

ERROR While Executing the JSP file
---



A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSPif 
(pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown Source)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

Thanks,

   Bye
Seshu Srinivas
---
IMKT Software Pvt. Ltd.,
Hyderabad.
INDIA.
Tel : 091-040-3379031/33 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: How to setup the Virtual Directory in Tomcat

2001-12-13 Thread Kukkapalli PraveenKumar


Go to $TOMCATHOME/conf/server.conf and give like this.

Context path=/examples
 docBase=webapps/examples
 crossContext=false
 debug=0
 reloadable=true 
/Context

On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote :
 Hi,
 
 I'm new to the TOMCAT, can somebody tell me how/where 
 to setup the virtual directory and the port conf in 
 TOMCAT server ?
 thanks
 
 Regards
 SK LAU
 
 
 --
 To unsubscribe:   mailto:tomcat-user-unsubscribe@jakart-
 a.apache.org
 For additional commands: mailto:tomcat-user-help@jakart-
 a.apache.org
 Troubles with the list: mailto:tomcat-user-owner@jakart-
 a.apache.org
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Servlet-Mapping/Url-Pattern not recognized - Please - help ....

2001-12-13 Thread Andy Soedibjo

Have you put the MyHelloWorld.class in the myapp\WEB-INF\classes\ directory?

Rgds,
Andy.

At 05:22 13/12/2001 -0500, you wrote:
Hi All,

I'm trying to:
- configure the older Tomcat3.3Final   (installed from Binary
RPM)
- on a linux (RedHatv7.1) system
- running apache-1.3.22-1.7.1

Both Tomcat and apache are up and running - seem to be working - at
least I can execute all the sample JSP pages and Servlets .
However, my attempts at configuring my own web application are not
completely successful ??
I've poured over all the documentation  the key pieces of
information seem to be spread out !!

I've installed my application into: (All permissions are open - world
execute)
/var/tomcat/webapps/myApp/ index.html
  WEB-INF/web.xml

classes/MyHelloWorld.class

I've configured all environment variables, and agent (mod_jk) property
files etc.

BUT I can only execute my servlet using the following URLs:
http://myhost:8080/myApp/servlet/MyHelloWorld
OK
http://www.myhost.com/myApp/servlet/MyHelloWorld   OK

The following URLs do not work ???
http://myhost:8080/myApp/doHello
FAIL:Not Found (404)
http://www.myhost.com/myApp/doHello
FAIL:Not Found (404)

I think I'm a little confused with what can be configured in httpd.conf
vs. web.xml and uriworkermap.properties  vs. what's picked-up by
DEFAULT
?

Some configuration recipes would be GREATLY appreciated .

Please help

Thanks

I've configured my web server and tomcat in the following way ...





  APACHE

  httpd.conf:

  LoadModule jk_module modules/mod_jk.so
  AddModule mod_jk.c
  
  
  IfModule mod_jk.c
   JkWorkersFile
  /etc/tomcat/conf/jk/workers.properties
   JkLogFile /var/log/httpd/mod_jk.log
   JkLogLevel info
  /IfModule

  NameVirtualHost www.host.com

  # VirtualHost example:
  # Almost any Apache directive may go into a
  VirtualHost container.
  #
  VirtualHost  www.host.com
  ServerAdmin xxx@xxx
  DocumentRoot
  /var/www/html/virtual/www.host.com
  ServerName  www.host.com
  ErrorLog logs/www.host.com-error_log
  CustomLog logs/www.host.com-access_log
  common

 IfModule mod_jk.c
  Alias /myApp
  /var/tomcat/webapps/myApp
  Directory /var/tomcat/webapps/myApp

 Options Indexes FollowSymLinks
  /Directory
  JkMount /myApp/* ajp12
  JkMount /myApp/*.jsp ajp12
  # Location /myApp/WEB-INF/
  #   AllowOverride None
  #   deny from all
  #/Location
/IfModule

  /VirtualHost


AGENT mod_jk.so

* I don't see WHY this should be required - but out of desperation -
I've also added the following line to the mod_jk:
  uriworkermap.properties

# Mount the examples context to the ajp12 worker
  /myApp/*=ajp12



TOMCAT

* Configured tomcat.conf java home classpath etc.
etc. etc.

* I figure I don't need an  apps-myApp.xml  under
my tomcat/conf directory  - should be picked up by
DEFAULT context path ?

web.xml  - Application deployment descriptor 
?xml version=1.0 encoding=ISO-8859-1?
DOCTYPE web-app  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
 display-name
 My display name
 /display-name
 description
 Some description here
 /description

 servlet
 servlet-namemyHelloWorld/servlet-name
 servlet-classMyHelloWorld/servlet-class
 /servlet

 servlet-mapping
 servlet-namemyHelloWorld/servlet-name
  url-pattern/doHello/url-pattern
  /servlet-mapping
/web-app



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Error while executing jsp page (Urgent)

2001-12-13 Thread Wouter Boers

Try copying the code in a servlet and compile it, perhaps you get a better
idea of why it can't compile the code.

Wouter

-Original Message-
From: pandrajula seshu srinivas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 December, 2001 11:17
To: [EMAIL PROTECTED]
Subject: Error while executing jsp page (Urgent)



Hi,

While i am executing .JSP file in jakarta-tomcat4.0.1
it is giving the problem as follows. Please let me know the problem quickly.

JSP File

%@ page language=java import=java.sql.* %
html
headtitleNumber Guess/title/head
body

%
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
Connection con=DriverManager.getConnection(Jdbc:Odbc:IMP);
if(con.isReadOnly()) con.setReadOnly(false);
Statement st=con.createStatement();
ResultSet rs = st.executeQuery(select * from [Sheet1$]);
//int rows = st.executeUpdate(INSERT INTO [Sheet1$](PART,Item)
VALUES('-77','N-77'));
//int rows = st.executeUpdate(UPDATE [Sheet1$] SET PART = '-88' WHERE
PART = '-77');
//int rows = st.executeUpdate(DELETE FROM [Sheet1$]);
while(rs.next())
{
System.out.println(First value+rs.getString(1));
}
//System.out.println(Rows inserted:+rows);
con.commit();
con.close();

%
/body
/html

ERROR While Executing the JSP file
---



A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSP
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unkno
wn Source)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

Thanks,

   Bye
Seshu Srinivas
---
IMKT Software Pvt. Ltd.,
Hyderabad.
INDIA.
Tel : 091-040-3379031/33


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat not starting on initialization

2001-12-13 Thread Kukkapalli PraveenKumar


That means TOMCAT is starting.It might be problem with someother


On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote :
 
 Folks,
 
 I have installed Tomcat 4.0.1 on a system with Apache 
 1.3.20 on a Slackware 8.0
 distribution.  All the environment variables have also 
 been set in the .profile
 file.
 
 While starting up tomcat using the startup.sh script, I 
 get the following
 messages:
 
 Using CLASSPATH:
 /usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/jav-
 a/j2se-1.3.1/jdk1.3.1_01/lib/tools.jar
 Using CATALINA_BASE: /usr/local/tomcat-4.0.1
 Using CATALINA_HOME: /usr/local/tomcat-4.0.1
 Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1-
 _01
 
 
 Similarly while shutting down tomcat using the 
 shutdown.sh script, I get the
 following messages:
 
 Using CLASSPATH:
 /usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/jav-
 a/j2se-1.3.1/jdk1.3.1_01/lib/tools.jar
 Using CATALINA_BASE: /usr/local/tomcat-4.0.1
 Using CATALINA_HOME: /usr/local/tomcat-4.0.1
 Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1-
 _01
 
 /usr/local/tomcat-4.0.1/bin/catalina.sh: line 234: 6865 
 Segmentation fault
 $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP 
 -Dcatalina.base=$CATALINA_BASE
 -Dcatalina.home=$CATALINA_HOME 
 org.apache.catalina.startup.Bootstrap $@ stop
 
 Also, the catalina.out log file does not have any 
 entries.  I have changed the
 paths around but to no avail.  Any suggestions on where 
 I am going wrong that
 will enable me to start using tomcat will be very 
 helpful.
 
 Also, the port is .
 
 
 Thanks in advance,
 
 Samarth Kumar
 
 
 
 --
 To unsubscribe:   mailto:tomcat-user-unsubscribe@jakart-
 a.apache.org
 For additional commands: mailto:tomcat-user-help@jakart-
 a.apache.org
 Troubles with the list: mailto:tomcat-user-owner@jakart-
 a.apache.org
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Starting TC from inittab

2001-12-13 Thread Erwin Ambrosch

Hi!

The TC3.3 doc. writes about starting TC from inittab. This is OK and 
works, but now TC runs as root.
Is there a possibility to start TC from inittab under a user other than 
root.

Tanks Erwin



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.1 doesn't seem to start

2001-12-13 Thread Kukkapalli PraveenKumar



It means thats working fine

On Tue, 11 Dec 2001 Mihai Gheorghiu wrote :
 I installed 3.2.2 and 3.2.3 and they worked straight 
 out of the ... tar.gz
 JDK 1.3.1 on RH 7.0
 I untargzipped 4.0.1 in $CATALINA_HOME=/usr/local/jakart-
 a-tomcat-4.0.1
 I go to /bin and type ./startup.sh  I get:
 Using CLASSPATH:
 /usr/local/jakarta-tomcat-4.0.1/bootstrap.jar:usr/jdk1.3-
 .1/lib/tools.jar
 Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.0.1
 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0.1
 Using JAVA_HOME: /usr/jdk1.3.1
 And the prompt.
 logs/catalina.out is empty
 There seems to be no server on port 8080.
 Please help.
 Thank you all.
 
 
 --
 To unsubscribe:   mailto:tomcat-user-unsubscribe@jakart-
 a.apache.org
 For additional commands: mailto:tomcat-user-help@jakart-
 a.apache.org
 Troubles with the list: mailto:tomcat-user-owner@jakart-
 a.apache.org
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to setup the Virtual Directory in Tomcat

2001-12-13 Thread seng-keen . lau

Thanks for your info.
How about port no# ? Can we define the port no# from tomcat ?
Example: http://testing:180 or http://testing:1800
Thanks  Regards
Sk LAU

-Original Message-
From: Kukkapalli PraveenKumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 6:42 PM
To: Tomcat Users List
Subject: Re: How to setup the Virtual Directory in Tomcat



Go to $TOMCATHOME/conf/server.conf and give like this.

Context path=/examples
 docBase=webapps/examples
 crossContext=false
 debug=0
 reloadable=true 
/Context

On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote :
 Hi,
 
 I'm new to the TOMCAT, can somebody tell me how/where 
 to setup the virtual directory and the port conf in 
 TOMCAT server ?
 thanks
 
 Regards
 SK LAU
 
 
 --
 To unsubscribe:   mailto:tomcat-user-unsubscribe@jakart-
 a.apache.org
 For additional commands: mailto:tomcat-user-help@jakart-
 a.apache.org
 Troubles with the list: mailto:tomcat-user-owner@jakart-
 a.apache.org
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Starting TC from inittab

2001-12-13 Thread E B

 --- Erwin Ambrosch [EMAIL PROTECTED] wrote:  Hi!
 
 The TC3.3 doc. writes about starting TC from
 inittab. This is OK and 
 works, but now TC runs as root.
 Is there a possibility to start TC from inittab
 under a user other than 
 root.
 


su user -c tomcat_start 


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: mod_webapp file upload fix

2001-12-13 Thread Brian Adams

here are instructions:
http://jakarta.apache.org/site/cvsindex.html

here is a web view of mod_webapp:
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/webapp/

-Original Message-
From: Dom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 4:21 PM
To: Tomcat Users List
Subject: Re: mod_webapp file upload fix


where can I get mod_webapp cvs ? I  can't fint it anymore.

Dom
 
- Original Message - 
From: Brian Adams [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 9:39 PM
Subject: RE: mod_webapp file upload fix


 I think people were getting latest from cvs and compiling there own.
 you may try that.
 B
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 12, 2001 3:00 PM
 To: [EMAIL PROTECTED]
 Subject: mod_webapp file upload fix
 
 
 Is there a new binary release of mod_webapp (for Linux) that fixes the
 binary file upload problem?
 
 Later,
 -- 
 \ Craig Cowboy McDaniel
 /_\ Software Engineer
 /_/_\ n + 1, Inc.
 /_/_/_\ [EMAIL PROTECTED]
 /_/_/_/_\ (502) 479-5557
  
 MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
 Teenagers
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: RE: How to setup the Virtual Directory in Tomcat

2001-12-13 Thread Kukkapalli PraveenKumar


You can change the port Number also. change the port number in server.xml

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port
value=8000/!--8080--
/Connector
Here I'm using port 8000.Default is 8080.
On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote :
 Thanks for your info.
 How about port no# ? Can we define the port no# from 
 tomcat ?
 Example: http://testing:180 or http://testing:1800
 Thanks  Regards
 Sk LAU
 
 -Original Message-
 From: Kukkapalli PraveenKumar 
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 6:42 PM
 To: Tomcat Users List
 Subject: Re: How to setup the Virtual Directory in 
 Tomcat
 
 
 
 Go to $TOMCATHOME/conf/server.conf and give like this.
 
 Context path=/examples
  docBase=webapps/examples
  crossContext=false
  debug=0
  reloadable=true 
 /Context
 
 On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote :
  Hi,
  
  I'm new to the TOMCAT, can somebody tell me how/where 
  to setup the virtual directory and the port conf in 
  TOMCAT server ?
  thanks
  
  Regards
  SK LAU
  
  
  --
  To unsubscribe:   mailto:tomcat-user-unsubscribe@jaka-
 rt-
  a.apache.org
  For additional commands: mailto:tomcat-user-help@jaka-
 rt-
  a.apache.org
  Troubles with the list: mailto:tomcat-user-owner@jaka-
 rt-
  a.apache.org
  
  
 
 
 --
 To unsubscribe:   mailto:tomcat-user-unsubscribe@jakart-
 a.apache.org
 For additional commands: mailto:tomcat-user-help@jakart-
 a.apache.org
 Troubles with the list: mailto:tomcat-user-owner@jakart-
 a.apache.org
 
 
 
 --
 To unsubscribe:   mailto:tomcat-user-unsubscribe@jakart-
 a.apache.org
 For additional commands: mailto:tomcat-user-help@jakart-
 a.apache.org
 Troubles with the list: mailto:tomcat-user-owner@jakart-
 a.apache.org
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.1 doesn't seem to start

2001-12-13 Thread E B

 --- Kukkapalli  PraveenKumar [EMAIL PROTECTED]
wrote:  
 
 It means thats working fine
 


Have you read the mail correctly ? doesnt seem so :-)



 On Tue, 11 Dec 2001 Mihai Gheorghiu wrote :

  logs/catalina.out is empty
  There seems to be no server on port 8080.


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with Virtualhost

2001-12-13 Thread Enrique López

I have installed Tomcat 3.2.3 and I have defined many virtualhosts.

Ok, all things runs well, but on my work directory (where tomcat compile JSP's) tomcat 
creates on directory for each virtualhost that I have and compiles all my JSP's once 
for each virtualhost...

Can I say to tomcat that all virtualhost has the same work directory?

Best Regards

Enrique López [ [EMAIL PROTECTED] ]
I+D
NewMedia Publishing [ http://www.nmp.es ]
Tel. +34 915 913 948
---




RE: Tomcat 3.3 Error Code

2001-12-13 Thread Larry Isaacs

This indicates that the ErrorHandler was called recursively.
This can occur if the original page has an error and an
error page also has an error.  I believe it can also occur
if a Connection reset by Peer occurs at the right time
so the error output has has no where to go and it causes
another trip through the error handling.  It is hard to
tell if your error indicates a problem with your site.

Larry

 -Original Message-
 From: Bryan Pieper [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 12, 2001 4:43 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3 Error Code
 
 
 
 I received the following message in my jvm.stderr log file:
 
 2001-12-12 13:23:22 - ErrorHandler: Error loop for R(  + 
 /contact.jsp +
 null) error code 200
 
 Is this error visible to the user?  Did the page display 
 correctly or did
 it loop somehow?  
 
 Thanks,
 Bryan Pieper
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3, Apache 1.3.22, and Windows NT

2001-12-13 Thread Larry Isaacs

Which version of Apache?  I think there was one version
that wasn't happy with back slashes '\'.  You could try
forward slashes '/'.

Larry

 -Original Message-
 From: Adi Naren [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 12, 2001 8:01 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3, Apache 1.3.22, and Windows NT
 
 
 Hi,
 
 After configuring the necessary files in TOMCAT_HOME/conf and 
 TOMCAT_HOME/webapps, I was able to start TOMCAT. Apache also 
 runs fine when 
 working alone.  WHen I try to integrate the two on Windows 
 NT, apache does 
 not start and comes with an error,
 
 ...unable to find tomcat.conf...
 
 of course, there is an Include directive in apache's httpd.conf and 
 started Tomcat ahead of Apache.
 
 The include statement is as follows:
 
 Include D:\jakarata-tomcat-3.3\conf\jserv\tomcat.conf
 
 upon checking the folder, the file exists.
 
 Is there anything I am missing? Will appreciate your feedback.
 
 Looking forward to hearing from you,
 
 rgds,
 
 Naren
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat not starting on initialization

2001-12-13 Thread Samarth_Kumar


Following up to my last email about tomcat not starting up, when I point my
browser to http://localhost:, I don't get any response.

Another question, does the process show up when you do a ps -ef.




Folks,

I have installed Tomcat 4.0.1 on a system with Apache 1.3.20 on a Slackware 8.0
distribution.  All the environment variables have also been set in the .profile
file.

While starting up tomcat using the startup.sh script, I get the following
messages:

Using CLASSPATH:
/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.1_01/lib/tools.jar
Using CATALINA_BASE: /usr/local/tomcat-4.0.1
Using CATALINA_HOME: /usr/local/tomcat-4.0.1
Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01


Similarly while shutting down tomcat using the shutdown.sh script, I get the
following messages:

Using CLASSPATH:
/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.1_01/lib/tools.jar
Using CATALINA_BASE: /usr/local/tomcat-4.0.1
Using CATALINA_HOME: /usr/local/tomcat-4.0.1
Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01

/usr/local/tomcat-4.0.1/bin/catalina.sh: line 234: 6865 Segmentation fault
$JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP -Dcatalina.base=$CATALINA_BASE
-Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap $@ stop

Also, the catalina.out log file does not have any entries.  I have changed the
paths around but to no avail.  Any suggestions on where I am going wrong that
will enable me to start using tomcat will be very helpful.

Also, the port is .


Thanks in advance,

Samarth Kumar



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Application configuration

2001-12-13 Thread Larry Isaacs

The configuration you show only lets Tomcat execute
servlets.  All other content, Apache will try to serve
directly.  Is this your intent?   It would also help
to know which version of Tomcat 3.x you are using.
(Note that Tomcat 3.3 does the best job of automating
the connection to Apache.)

In general, I would also recommend testing your web
application first by accessing Tomcat directly.  If
everything works okay, then try accessing through
Apache.  A web.xml isn't required as long as you are
happy with what Tomcat provides by default.

Cheers,
Larry

 -Original Message-
 From: Camara, Jose [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 12, 2001 10:01 PM
 To: '[EMAIL PROTECTED]'
 Subject: Application configuration
 
 
 I think I reach that point where I need some help ... could 
 you subscribe me
 and help me with the following issue.
  
 Totally new in configuring applications to be deployed on tomcat:
 1) Apache and tomcat are running perfectly
 2) I created a directory to install my application (webapps/imr)
 3) Under that, I created META-INF, WEB-INF and servlets directories.
 4) I also modified tomcat-apache.conf as follows
  
 Alias /imr /home/jcamara/tomcat/webapps/imr
 Directory /home/jcamara/tomcat/webapps/imr
 Options Indexes FollowSymLinks
 /Directory
 ApJServMount /imr/servlet /imr
 Location /imr/WEB-INF/
 AllowOverride None
 deny from all
 /Location
 Location /imr/META-INF/
 AllowOverride None
 deny from all
 /Location  
  
 5) I'm starting to believe that I need to create a web.xml 
 file and I'm not
 sure how, probably I'll follow one of the examples.
 6) I can see the list of classes for my application under 
 that directory.
 7) Every time I'm trying to run the application it asked me 
 for download the
 application on IE and finally come with an error saying 
 Could not find the
 main class. Program will exit! on a Java Virtual Machine pop 
 up screen.
  
 I'm 100% sure that I'm missing something, so here are my questions:
 Q1: Do I need to create a web.xml file?
 Q2: Where should I put the jar files that my application need?
 Q3: How should I configure Tomcat in under to display correctly my
 application?
  
 Regards,
  
 
 Jose L. Camara
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




HELP ON CHANGING THE ROOT

2001-12-13 Thread Ravi Reddy

Hi,
I have installed tomcat on windows in
d:\tomcat
ie, my current document root will be d:\tomcat\webapps\root
but , I want to have my root as d:\user\root
How can I configure it?. thanks for the responses.

Regards ,
Ravi.
[EMAIL PROTECTED]



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Servlet-Mapping/Url-Pattern not recognized - Please - help ....

2001-12-13 Thread Larry Isaacs

I would focus first on getting http://myhost:8080/myApp/doHello
to work.  If it doesn't, http://www.myhost.com/myApp/doHello
isn't going to work either.

At this point it is usually good to check the log's to see
if there are any clues as to why the URL failed.  There is
usually more there than what you can get from the response
returned to the browser.  If necessary, add or increase the
debug=level setting on various modules in the server.xml
to get more log output.  To see if the servlet mapping is
or isn't matching the URL, add debug=1 to SimpleMapper1 /.

Cheers,
Larry

 -Original Message-
 From: Franciszek Michal Misa [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 5:22 AM
 To: [EMAIL PROTECTED]
 Subject: Servlet-Mapping/Url-Pattern not recognized - Please 
 - help 
 
 
 Hi All,
 
 I'm trying to:
- configure the older Tomcat3.3Final   (installed from Binary
 RPM)
- on a linux (RedHatv7.1) system
- running apache-1.3.22-1.7.1
 
 Both Tomcat and apache are up and running - seem to be working - at
 least I can execute all the sample JSP pages and Servlets .
 However, my attempts at configuring my own web application are not
 completely successful ??
 I've poured over all the documentation  the key pieces of
 information seem to be spread out !!
 
 I've installed my application into: (All permissions are open - world
 execute)
 /var/tomcat/webapps/myApp/ index.html
  WEB-INF/web.xml
 
 classes/MyHelloWorld.class
 
 I've configured all environment variables, and agent (mod_jk) property
 files etc.
 
 BUT I can only execute my servlet using the following URLs:
 http://myhost:8080/myApp/servlet/MyHelloWorld
 OK
 http://www.myhost.com/myApp/servlet/MyHelloWorld   OK
 
 The following URLs do not work ???
 http://myhost:8080/myApp/doHello
 FAIL:Not Found (404)
 http://www.myhost.com/myApp/doHello
 FAIL:Not Found (404)
 
 I think I'm a little confused with what can be configured in 
 httpd.conf
 vs. web.xml and uriworkermap.properties  vs. what's 
 picked-up by
 DEFAULT
 ?
 
 Some configuration recipes would be GREATLY appreciated .
 
 Please help
 
 Thanks
 
 I've configured my web server and tomcat in the following way ...
 
 
 
 
 
  APACHE
 
  httpd.conf:
 
  LoadModule jk_module modules/mod_jk.so
  AddModule mod_jk.c
  
  
  IfModule mod_jk.c
   JkWorkersFile
  /etc/tomcat/conf/jk/workers.properties
   JkLogFile /var/log/httpd/mod_jk.log
   JkLogLevel info
  /IfModule
 
  NameVirtualHost www.host.com
 
  # VirtualHost example:
  # Almost any Apache directive may go into a
  VirtualHost container.
  #
  VirtualHost  www.host.com
  ServerAdmin xxx@xxx
  DocumentRoot
  /var/www/html/virtual/www.host.com
  ServerName  www.host.com
  ErrorLog logs/www.host.com-error_log
  CustomLog logs/www.host.com-access_log
  common
 
 IfModule mod_jk.c
  Alias /myApp
  /var/tomcat/webapps/myApp
  Directory /var/tomcat/webapps/myApp
 
 Options Indexes FollowSymLinks
  /Directory
  JkMount /myApp/* ajp12
  JkMount /myApp/*.jsp ajp12
  # Location /myApp/WEB-INF/
  #   AllowOverride None
  #   deny from all
  #/Location
/IfModule
 
  /VirtualHost
 
 
 AGENT mod_jk.so
 
 * I don't see WHY this should be required - but out of desperation -
 I've also added the following line to the mod_jk:
  uriworkermap.properties
 
 # Mount the examples context to the ajp12 worker
  /myApp/*=ajp12
 
 
 
 TOMCAT
 
 * Configured tomcat.conf java home classpath etc.
 etc. etc.
 
 * I figure I don't need an  apps-myApp.xml  under
 my tomcat/conf directory  - should be picked up by
 DEFAULT context path ?
 
 web.xml  - Application deployment descriptor 
 ?xml version=1.0 encoding=ISO-8859-1?
 DOCTYPE web-app  PUBLIC -//Sun Microsystems, Inc.//DTD Web 
 Application
 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
 display-name
 My display name
 /display-name
 description
 Some description here
 /description
 
 servlet
 servlet-namemyHelloWorld/servlet-name
 servlet-classMyHelloWorld/servlet-class
 /servlet
 
 servlet-mapping
 servlet-namemyHelloWorld/servlet-name
  url-pattern/doHello/url-pattern
  /servlet-mapping
 /web-app
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Page encoding problem

2001-12-13 Thread Nikola Milutinovic

 It is impossible to say what you are doing wrong if you do not include your 
 code.  I use full internationalization on all my jsp pages with no 
 problem.  But, I don't know what your encoding code is.

I'll have to get back to you - it started working.

The only thing I did was set UNIX LOCALE to sl_SI.ISO8859-2. The funny thing is it 
is not beahving like ISO-8859-2 is the default encoding. It is still ISO-8859-1, but 
now when I set contentTpe to text/html; charset=ISO-8859-2 the page displays OK. 
Looks like DEC's JVM is nailed to ISO-8859-1 *if the LOCALE is set to C*. If it is 
set to something from the i18n menu, other encoings, localizations, etc. kick in.

Shucks! I just waisted a couple of weeks on that matter...

Nix.



RE: Error while executing jsp page (Urgent)

2001-12-13 Thread Larry Isaacs

I believe this could happen if you have an old servlet.jar
being used, possibly by having it or an old j2ee.jar in your
jre/lib/ext directory.  Prior to the Servlet 2.3,
handlePageException() only accepted an Exception as a argument
where in Servlet 2.3, Throwable is also accepted. Assuming
the t in handlePageException(t) is a Throwable, you would
get a compile error trying to compile against a old serlet.jar.

Cheers,
Larry

 -Original Message-
 From: pandrajula seshu srinivas [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 5:17 AM
 To: [EMAIL PROTECTED]
 Subject: Error while executing jsp page (Urgent)
 
 
 
 Hi,
 
 While i am executing .JSP file in jakarta-tomcat4.0.1
 it is giving the problem as follows. Please let me know the 
 problem quickly.
 
 JSP File
 
 %@ page language=java import=java.sql.* %
 html
 headtitleNumber Guess/title/head
 body
 
 %
   Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
   Connection con=DriverManager.getConnection(Jdbc:Odbc:IMP);
   if(con.isReadOnly()) con.setReadOnly(false);
   Statement st=con.createStatement();
   ResultSet rs = st.executeQuery(select * from [Sheet1$]);
   //int rows = st.executeUpdate(INSERT INTO 
 [Sheet1$](PART,Item) VALUES('-77','N-77'));
   //int rows = st.executeUpdate(UPDATE [Sheet1$] SET 
 PART = '-88' WHERE  PART = '-77');
   //int rows = st.executeUpdate(DELETE FROM [Sheet1$]);
   while(rs.next())
   {
   System.out.println(First value+rs.getString(1));
   }
   //System.out.println(Rows inserted:+rows);
   con.commit();
   con.close();
 
 %
 /body
 /html
 
 ERROR While Executing the JSP file
 ---
 
 
 
 A Servlet Exception Has Occurred
 org.apache.jasper.JasperException: Unable to compile class 
 for JSPif (pageContext != null) 
 pageContext.handlePageException(t);
  ^
 1 error
 
   at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
   at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
   at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
 ecessary(Unknown Source)
   at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (Unknown Source)
   at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Unknown Source)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Unkno
 wn Source)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at 
 org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardContext.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at 
 org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at 
 org.apache.catalina.connector.http.HttpProcessor.process(Unkno
 wn Source)
   at 
 org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:484)
 
 Thanks,
 
Bye
 Seshu Srinivas
 ---
 IMKT Software Pvt. Ltd.,
 Hyderabad.
 INDIA.
 Tel : 091-040-3379031/33 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: 

RE: How to setup the Virtual Directory in Tomcat

2001-12-13 Thread Larry Isaacs

Search for 8080 in server.xml and change it.

Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 6:48 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: How to setup the Virtual Directory in Tomcat
 
 
 Thanks for your info.
 How about port no# ? Can we define the port no# from tomcat ?
 Example: http://testing:180 or http://testing:1800
 Thanks  Regards
 Sk LAU
 
 -Original Message-
 From: Kukkapalli PraveenKumar [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 6:42 PM
 To: Tomcat Users List
 Subject: Re: How to setup the Virtual Directory in Tomcat
 
 
 
 Go to $TOMCATHOME/conf/server.conf and give like this.
 
 Context path=/examples
  docBase=webapps/examples
  crossContext=false
  debug=0
  reloadable=true 
 /Context
 
 On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote :
  Hi,
  
  I'm new to the TOMCAT, can somebody tell me how/where 
  to setup the virtual directory and the port conf in 
  TOMCAT server ?
  thanks
  
  Regards
  SK LAU
  
  
  --
  To unsubscribe:   mailto:tomcat-user-unsubscribe@jakart-
  a.apache.org
  For additional commands: mailto:tomcat-user-help@jakart-
  a.apache.org
  Troubles with the list: mailto:tomcat-user-owner@jakart-
  a.apache.org
  
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




GETTING STARTED WITH TOMCAT

2001-12-13 Thread panditji

hi 
i'm new to servlets and JSP ...well i have installed tomcat in C:\tomcat
and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1

when i try to start the tomcat from MS-DOS from bin subdirectory a new window starts 
and disappears...(I Think this is what it should behave like!!) BUT the problem is 
that when i try to test whether tomcat is working its not finding http://localhost:8080

please help me out so i can proceed further.

regards
vivek
-- 




__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: mod_webapp config

2001-12-13 Thread JStanczak


Send me the steps. I'm running a Solaris 8 7/01 Sparc station with apache
and tomcat 4.0.1. I try to use the mod_webapp.so but get errors every time.
I complains that the mod can't be loaded. I'm going to ask the question on
the list again, but I think mod_jk is the only way.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


   
   
Mike Kelley
   
[EMAIL PROTECTED]   To: 'Tomcat Users List' 
[EMAIL PROTECTED]   
OM  cc:   
   
 Subject: RE: mod_webapp config
   
12/04/2001 
   
05:00 PM   
   
Please respond 
   
to Tomcat 
   
Users List
   
   
   
   
   




I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: Endre Stølsvik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


 On Tue, 4 Dec 2001, hanzo wrote:

 |
 | - Original Message -
 | From: William Tansill [EMAIL PROTECTED]
 | To: Tomcat Users List [EMAIL PROTECTED]
 | Sent: Monday, December 03, 2001 1:15 AM
 | Subject: RE: mod_webapp config
 |
 |
 |  My guess is that if you want to create and run your own JSP's, you
will need
 |  to install them per the standard deployment mechanism, update
server.xml to
 |  reflect the new deployment context, and then restart Tomcat.  At
 |  least
those
 |  are the steps I'm planning on taking when I get an example up and
running.
 |  If you get your stuff working first, write back to the group and
 |  let
me know
 |  how you did it.  Thanks!
 |
 | I give up using mod_webapp.. mod_rewrite is -a lot easier-

 That is just such a cool idea! :) Just f*** that whole stupid

mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take

s_-
 responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
 blantantly_needed_piece_of_software.so and just go for something
 that'll rewrite the whole URL!

 Great idea! Really! ;)

 But I guess you loose a bit functionality, e.g. the
 Context|Request|Config.getSomeAttribute() returns the wrong values?


 --
 Mvh,
 Endre


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Space Problem ...

2001-12-13 Thread Andy Soedibjo

I tried to install Tomcat 4.0.1, to execute my servlet (which accessing RMI).
First, I tried to install the Tomcat in the Program Files\Tomcat 4.0.1\ 
folder. And, I tried to run Tomcat as stand-alone ... It's working fine 
with the examples/ and jsp/, but It's not working with my servlet.
After debuging and searching the problem  I can't found why it's not 
working with my servlet. Then, I tried to re-install and put Tomcat in 
c:\Tomcat4\ folder ... and try to run it again. Now my servlet can work fine.

Is anyone ever face this problem before? Is it because there is   (space) 
in my installation folder, because I've tried to install in c:\Tomcat 
4.0.1\ folder and It's not working also?

Hope anyone can give me the clue, and thanks in advance. ;-)

Rgds,
Andy.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: GETTING STARTED WITH TOMCAT

2001-12-13 Thread Tom Oinn



[EMAIL PROTECTED] wrote:
 
 hi
 i'm new to servlets and JSP ...well i have installed tomcat in C:\tomcat
 and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1
 
 when i try to start the tomcat from MS-DOS from bin subdirectory a new window starts 
and disappears...(I Think this is what it should behave like!!) BUT the problem is 
that when i try to test whether tomcat is working its not finding 
http://localhost:8080
 
 please help me out so i can proceed further.

I suggest you look in the server logs, they're in the $TOMCAT_HOME/logs
directory. I believe that if everything were working, the DOS window
would stay there, the fact that it doesn't suggests that the server
didn't start correctly, and hopefully would have told you why in the
logs. Alternatively, open a new DOS prompt and run the bat file from
there, that way you would be able to see the error messages before the
window closes.

HTH,

Tom

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: mod_webapp config

2001-12-13 Thread JStanczak


Never mind. I didn't see the directions that you sent later.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


   
   
Mike Kelley
   
[EMAIL PROTECTED]   To: 'Tomcat Users List' 
[EMAIL PROTECTED]   
OM  cc:   
   
 Subject: RE: mod_webapp config
   
12/04/2001 
   
05:00 PM   
   
Please respond 
   
to Tomcat 
   
Users List
   
   
   
   
   




I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: Endre Stølsvik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


 On Tue, 4 Dec 2001, hanzo wrote:

 |
 | - Original Message -
 | From: William Tansill [EMAIL PROTECTED]
 | To: Tomcat Users List [EMAIL PROTECTED]
 | Sent: Monday, December 03, 2001 1:15 AM
 | Subject: RE: mod_webapp config
 |
 |
 |  My guess is that if you want to create and run your own JSP's, you
will need
 |  to install them per the standard deployment mechanism, update
server.xml to
 |  reflect the new deployment context, and then restart Tomcat.  At
 |  least
those
 |  are the steps I'm planning on taking when I get an example up and
running.
 |  If you get your stuff working first, write back to the group and
 |  let
me know
 |  how you did it.  Thanks!
 |
 | I give up using mod_webapp.. mod_rewrite is -a lot easier-

 That is just such a cool idea! :) Just f*** that whole stupid

mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take

s_-
 responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
 blantantly_needed_piece_of_software.so and just go for something
 that'll rewrite the whole URL!

 Great idea! Really! ;)

 But I guess you loose a bit functionality, e.g. the
 Context|Request|Config.getSomeAttribute() returns the wrong values?


 --
 Mvh,
 Endre


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: GETTING STARTED WITH TOMCAT

2001-12-13 Thread Pablo Lillia

Better assign JAVA_HOME  TOMCAT_HOME in AUTOEXEC.BAT (Win9x), or in the 
Enviroment (NT/2K).

At 08:59 13/12/2001 -0500, you wrote:
hi
i'm new to servlets and JSP ...well i have installed tomcat in C:\tomcat
and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1

when i try to start the tomcat from MS-DOS from bin subdirectory a new 
window starts and disappears...(I Think this is what it should behave 
like!!) BUT the problem is that when i try to test whether tomcat is 
working its not finding http://localhost:8080

please help me out so i can proceed further.

regards
vivek
--




__
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: GETTING STARTED WITH TOMCAT

2001-12-13 Thread Andy Soedibjo

What version of tomcat have you installed?
For tomcat 4.x you must set also CATALINA_HOME.
If it's working fine, it should left one console(window) for you.

Rgds,
Andy.

At 08:59 13/12/2001 -0500, you wrote:
hi
i'm new to servlets and JSP ...well i have installed tomcat in C:\tomcat
and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1

when i try to start the tomcat from MS-DOS from bin subdirectory a new 
window starts and disappears...(I Think this is what it should behave 
like!!) BUT the problem is that when i try to test whether tomcat is 
working its not finding http://localhost:8080

please help me out so i can proceed further.

regards
vivek
--




__
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: GETTING STARTED WITH TOMCAT

2001-12-13 Thread Larry Isaacs

When the DOS window won't stay open, try

bin\tomcat run

This will start Tomcat in the current DOS window
instead of a new DOS window.  This should give you a
look at the error.  If on Win9x, what you need to
see scrolls off the screen, try

bin\tomcat run logs\tomcat.log

Most of the log output will go to tomcat.log, but
some will still go to the DOS window.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 9:00 AM
 To: [EMAIL PROTECTED]
 Subject: GETTING STARTED WITH TOMCAT
 
 
 hi 
 i'm new to servlets and JSP ...well i have installed tomcat 
 in C:\tomcat
 and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1
 
 when i try to start the tomcat from MS-DOS from bin 
 subdirectory a new window starts and disappears...(I Think 
 this is what it should behave like!!) BUT the problem is that 
 when i try to test whether tomcat is working its not finding 
 http://localhost:8080

 please help me out so i can proceed further.

 regards
 vivek
 -- 




__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: GETTING STARTED WITH TOMCAT

2001-12-13 Thread Jim Urban

The window that is opening and closing is the Tomcat window.  This window
should stay open, that is where you will see any messages written to
System.out or System.err.  Try starting it like this:
tomcat.bat run
This will cause Tomcat to start in the current window.  You should then be
able to see any error messages generated by Tomcat.  Let us know what these
messages say.

Jim


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 8:00 AM
To: [EMAIL PROTECTED]
Subject: GETTING STARTED WITH TOMCAT


hi
i'm new to servlets and JSP ...well i have installed tomcat in C:\tomcat
and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1

when i try to start the tomcat from MS-DOS from bin subdirectory a new
window starts and disappears...(I Think this is what it should behave
like!!) BUT the problem is that when i try to test whether tomcat is working
its not finding http://localhost:8080

please help me out so i can proceed further.

regards
vivek
--




__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Split Thread with 2 browsers

2001-12-13 Thread Alistair Hopkins

IE specific:

If you open a new window of IE from the old one (hyperlink, FILE  NEW 
WINDOW) then it shares session cookies

If you open a new IE session by command from the OS (Start menu, desktop
shortcut) it doesn't share them.

Q.: can you launch a new window by putting in a hyperling to (eg) 'IEXPLORE
http://yoursite/yourpage'? Nasty!

Alistair



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Craig R. McClanahan
Sent: Wednesday, December 12, 2001 6:03 PM
To: Tomcat Users List
Subject: Re: Split Thread with 2 browsers


On Tue, 4 Dec 2001, John  Regan wrote:

 Date: Tue, 4 Dec 2001 09:07:38 -0800
 From: John  Regan [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat User Group (E-mail) [EMAIL PROTECTED]
 Subject: Split Thread with 2 browsers


 Desired functionality:
 User opens browser, clicks through several pages as a certain user type
 then opens a second browser because they want to be a different user
type.
 The user should be able to proceed in either browser without session
 information being overwritten in the other browser's session.

 Has anyone implemented any similar functionality?

 Note: using tomcat 4.x as http server and JSP container.



The problem here is the browser -- there's nothing you can do on the
server to make this work if the browser shares cookies across windows.

Some people have had success turning cookies off and using URL rewriting
to maintain session state separately for each window.

Craig



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3, Apache 1.3.22, and Windows NT

2001-12-13 Thread Justin Rowles

 Which version of Apache?  I think there was one version
 that wasn't happy with back slashes '\'.  You could try
 forward slashes '/'.

AFAIK, all versions require use of / not \ which is treated as an escape
character (as per Unix text specs).

Oh, if only everyone would come over to the one true OS - UNIX - all this
difficulty would be gone!

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




file directory after tomcat 4 installation

2001-12-13 Thread KimikoIshi

I've just installed 4.0.1 and am confused by the file directory structure. in 
d:\tomcat, I have:
\catalina
\jasper
\lib
\resources
\service
\tester
\webapps
I don't have any \bin. Is that normal? In 3.2.3 I was used to going to 
tomcat\ and typing bin\startup. is catalina\src\bin what I'm looking for?
Thanks for the help,
Robert Douglass

From the readme.txt file - should have:
BUILDING.txtInstructions for building from sources
  LICENSE Apache Software License for this release
  README.txt  This document
  RELEASE-NOTES-*.txt Release Notes for this (and previous) releases
  of Tomcat 4.0
  RUNNING.txt Instructions for installing Tomcat, as well as
  starting and stopping the server
  bin/Binary executables and scripts
  classes/Unpacked classes global to web applications
  common/ Classes available to both Catalina internal
  classes and web applications:
classes/  Unpacked common classes
lib/  Common classes in JAR files
  conf/   Configuration files
  jasper/ JAR files visible only in the Jasper 
classloader
  lib/Classes in JAR files global to web applications
  logs/   Destination directory for log files
  server/ Internal Catalina classes and their 
dependencies
classes/  Unpacked classes (internal only)
lib/  Classes packed in JAR files (internal only)
  webapps/Base directory containing web applications
  included with Tomcat 4.0
  work/   Scratch directory used by Tomcat for holding
  temporary files and directories

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0.1 and AJP1.3 (How to make adaptions for tomcatAuthentication parameter) ?

2001-12-13 Thread Yuriy Pasichnyk

Dear Sirs,

As I found in this list, IIS + Tomcat 4.0.1 + AJP13 do not
handle authentication properly (tomcatAuthentication)). 
And it was told that fix/solution for this problem will be 
implemented in Tomcat 4.0.2 (copied from Tomcat 3.3).

I want to make this copying for 4.0.1. 
Does anybody know what exactly should be modified ??


Thanks in advance,

Yuriy

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: file directory after tomcat 4 installation

2001-12-13 Thread Tobias Brandl

Hi,

you just installed the Tomcat source. You need to download the binaries
and install them instead. That will give you the correct directory
structure.

cu Tobi

On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote:

 I've just installed 4.0.1 and am confused by the file directory structure. in 
 d:\tomcat, I have:
 \catalina
 \jasper
 \lib
 \resources
 \service
 \tester
 \webapps
 I don't have any \bin. Is that normal? In 3.2.3 I was used to going to 
 tomcat\ and typing bin\startup. is catalina\src\bin what I'm looking for?
 Thanks for the help,
 Robert Douglass
 
 From the readme.txt file - should have:
 BUILDING.txtInstructions for building from sources
   LICENSE Apache Software License for this release
   README.txt  This document
   RELEASE-NOTES-*.txt Release Notes for this (and previous) releases
   of Tomcat 4.0
   RUNNING.txt Instructions for installing Tomcat, as well as
   starting and stopping the server
   bin/Binary executables and scripts
   classes/Unpacked classes global to web applications
   common/ Classes available to both Catalina internal
   classes and web applications:
 classes/  Unpacked common classes
 lib/  Common classes in JAR files
   conf/   Configuration files
   jasper/ JAR files visible only in the Jasper 
 classloader
   lib/Classes in JAR files global to web applications
   logs/   Destination directory for log files
   server/ Internal Catalina classes and their 
 dependencies
 classes/  Unpacked classes (internal only)
 lib/  Classes packed in JAR files (internal only)
   webapps/Base directory containing web applications
   included with Tomcat 4.0
   work/   Scratch directory used by Tomcat for holding
   temporary files and directories
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

---
Tobias Brandl
Lehrstuhl fuer Dialogorientierte Systeme
Universitaet Passau
mailto:[EMAIL PROTECTED]
http://www.db.fmi.uni-passau.de/~brandlt


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Directory browsing

2001-12-13 Thread Duncan Smith

Hi all.

How does one disable directory browsing for a Context (or even a
Service)?

Many thanks
Duncan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mod_webapp error

2001-12-13 Thread JStanczak


Hi, I'm getting this same problem. I'm running Solaris 8 7/01 Sparc. I have
Tomcat 4.0.1 and the Apache 1.3.somthing that came with the install of
Solaris 8 7/01. I've tried multiple things with no luck. I even tried to
compile the webapp_mod but that failed and I never got it to compile. I'm
currently trying the AJP1.3. I have just downloaded it. I noticed you seem
to have the same setup as me. I wanted to know if you have had any luck
getting the webapp_mod to work on you machine. I'm not sure if I'm going to
use Apache with Tomcat or just us Tomcat for it all. I think I'm going to
ask this question on the list. Most of the stuff that I'm doing will be all
Servlets anyway. If you come up with any solutions please let me know, it
would be greatly appreciated.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


   
  
Preston Hogue
  
preston_hogue@ho   To: [EMAIL PROTECTED]   
  
tmail.com  cc:
  
Subject: mod_webapp error  
  
12/09/2001 10:19   
  
PM 
  
Please respond to  
  
Tomcat Users  
  
List  
  
   
  
   
  




I noticed some people had the same issue in the past, I was unable to find
the resolution.  Any help would be greatly appreciated.  I am currently
attempting to Run Apache, Tomcat, JDK 1.3.1 on a Solaris 8 (Sun Installed
Netra) and I am getting the following error:

Cannot load /usr/apache/libexec/mod_webapp.so into server: ld.so.1:
 /usr/apache/
 bin/httpd: fatal: relocation error: file
/usr/apache/libexec/mod_webapp.so:
 symbol __lshrdi3: referenced symbol not found

Thanks,
Preston






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3, Apache 1.3.22, and Windows NT

2001-12-13 Thread Larry Isaacs

I think from around Apache 1.3.12, it would tolerate
back slashes in file names on Windows systems.  I believe
it may have been Apache 1.3.14 that had a bug such that
drive letter:\rest of path wasn't recognized as being
an absolute path and try to use it as a relative path.
Still, it is better to use Apache's preference, '/'.

Larry

 -Original Message-
 From: Justin Rowles [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 9:02 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 3.3, Apache 1.3.22, and Windows NT
 
 
  Which version of Apache?  I think there was one version
  that wasn't happy with back slashes '\'.  You could try
  forward slashes '/'.
 
 AFAIK, all versions require use of / not \ which is treated 
 as an escape
 character (as per Unix text specs).
 
 Oh, if only everyone would come over to the one true OS - 
 UNIX - all this
 difficulty would be gone!
 
 J.
 -- 
 You're only jealous cos the little penguins are talking to me. 
 
 
 
 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat4 Velocity

2001-12-13 Thread Reto Badertscher

Hello,

after porting an application using Velocity from TC 3.2 to TC 4.0 the
following error occurres when accessing the application:

StandardWrapperValve[Controller]: Allocate exception for servlet Controller
javax.servlet.ServletException: Error configuring the loader:
java.lang.NullPointerException
at
org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:213)

This error happens with Velocity 1.1 and 1.2.  Could please someone give me
a hint what causes this error.

Thanks a lot for any help

Reto


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Should I use Apache + Tomcat or just Tomcat?

2001-12-13 Thread JStanczak

Hi, I have been trying to use webapp_mod to connect Apache to Tomcat 4.0.1
with no luck. I'm running Solaris 8 7/01 on a Sparc station. The Apache
install is the one that came with the Solaris 8 I installed. I plan on
using Servlets for most of my work so I was wondering which route to take.
I could use the AJP1.3 connector to use Apache with Tomcat or just remove
Apache and just use Tomcat. I wasn't sure which option would be the best.
If someone could give me some guidance it would be greatly appreciated.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3, Apache 1.3.22, and Windows NT

2001-12-13 Thread Justin Rowles

 I think from around Apache 1.3.12, it would tolerate
 back slashes in file names on Windows systems.  I believe
 it may have been Apache 1.3.14 that had a bug such that
 drive letter:\rest of path wasn't recognized as being
 an absolute path and try to use it as a relative path.
 Still, it is better to use Apache's preference, '/'.

I have been caught out on this, even on recent versions, by specifying:

d:\address\

in the file (by accident).  The last two chars - \ - are then interpreted
as an escaped double quote, leading to errors such as:

Could not locate file d:/addresstest.jsp

This took me a good while to work out!  Use /!

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Should I use Apache + Tomcat or just Tomcat?

2001-12-13 Thread JStanczak


I will be using the Tomcat to run a web content management software
Servlet. Here's the summary that I have on our activity for a week:


  
 Analysis for the Week of Dec 2nd, 2001.  
  





 
   Server
   Activity  
   Totals
   for   
   Period:   
 
  Total sessions 10532   
served : 
 
  Total hits made on    251677   
server : 
 
 Total page view     35529   
  hits : 
 
  Total non page    216148   
 view hits : 
 
    Total time spent   1784825 seconds   
   by all sessions : 
 
   Total bandwidth :   kilobytes 
 699867.09   
 
 



I imagine that this server could get more because of it's utility purpose.
Does this help?



Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


   
   
Timothy Fisher 
   
trfishermi@ya   To: Tomcat Users List 
[EMAIL PROTECTED]   
hoo.com cc:   
   
 Subject: Re: Should I use Apache + Tomcat 
or just Tomcat?
12/13/2001 
   
10:16 AM   
   
Please respond 
   
to Tomcat 
   
Users List
   
   
   
   
   




What will you be using the server for?   Like, what
type of applications will you be running?   How many
people do you anticipate using them?

Tim

--- [EMAIL PROTECTED] wrote:
 Hi, I have been trying to use webapp_mod to connect
 Apache to Tomcat 4.0.1
 with no luck. I'm running Solaris 8 7/01 on a Sparc
 station. The Apache
 install is the one that came with the Solaris 8 I
 installed. I plan on
 using Servlets for most of my work so I was
 wondering which route to take.
 I could use the AJP1.3 connector to use Apache with
 Tomcat or just remove
 Apache and just use Tomcat. I wasn't sure which
 option would be the best.
 If someone could give me some guidance it would be
 greatly appreciated.


 Thank You,

 Justin A. Stanczak
 Web Manager
 Shake Learning Resource Center
 Vincennes University
 (812)888-5813


 --
 To unsubscribe:
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]



__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: charset problem in java beans

2001-12-13 Thread yilmaz

wow! that is great,
i should have known that long before spending a lot of time by trial and
error methods. :)
Anyway, it is not too late.
thanks a lot Craig
Best wishes

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 10:51 AM
Subject: Re: charset problem in java beans

 In Tomcat4, you can use the new Servlet 2.3 call
 request.setCharacterEncoding().  If you do this before calling any of the
 request.getParameter() type calls, Tomcat will do the translation for you.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat not starting on initialization

2001-12-13 Thread Mika Goeckel

Hi Samarth,

yes, tomcat shows up as java process(es).
Do you get the SegFault as well when you start?
Could be a problem with your jdk. What jdk are you using?
Do you have other java applications running without problems?

Mika
^X^S
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 1:53 PM
Subject: Tomcat not starting on initialization



 Following up to my last email about tomcat not starting up, when I point
my
 browser to http://localhost:, I don't get any response.

 Another question, does the process show up when you do a ps -ef.




 Folks,

 I have installed Tomcat 4.0.1 on a system with Apache 1.3.20 on a
Slackware 8.0
 distribution.  All the environment variables have also been set in the
.profile
 file.

 While starting up tomcat using the startup.sh script, I get the following
 messages:

 Using CLASSPATH:

/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.
1_01/lib/tools.jar
 Using CATALINA_BASE: /usr/local/tomcat-4.0.1
 Using CATALINA_HOME: /usr/local/tomcat-4.0.1
 Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01


 Similarly while shutting down tomcat using the shutdown.sh script, I get
the
 following messages:

 Using CLASSPATH:

/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.
1_01/lib/tools.jar
 Using CATALINA_BASE: /usr/local/tomcat-4.0.1
 Using CATALINA_HOME: /usr/local/tomcat-4.0.1
 Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01

 /usr/local/tomcat-4.0.1/bin/catalina.sh: line 234: 6865 Segmentation fault
 $JAVA_HOME/bin/java $CATALINA_OPTS -classpath
$CP -Dcatalina.base=$CATALINA_BASE
 -Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap $@
stop

 Also, the catalina.out log file does not have any entries.  I have changed
the
 paths around but to no avail.  Any suggestions on where I am going wrong
that
 will enable me to start using tomcat will be very helpful.

 Also, the port is .


 Thanks in advance,

 Samarth Kumar



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Errors building mod_webapp for Apache 1.3

2001-12-13 Thread Brian Adams

what OS and version?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 9:18 AM
To: Tomcat Users List
Subject: Errors building mod_webapp for Apache 1.3


I have checked out the latest cvs version of jakarta-tomcat-connectors
and followed the build instructions for webapp. On two different
systems (apache 1.3.9/22), I consitenly get the following error:


make[2]: Entering directory
`/home/craigm/src/jakarta-tomcat-connectors/webapp/apache-1.3'
{ APXS_LDFLAGS_SHLIB=`/usr/bin/apxs -q LDFLAGS_SHLIB` \
 \
-lm -lcrypt -lnsl -ldl ; \
APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
APXS_CFLAGS=`/usr/bin/apxs -q CFLAGS` \
-g -O2 \
-g -O2 \
 \
-DLINUX=2 -D_REENTRANT \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/apr/include \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/include \
 ; \
APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
/usr/bin/apxs \
-S CFLAGS=${APXS_CFLAGS} \
-S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \
-o mod_webapp.so \
-c mod_webapp.c \
/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libwebapp.a
\
/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libapr.a ; \
}
Bareword found where operator expected at (eval 6) line 1, near -DLINUX=22
-DEAPI -DTARGET=apache
(Missing operator before apache?)
String found where operator expected at (eval 6) line 1, at end of line
gcc -DLINUX=22 -DEAPI -DTARGET=apache -I/usr/include/db1 -DUSE_HSREGEX
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fpic -DSHARED_MODULE
-I/usr/include/apache-1.3  -c mod_webapp.c
mod_webapp.c:70: wa.h: No such file or directory
apxs:Break: Command failed with rc=1

etc...
--


So what's the deal? Please tell me I am not a moron.

Later,
-- 
\ Craig Cowboy McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
 
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
Teenagers



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Should I use Apache + Tomcat or just Tomcat?

2001-12-13 Thread Rob Macfarlane

I had no problem building mod_webapp for apache on Solaris 2.6 - it did take
about two days (16 hours) to download and configure the utilities and libraries,
and several false starts before I got it right.  Apache, tomcat and mod_webapp
were all built from source on our systems - we did not use downloaded binaries.

I'm having some problems with tomcat 4.0.1 Manager, but overall the installation
is running well.

What has been your difficulty with building mod_webapp?

- rob macfarlane
  Information Systems  Services
  Berkeley National Laboratory


[EMAIL PROTECTED] wrote:
 
 I will be using the Tomcat to run a web content management software
 Servlet. Here's the summary that I have on our activity for a week:
 
 
  Analysis for the Week of Dec 2nd, 2001.
 
 
 
Server
Activity
Totals
for
Period:
 
   Total sessions 10532
 served :
 
   Total hits made on251677
 server :
 
  Total page view 35529
   hits :
 
   Total non page216148
  view hits :
 
 Total time spent   1784825 seconds
by all sessions :
 
Total bandwidth :   kilobytes
  699867.09
 
 
 
 I imagine that this server could get more because of it's utility purpose.
 Does this help?
 
 Thank You,
 
 Justin A. Stanczak
 Web Manager
 Shake Learning Resource Center
 Vincennes University
 (812)888-5813
 
 
 Timothy Fisher
 trfishermi@ya   To: Tomcat Users List 
[EMAIL PROTECTED]
 hoo.com cc:
  Subject: Re: Should I use Apache + 
Tomcat or just Tomcat?
 12/13/2001
 10:16 AM
 Please respond
 to Tomcat
 Users List
 
 
 
 What will you be using the server for?   Like, what
 type of applications will you be running?   How many
 people do you anticipate using them?
 
 Tim
 
 --- [EMAIL PROTECTED] wrote:
  Hi, I have been trying to use webapp_mod to connect
  Apache to Tomcat 4.0.1
  with no luck. I'm running Solaris 8 7/01 on a Sparc
  station. The Apache
  install is the one that came with the Solaris 8 I
  installed. I plan on
  using Servlets for most of my work so I was
  wondering which route to take.
  I could use the AJP1.3 connector to use Apache with
  Tomcat or just remove
  Apache and just use Tomcat. I wasn't sure which
  option would be the best.
  If someone could give me some guidance it would be
  greatly appreciated.
 
 
  Thank You,
 
  Justin A. Stanczak
  Web Manager
  Shake Learning Resource Center
  Vincennes University
  (812)888-5813
 
 
  --
  To unsubscribe:
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
 
 
 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Errors building mod_webapp for Apache 1.3

2001-12-13 Thread Brian Adams

It looks like there may by a problem with your apxs script.
if you don't know wa.h is in the webapps include and I see it here being -I
I had problems with apxs and had to change some lines in it.  1.3.22 sounds
kinda new, I am surprised that it did not work there.
maybe you can INCLUDE the includes in the Makfile in apache1.3 directory.
just a thought.
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 9:18 AM
To: Tomcat Users List
Subject: Errors building mod_webapp for Apache 1.3


I have checked out the latest cvs version of jakarta-tomcat-connectors
and followed the build instructions for webapp. On two different
systems (apache 1.3.9/22), I consitenly get the following error:


make[2]: Entering directory
`/home/craigm/src/jakarta-tomcat-connectors/webapp/apache-1.3'
{ APXS_LDFLAGS_SHLIB=`/usr/bin/apxs -q LDFLAGS_SHLIB` \
 \
-lm -lcrypt -lnsl -ldl ; \
APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
APXS_CFLAGS=`/usr/bin/apxs -q CFLAGS` \
-g -O2 \
-g -O2 \
 \
-DLINUX=2 -D_REENTRANT \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/apr/include \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/include \
 ; \
APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
/usr/bin/apxs \
-S CFLAGS=${APXS_CFLAGS} \
-S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \
-o mod_webapp.so \
-c mod_webapp.c \
/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libwebapp.a
\
/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libapr.a ; \
}
Bareword found where operator expected at (eval 6) line 1, near -DLINUX=22
-DEAPI -DTARGET=apache
(Missing operator before apache?)
String found where operator expected at (eval 6) line 1, at end of line
gcc -DLINUX=22 -DEAPI -DTARGET=apache -I/usr/include/db1 -DUSE_HSREGEX
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fpic -DSHARED_MODULE
-I/usr/include/apache-1.3  -c mod_webapp.c
mod_webapp.c:70: wa.h: No such file or directory
apxs:Break: Command failed with rc=1

etc...
--


So what's the deal? Please tell me I am not a moron.

Later,
-- 
\ Craig Cowboy McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
 
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
Teenagers



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Errors building mod_webapp for Apache 1.3

2001-12-13 Thread Craig McDaniel

On Thu, Dec 13, 2001 at 09:37:40AM -0600, Brian Adams wrote:
 what OS and version?

Linux 2.4.9 and libc6 2.2.4

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 9:18 AM
 To: Tomcat Users List
 Subject: Errors building mod_webapp for Apache 1.3
 
 
 I have checked out the latest cvs version of jakarta-tomcat-connectors
 and followed the build instructions for webapp. On two different
 systems (apache 1.3.9/22), I consitenly get the following error:
 
 
 make[2]: Entering directory
 `/home/craigm/src/jakarta-tomcat-connectors/webapp/apache-1.3'
 { APXS_LDFLAGS_SHLIB=`/usr/bin/apxs -q LDFLAGS_SHLIB` \
  \
 -lm -lcrypt -lnsl -ldl ; \
 APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
 APXS_CFLAGS=`/usr/bin/apxs -q CFLAGS` \
 -g -O2 \
 -g -O2 \
  \
 -DLINUX=2 -D_REENTRANT \
 -I/home/craigm/src/jakarta-tomcat-connectors/webapp/apr/include \
 -I/home/craigm/src/jakarta-tomcat-connectors/webapp/include \
  ; \
 APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
 /usr/bin/apxs \
 -S CFLAGS=${APXS_CFLAGS} \
 -S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \
 -o mod_webapp.so \
 -c mod_webapp.c \
 /home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libwebapp.a
 \
 /home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libapr.a ; \
 }
 Bareword found where operator expected at (eval 6) line 1, near -DLINUX=22
 -DEAPI -DTARGET=apache
 (Missing operator before apache?)
 String found where operator expected at (eval 6) line 1, at end of line
 gcc -DLINUX=22 -DEAPI -DTARGET=apache -I/usr/include/db1 -DUSE_HSREGEX
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fpic -DSHARED_MODULE
 -I/usr/include/apache-1.3  -c mod_webapp.c
 mod_webapp.c:70: wa.h: No such file or directory
 apxs:Break: Command failed with rc=1
 
 etc...
 --
 
 
 So what's the deal? Please tell me I am not a moron.
 
 Later,
 -- 
 \ Craig Cowboy McDaniel
 /_\ Software Engineer
 /_/_\ n + 1, Inc.
 /_/_/_\ [EMAIL PROTECTED]
 /_/_/_/_\ (502) 479-5557
  
 MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
 Teenagers
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
\ Craig Cowboy McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
 
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools Teenagers

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat4 Velocity

2001-12-13 Thread Geir Magnusson Jr.

On 12/13/01 10:15 AM, Reto Badertscher [EMAIL PROTECTED] wrote:

 Hello,
 
 after porting an application using Velocity from TC 3.2 to TC 4.0 the
 following error occurres when accessing the application:
 
 StandardWrapperValve[Controller]: Allocate exception for servlet Controller
 javax.servlet.ServletException: Error configuring the loader:
 java.lang.NullPointerException
 at
 org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:213)
 
 This error happens with Velocity 1.1 and 1.2.  Could please someone give me
 a hint what causes this error.
 

Strange. I use TC4 all the time.

We can take this off of Tomcat list for a moment to figure out where in
Velocity the problem is happening and you can bring it back to Tomcat-land
if it is a tomcat issue.

Email me if interested.  I can send you a modified Velocity jar that will
give us some more info.

Geir

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
You're going to end up getting pissed at your software
anyway, so you might as well not pay for it. Try Open Source.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4 and mod_webapp

2001-12-13 Thread Erik Lotspeich

Hi,

I am successfully able to build Tomcat 4 from source and it works just
great.  I'm trying to get mod_webapp to work with Apache 1.3.22.  I've
built mod_webapp from the source that is distributed with the Tomcat 4
package and I've also tried a recent build
webapp-module-20011211.tar.gz.  Both give the same results which are:

1. The mod_webapp Package builds successfully.
2. I add the following lines to the Apache configuration (per instructions
in the documentation):

LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c

IfModule mod_webapp.c
WebAppConnection conn  warp  localhost:8008
WebAppDeploy examples  conn  /examples
/IfModule

3. When I try to start Apache, it starts and quits right away.
Unfortunately when it quits, it quits before it is able to dump a core
file or print anything to the error log.  Also, no error messages are
printed to the logs inside of the tomcat directory structure.

Has anyone else experienced this problem?  Is something wrong with the
Apache configuration, or is this a bug in mod_webapp?  Did it get built
improperly (there were no error messages during the build)?

Any help would be greatly appreciated.

Thanks,

Erik.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Servlet-Mapping/Url-Pattern not recognized - Please - help ....

2001-12-13 Thread Franciszek Michal Misa

Thanks Larry -
I never learn my lesson - the log files 

An examination of the log files revealed the following error while trying
to parse my Deployment Descriptor:

 2001-12-13 11:52:04 - Ctx(/franksTestApp) : Validating web.xml
 2001-12-13 11:52:04 - Ctx(/franksTestApp) : web.xml: Error 
org.xml.sax.SAXParseException: Element servlet does not allow servlet-mapping
 here.


A close look at my web.xml revealed my DOCTYPE tag was slightly off:
I changed:
 DOCTYPE web-app
to:
!DOCTYPE web-app

Restarted the server - and now both URLs WORK :)) - no parsing error 
http://myhost:8080/myApp/doHello  OK
http://www.myhost.com/myApp/doHello   OK

Thanks Larry ...
Also . Thanks Andy for replying too .

Cheers

Frank


I really appreciate the help 

Larry Isaacs wrote:

 I would focus first on getting http://myhost:8080/myApp/doHello
 to work.  If it doesn't, http://www.myhost.com/myApp/doHello
 isn't going to work either.

 At this point it is usually good to check the log's to see
 if there are any clues as to why the URL failed.  There is
 usually more there than what you can get from the response
 returned to the browser.  If necessary, add or increase the
 debug=level setting on various modules in the server.xml
 to get more log output.  To see if the servlet mapping is
 or isn't matching the URL, add debug=1 to SimpleMapper1 /.

 Cheers,
 Larry

  -Original Message-
  From: Franciszek Michal Misa [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 13, 2001 5:22 AM
  To: [EMAIL PROTECTED]
  Subject: Servlet-Mapping/Url-Pattern not recognized - Please
  - help 
 
 
  Hi All,
 
  I'm trying to:
 - configure the older Tomcat3.3Final   (installed from Binary
  RPM)
 - on a linux (RedHatv7.1) system
 - running apache-1.3.22-1.7.1
 
  Both Tomcat and apache are up and running - seem to be working - at
  least I can execute all the sample JSP pages and Servlets .
  However, my attempts at configuring my own web application are not
  completely successful ??
  I've poured over all the documentation  the key pieces of
  information seem to be spread out !!
 
  I've installed my application into: (All permissions are open - world
  execute)
  /var/tomcat/webapps/myApp/ index.html
   WEB-INF/web.xml
 
  classes/MyHelloWorld.class
 
  I've configured all environment variables, and agent (mod_jk) property
  files etc.
 
  BUT I can only execute my servlet using the following URLs:
  http://myhost:8080/myApp/servlet/MyHelloWorld
  OK
  http://www.myhost.com/myApp/servlet/MyHelloWorld   OK
 
  The following URLs do not work ???
  http://myhost:8080/myApp/doHello
  FAIL:Not Found (404)
  http://www.myhost.com/myApp/doHello
  FAIL:Not Found (404)
 
  I think I'm a little confused with what can be configured in
  httpd.conf
  vs. web.xml and uriworkermap.properties  vs. what's
  picked-up by
  DEFAULT
  ?
 
  Some configuration recipes would be GREATLY appreciated .
 
  Please help
 
  Thanks
 
  I've configured my web server and tomcat in the following way ...
 
 
 
 
 
   APACHE
 
   httpd.conf:
 
   LoadModule jk_module modules/mod_jk.so
   AddModule mod_jk.c
   
   
   IfModule mod_jk.c
JkWorkersFile
   /etc/tomcat/conf/jk/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
   /IfModule
 
   NameVirtualHost www.host.com
 
   # VirtualHost example:
   # Almost any Apache directive may go into a
   VirtualHost container.
   #
   VirtualHost  www.host.com
   ServerAdmin xxx@xxx
   DocumentRoot
   /var/www/html/virtual/www.host.com
   ServerName  www.host.com
   ErrorLog logs/www.host.com-error_log
   CustomLog logs/www.host.com-access_log
   common
 
  IfModule mod_jk.c
   Alias /myApp
   /var/tomcat/webapps/myApp
   Directory /var/tomcat/webapps/myApp
 
  Options Indexes FollowSymLinks
   /Directory
   JkMount /myApp/* ajp12
   JkMount /myApp/*.jsp ajp12
   # Location /myApp/WEB-INF/
   #   AllowOverride None
   #   deny from all
   #/Location
 /IfModule
 
   /VirtualHost
 
 
  AGENT mod_jk.so
 
  * I don't see WHY this should be required - but out of desperation -
  I've also added the following line to the mod_jk:
   uriworkermap.properties
 
  # Mount the examples context to the ajp12 worker
   /myApp/*=ajp12
 
 
 
  TOMCAT
 
  * Configured tomcat.conf java home classpath etc.
  etc. etc.
 
  * I figure I don't need an  apps-myApp.xml  under
  my tomcat/conf directory  - should be picked up by
  DEFAULT context path ?
 
  web.xml  - Application deployment descriptor 
  ?xml version=1.0 encoding=ISO-8859-1?
  DOCTYPE web-app  PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application
  2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
  web-app
   

Netegrity/SiteMinder with Tomcat

2001-12-13 Thread Martin Frommberger

We´re planning to integrate our Application in some Real-World-Web-Sites
using SiteMinder from Netegrity. Is there any experience in integrating
Tomcat 3.3/4.0 in such a szenario?

Thanks

Martin Frommberger



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4 and mod_webapp

2001-12-13 Thread Craig McDaniel

On Thu, Dec 13, 2001 at 08:15:27AM -0800, Erik Lotspeich wrote:
 Hi,
 
 I am successfully able to build Tomcat 4 from source and it works just
 great.  I'm trying to get mod_webapp to work with Apache 1.3.22.  I've
 built mod_webapp from the source that is distributed with the Tomcat 4
 package and I've also tried a recent build
 webapp-module-20011211.tar.gz.  Both give the same results which are:
 
 1. The mod_webapp Package builds successfully.
 2. I add the following lines to the Apache configuration (per instructions
 in the documentation):
 
 LoadModule webapp_module libexec/mod_webapp.so
 AddModule mod_webapp.c
 
 IfModule mod_webapp.c
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy examples  conn  /examples
 /IfModule
 
 3. When I try to start Apache, it starts and quits right away.
 Unfortunately when it quits, it quits before it is able to dump a core
 file or print anything to the error log.  Also, no error messages are
 printed to the logs inside of the tomcat directory structure.

Try using --enable-debug with ./configure and rebuild the module. Now,
if i can just get mod_webapp to compile ;)

 Erik.

Later,
-- 
\ Craig Cowboy McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
 
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools Teenagers

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Richard S. Huntrods

Greetings!

Let's try this again.  From the error message below, it would appear
that there is something WRONG with
org.apache.catalina.session.StandardSession.  Note from the error that
we get a java.lang.NoSuchMethodError - the method does not exist.

After reading the Catalina Javadocs, it becomes aparent there are two
StandardSessionFacade constructors.  One is:

StandardSessionFacade(javax.servlet.http.HttpSession session);
the other is
StandardSessionFacade(org.apache.catalina.session.StandardSession
session)

It would appear that the catalina session version is getting called by
default, because I ask for no specific one in my code.  The problem is
that there is NO StandardSession class, according to the javadocs - or
if there is (undocumented), it is missing the putSession method, as
stated in the error.

I think this is a BUG in Catalina.  Why call one particular constructor
by default, which does not use the standard javax classes, and then NOT
supply all the required session methods?  NOTE - this constructor is
called OUTSIDE my code by other Catalina code - I have no real control
over which constructor is used.

Does anyone in the developmer community know of a workaround?

java.lang.NoSuchMethodError
 at
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1185)

 at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)

 at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)

 at
qti.object.Login.putSession(Login.java:572)




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat installer cannot find IBM JDK

2001-12-13 Thread Graham Leggett

Hi all,

I just installed the IBM JDK v1.3 on a Windows 98 SE machine, then tried
to install Tomcat v4.0.1 from the .exe installer.

The installer complained that there was no JVM installed - when there
was. No clue was given by the installer as to why it could not find it,
or where it was looking.

Anyone else had a problem like this?

Regards,
Graham
-- 
-
[EMAIL PROTECTED]There's a moon
over Bourbon Street
tonight...


smime.p7s
Description: S/MIME Cryptographic Signature


Using mod_jk in Tomcat4

2001-12-13 Thread JBrawner

I've given up on mod_webapp and am trying to use mod_jk.  The instructions
for mod_jk says 'use Tomcat to create the mod_jk.conf file'.  How is this
done?


thanks,

Jason E. Brawner


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem w Apache Server Name directive

2001-12-13 Thread Denny Chambers

Hi All,

I had a problem while deploying an Apache 1.3.20/mod_ssl/Tomcat
4.0.1/WepApps configuration. The errors that I was getting began
something like this: [error] Cannot deploy application MyAppName. The
solution that I found in the Tomcat User Archives was to change the
ServerName directive in httpd.conf to my ip address instead of a host
name. This work to get me passed that problem, but I really need to have
my host name back in there. Does any one know of a better fix for this.
I have included the message from the archive below.

Quote from = Philippe Khalife
I'm not claiming I know the reason why this error happens, but I
 have the
 same problem.

 My fix:
 Change the ServerName in httpd.conf to be the IP address instead of
 the
 hostname.domain.com, keep the name in server.xml
 it works.
/Quote

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




DecodeInterceptor Tomcat3.3

2001-12-13 Thread Bryan Pieper


In my jvm.stderr log, I keep getting:
2001-12-13 11:19:00 - DecodeInterceptor: Charset from session ISO-8859-1
2001-12-13 11:19:02 - DecodeInterceptor: Charset from session ISO-8859-1
2001-12-13 11:19:05 - DecodeInterceptor: Charset from session ISO-8859-1

What is causing this and how do I fix it?

Thanks.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat not starting on initialization

2001-12-13 Thread Samarth_Kumar


Hello,

I don't get any SegFaults when the server is started up.  At the same time,
there is no java process running on doing a ps -ef.  I am using JDK 1.3
downloaded from java.sun.com.  The JDK installed without any hassles.  I don't
have any other java applications running so cannot say.

Samarth





Mika Goeckel [EMAIL PROTECTED] on 12/13/2001 10:56:27 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:(bcc: Samarth Kumar/IT/VGI)
Subject:  Re: Tomcat not starting on initialization



Hi Samarth,

yes, tomcat shows up as java process(es).
Do you get the SegFault as well when you start?
Could be a problem with your jdk. What jdk are you using?
Do you have other java applications running without problems?

Mika
^X^S
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 1:53 PM
Subject: Tomcat not starting on initialization



 Following up to my last email about tomcat not starting up, when I point
my
 browser to http://localhost:, I don't get any response.

 Another question, does the process show up when you do a ps -ef.




 Folks,

 I have installed Tomcat 4.0.1 on a system with Apache 1.3.20 on a
Slackware 8.0
 distribution.  All the environment variables have also been set in the
.profile
 file.

 While starting up tomcat using the startup.sh script, I get the following
 messages:

 Using CLASSPATH:

/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.
1_01/lib/tools.jar
 Using CATALINA_BASE: /usr/local/tomcat-4.0.1
 Using CATALINA_HOME: /usr/local/tomcat-4.0.1
 Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01


 Similarly while shutting down tomcat using the shutdown.sh script, I get
the
 following messages:

 Using CLASSPATH:

/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.
1_01/lib/tools.jar
 Using CATALINA_BASE: /usr/local/tomcat-4.0.1
 Using CATALINA_HOME: /usr/local/tomcat-4.0.1
 Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01

 /usr/local/tomcat-4.0.1/bin/catalina.sh: line 234: 6865 Segmentation fault
 $JAVA_HOME/bin/java $CATALINA_OPTS -classpath
$CP -Dcatalina.base=$CATALINA_BASE
 -Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap $@
stop

 Also, the catalina.out log file does not have any entries.  I have changed
the
 paths around but to no avail.  Any suggestions on where I am going wrong
that
 will enable me to start using tomcat will be very helpful.

 Also, the port is .


 Thanks in advance,

 Samarth Kumar







--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Application configuration

2001-12-13 Thread Camara, Jose

Thanks Larry,

I don't even reach the point where Tomcat itself is running my application.
I guess I need to indicate Tomcat where and how to recognize the classes for
my application. Setting up my application in tomcat is the problem.

Regards,

Jose L. Camara

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 4:58 AM
To: 'Tomcat Users List'
Subject: RE: Application configuration


The configuration you show only lets Tomcat execute
servlets.  All other content, Apache will try to serve
directly.  Is this your intent?   It would also help
to know which version of Tomcat 3.x you are using.
(Note that Tomcat 3.3 does the best job of automating
the connection to Apache.)

In general, I would also recommend testing your web
application first by accessing Tomcat directly.  If
everything works okay, then try accessing through
Apache.  A web.xml isn't required as long as you are
happy with what Tomcat provides by default.

Cheers,
Larry

 -Original Message-
 From: Camara, Jose [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 12, 2001 10:01 PM
 To: '[EMAIL PROTECTED]'
 Subject: Application configuration
 
 
 I think I reach that point where I need some help ... could 
 you subscribe me
 and help me with the following issue.
  
 Totally new in configuring applications to be deployed on tomcat:
 1) Apache and tomcat are running perfectly
 2) I created a directory to install my application (webapps/imr)
 3) Under that, I created META-INF, WEB-INF and servlets directories.
 4) I also modified tomcat-apache.conf as follows
  
 Alias /imr /home/jcamara/tomcat/webapps/imr
 Directory /home/jcamara/tomcat/webapps/imr
 Options Indexes FollowSymLinks
 /Directory
 ApJServMount /imr/servlet /imr
 Location /imr/WEB-INF/
 AllowOverride None
 deny from all
 /Location
 Location /imr/META-INF/
 AllowOverride None
 deny from all
 /Location  
  
 5) I'm starting to believe that I need to create a web.xml 
 file and I'm not
 sure how, probably I'll follow one of the examples.
 6) I can see the list of classes for my application under 
 that directory.
 7) Every time I'm trying to run the application it asked me 
 for download the
 application on IE and finally come with an error saying 
 Could not find the
 main class. Program will exit! on a Java Virtual Machine pop 
 up screen.
  
 I'm 100% sure that I'm missing something, so here are my questions:
 Q1: Do I need to create a web.xml file?
 Q2: Where should I put the jar files that my application need?
 Q3: How should I configure Tomcat in under to display correctly my
 application?
  
 Regards,
  
 
 Jose L. Camara
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Mika Goeckel

Hi!

What is the putSession() method of a HttpSession?
Do you mean putValue?
First, this is a deprecated method, but second, StandardSession implements
that method anyway.
StandardSession is org.apache.catalina.session.StandardSession, and
implements HttpSession, which is an interface and as such not
instantiateable.

The exception points to another reason, but I can't tell without knowing
what exact version of Tomcat you use and what you pass in.

Mika

- Original Message -
From: Richard S. Huntrods [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 6:05 PM
Subject: Try a different approach - What's wrong with catalina.session???


 Greetings!

 Let's try this again.  From the error message below, it would appear
 that there is something WRONG with
 org.apache.catalina.session.StandardSession.  Note from the error that
 we get a java.lang.NoSuchMethodError - the method does not exist.

 After reading the Catalina Javadocs, it becomes aparent there are two
 StandardSessionFacade constructors.  One is:

 StandardSessionFacade(javax.servlet.http.HttpSession session);
 the other is
 StandardSessionFacade(org.apache.catalina.session.StandardSession
 session)

 It would appear that the catalina session version is getting called by
 default, because I ask for no specific one in my code.  The problem is
 that there is NO StandardSession class, according to the javadocs - or
 if there is (undocumented), it is missing the putSession method, as
 stated in the error.

 I think this is a BUG in Catalina.  Why call one particular constructor
 by default, which does not use the standard javax classes, and then NOT
 supply all the required session methods?  NOTE - this constructor is
 called OUTSIDE my code by other Catalina code - I have no real control
 over which constructor is used.

 Does anyone in the developmer community know of a workaround?

 java.lang.NoSuchMethodError
  at

org.apache.catalina.session.StandardSession.setAttribute(StandardSession.jav
a:1185)

  at

org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)

  at

org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)

  at
 qti.object.Login.putSession(Login.java:572)




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




error on startup

2001-12-13 Thread Peter Georgiou

Hi

I don't know how this error appeared.  I'm running Tomcat 4 on win2k, and I get the 
following error in my console when I start tomcat:

Starting service Tomcat-Standalone
Apache Tomcat/4.0
ERROR reading java.io.FileInputStream@7a29a1
At Line 57 /web-app/servlet/

Starting service Tomcat-Apache
Apache Tomcat/4.0

Toncat runs, but does not work, can someone please help me with this?

Thanks

Peter




Re: Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Richard S. Huntrods

More stuff

Here is the source code to a servlet that RUNS under Tomcat 4.0 but does
NOT RUN under Tomcat 4.0.1.

I can email (upone request) a zip file containing the full directory
structure (with class file) that can be unzipped an placed directly
under webapps.  Put it in Tomcat 4.0 and it runs, put it under Tomcat
4.0.1 and it does not.

Of course - tc 4.0 and tc 4.0.1 are in totally separate directories, can
run all example servlets AND any servlet without the session stuff in
it.  Also of course I never try to run TC4 and 4.01 at the same time.
On Solaris 8, this runs under tc 4.0.1 without error.  Only on Win 2000
does this error happen.

I have also re-downloaded Tomcat for Windows and done a binary compare
between what I have and the latest - and they are identical.

It really does seem as if TC 4.0.1 on W2K has a problem with the
catalina.StandardSesionFacade incorrectly calling
catalina.StandardSession instead of javax.servlet.http.HttpSession,
but I do not know why this happens on W2K but NOT on Solaris.

I am not a newbie in this particular stuff, and have done my
homework.  I would appreciate a reply from someone in the Tomcat
developer community.

Cheers,

-Richard

=the code==
/**
 * Title: SessionTestServlet
 *
 * Description: Session Test Servlet - duplicate Catalina Session error
 *
 * Copyright: Copyright (c) 2001, Huntrods Consulting Inc.
 *
 * Company: Huntrods Consulting Inc.
 * Author: Richard S. Huntrods
 * Version: 1.0
 * Date: December 13, 2001
 *
 * @author Richard S. Huntrods
 * @version 1.0
 */

package testing;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class SessionTestServlet extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
super.init(config);
}

public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {

doPost(request, response);
}

public void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {

response.setContentType (text/html);
StringBuffer buffer = new StringBuffer();

HttpSession session = request.getSession(true);
if(session != null) {
session.setAttribute(name, Richard Huntrods);
session.setAttribute(company, Huntrods Consulting Inc.);

}

buffer.append(HTML\n);
buffer.append(HEAD\n);
buffer.append( META NAME=\GENERATOR\ CONTENT=\WinEdit -
Richard S. Huntrods\\n);
buffer.append( TITLESession Test/TITLE\n);
buffer.append(/HEAD\n);
buffer.append(BODY BGCOLOR=\#99\\\n);
buffer.append( PCENTERBIH2\n);
buffer.append(Session Test\n);
buffer.append( /H2/I/B/CENTER/P\n);
buffer.append(/BODY\n);
buffer.append(/HTML\n);

PrintWriter out = response.getWriter();
out.println(buffer);
out.close();
}

public String getServletInfo() {
return SessionTestServlet Information;
}
}
=





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat not starting on initialization

2001-12-13 Thread Mika Goeckel

Try

bin/catalina.sh run -debug

what does it say?


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 6:21 PM
Subject: Re: Tomcat not starting on initialization



 Hello,

 I don't get any SegFaults when the server is started up.  At the same
time,
 there is no java process running on doing a ps -ef.  I am using JDK 1.3
 downloaded from java.sun.com.  The JDK installed without any hassles.  I
don't
 have any other java applications running so cannot say.

 Samarth





 Mika Goeckel [EMAIL PROTECTED] on 12/13/2001 10:56:27 AM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:   Tomcat Users List [EMAIL PROTECTED]
 cc:(bcc: Samarth Kumar/IT/VGI)
 Subject:  Re: Tomcat not starting on initialization



 Hi Samarth,

 yes, tomcat shows up as java process(es).
 Do you get the SegFault as well when you start?
 Could be a problem with your jdk. What jdk are you using?
 Do you have other java applications running without problems?

 Mika
 ^X^S
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 1:53 PM
 Subject: Tomcat not starting on initialization


 
  Following up to my last email about tomcat not starting up, when I point
 my
  browser to http://localhost:, I don't get any response.
 
  Another question, does the process show up when you do a ps -ef.
 
 
 
 
  Folks,
 
  I have installed Tomcat 4.0.1 on a system with Apache 1.3.20 on a
 Slackware 8.0
  distribution.  All the environment variables have also been set in the
 .profile
  file.
 
  While starting up tomcat using the startup.sh script, I get the
following
  messages:
 
  Using CLASSPATH:
 

/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.
 1_01/lib/tools.jar
  Using CATALINA_BASE: /usr/local/tomcat-4.0.1
  Using CATALINA_HOME: /usr/local/tomcat-4.0.1
  Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01
 
 
  Similarly while shutting down tomcat using the shutdown.sh script, I get
 the
  following messages:
 
  Using CLASSPATH:
 

/usr/local/tomcat-4.0.1/bin/bootstrap.jar:/usr/local/java/j2se-1.3.1/jdk1.3.
 1_01/lib/tools.jar
  Using CATALINA_BASE: /usr/local/tomcat-4.0.1
  Using CATALINA_HOME: /usr/local/tomcat-4.0.1
  Using JAVA_HOME: /usr/local/java/j2se-1.3.1/jdk1.3.1_01
 
  /usr/local/tomcat-4.0.1/bin/catalina.sh: line 234: 6865 Segmentation
fault
  $JAVA_HOME/bin/java $CATALINA_OPTS -classpath
 $CP -Dcatalina.base=$CATALINA_BASE
  -Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap
$@
 stop
 
  Also, the catalina.out log file does not have any entries.  I have
changed
 the
  paths around but to no avail.  Any suggestions on where I am going wrong
 that
  will enable me to start using tomcat will be very helpful.
 
  Also, the port is .
 
 
  Thanks in advance,
 
  Samarth Kumar







 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: SubjectDN for client authentication Tomcat 4.0.1?

2001-12-13 Thread STANFORD, Jon-Paul, FM

If anyone is interested in the solution, please read on -

The answer is to not believe was the MMC Certificates snap-in says and
interrogate the certificate through the Java security API. I exported the
certificate from the snap-in in X509 form and wrote a little app to read
the file and output the SubjectDN. This can then be put in your tomcat-users
file -

user name='[EMAIL PROTECTED], CN=Joe Bloggs,
OU=Digital ID Class 1 - Netscape, OU=Persona Not Validated,
OU=www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)98,
OU=VeriSign Trust Network, O=VeriSign, Inc.' password=tomcat
roles=tomcat/


Cheers,
JP

-Original Message-
From: STANFORD, Jon-Paul, FM 
Sent: 12 December 2001 17:18
To: [EMAIL PROTECTED]
Subject: SubjectDN for client authentication Tomcat 4.0.1?


Anyone,
I am having a little difficulty setting up Tomcat (4.0.1) to perform
client
authentication. For our purposes we are happy to use the MemoryRealm and
perform
authentication of a client's certificate against tomcat users in this realm.

The question is what do you put in the user name attribute in
conf/tomcat-users.xml?
I saw a post which indicated this must be the SubjectDN of the certificate -
but what
exactly is this? I exported the Digital ID from Netscape and imported it
into the
Certificates snap-in in MMC so I could see it's details - the Subject field
is as follows -

E = [EMAIL PROTECTED]
CN = Joe Bloggs
OU = Digital ID Class 1 - Netscape
OU = Persona Not Validated
OU = www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)98
OU = VeriSign Trust Network
O = VeriSign, Inc.

I set this as the user, but got the usual Cannot authenticate with the
provided
credentials message. So this would not appear to be correct, but I cannot
tell
whether this is formatting or that I am doing something wrong.

If anyone knows how to configure this correctly, I would be very grateful.

The rest of my config is as follows -

Cheers,
JP


conf\server.xml
...
Realm className=org.apache.catalina.realm.MemoryRealm /
...
Context path=/FXE docBase=FXE debug=1 reloadable=true/
...

conf\tomcat-users.xml
tomcat-users
user name=tomcat password=tomcat roles=tomcat /
user name=role1  password=tomcat roles=role1  /
user name=both   password=tomcat roles=tomcat,role1 /
user name=[EMAIL PROTECTED], CN=Joe Bloggs, OU=Digital
ID Class 1 - Netscape, OU=Persona Not Validated,
OU=www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)98,
OU=VeriSign Trust Network, O = VeriSign, Inc. password=tomcat
roles=tomcat/
/tomcat-users

FXE\WEB-INF\web.xml
!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

display-nameAServlet/display-name

servlet
servlet-nameTheServlet/servlet-name
servlet-classcom.rbsfm.fxe.TheServlet/servlet-class
/servlet

servlet-mapping
servlet-nameTheServlet/servlet-name
url-pattern/TheServlet/url-pattern
/servlet-mapping

security-constraint
display-nameRole based security constraint/display-name
web-resource-collection
web-resource-nameProtected
Area/web-resource-name
url-pattern/TheServlet/url-pattern
/web-resource-collection
auth-constraint
role-nametomcat/role-name
/auth-constraint
user-data-constraint

transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

login-config
auth-methodCLIENT-CERT/auth-method
/login-config

security-role
role-nametomcat/role-name
/security-role

/web-app


Jon-Paul Stanford

eCommerce Development - Financial Markets 
The Royal Bank of Scotland 
135 Bishopsgate
London 
EC2M 3UR 
Tel: 020 7375 5360




  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: SSL working on tomcat 4.0 standalone?

2001-12-13 Thread Jim Urban

I just received a trial cert from Verisign.  I tried to import the cert
using the command keytool -import -alias tomcat -trustcacerts -file
./verisign.csr.  After entering the password I received the following error
keytool error: java.lang.Exception: Failed to establish chain from reply.
Any ideas what is causing this error and how to get around it?

Thanks,
Jim

-Original Message-
From: mik graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 6:05 PM
To: [EMAIL PROTECTED]
Subject: SSL working on tomcat 4.0 standalone?


I have SSL running on tomcat 4.0 standalone, solaris 8 box. After following
the directions from
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
it worked fine with my self signed certificate. I created the certificate by
running the following command:

keytool -genkey -alias tomcat -keyalg RSA

I then proceeded to create the CSR which I sent to Verisign with the
following:

keytool -certreq -alias tomcat -file /tmp/foo.csr

I found something odd here was that if I had spaces in my company name
when I ran the keytool -genkey..., the keytool -certreq... would
fail. I re-ran the keytool -genkey... and took out the spaces from
the company name. Then the keytool -certreq... would work fine.

Once I received back the certificate from Verisign, I tried to import
it with the following.

keytool -import -alias tomcat -trustcacerts -file ./verisign.csr

The only odd thing was at the end it asked if I wanted to trust
this certificate, I didn't think it was suppose to do that.

I'm still able to connect to the server via https. Once connected
I click on the lock to view the certificate and it still appears
to be the original self signed one, not Verisign's.

I'm looking for any help I can get on this one. Thanks.

Mik Graham

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




java.lang.IllegalStateException

2001-12-13 Thread RSEQUEIRA

I'm calling a servlet from within another servlet using the URL class. The
calling servlet posts data, reads the output, and then passes on the output
to the browser. In JRun everything works fine. But on Tomcat the same
throws a java.lang.IllegalStateException

Error:
java.lang.IllegalStateException: Writer is already being used for this
request
at
org.apache.tomcat.facade.HttpServletResponseFacade.getOutputStream(HttpServletResponseFacade.java:158)

I'm using a PrintWriter (which I get from the response object) in the
called servlet. And I've a finally block which closes the stream. Also
assign the object to null.

The calling servlet which behaves like a proxy has a PrintStream (which it
gets from it's response object). This object is used to write the output
(that it reads from the called servlet) to the browser.

I know I'm missing something fundamental here. But can't seem to figure it
out. Is Tomcat getting mixed up with two  Outputstreams/Writers? Any
ideas/comments?

Thanks.
RS



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




somebody trying hack me, what they really wanted?

2001-12-13 Thread Evgeniy Strokin

Hi,
tonight, somebody had tried hack our Tomcat 3.2.3 in win2000.
Here is the log:

2001-12-13 01:18:35 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
2001-12-13 01:18:36 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
2001-12-13 01:18:42 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
null
2001-12-13 01:18:46 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)
null
2001-12-13 01:18:47 - Ctx(  ): 404 R(
/scripts/..%255c../winnt/system32/cmd.exe)
 null
2001-12-13 01:18:50 - Ctx(  ): 404 R(
/_vti_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 01:18:51 - Ctx(  ): 404 R(
/_mem_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 01:19:00 - Ctx(  ): 404 R(
/msadc/..%255c../..%255c../..%255c/..%c1%1
c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe) null
2001-12-13 01:19:00 - Ctx(  ): 404 R(  +
/scripts/..??../winnt/system32/cmd.exe
+ null) null
2001-12-13 01:19:01 - Ctx(  ): 404 R(
/scripts/..%c0%2f../winnt/system32/cmd.exe
) null
2001-12-13 01:19:31 - ContextManager: SocketException reading request,
ignored -
 java.net.SocketException: Connection reset by peer: JVM_recv in socket
input st
ream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:198)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
at java.lang.Thread.run(Unknown Source)

2001-12-13 01:50:41 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
2001-12-13 01:50:41 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
2001-12-13 01:51:09 - ContextManager: SocketException reading request,
ignored -
 java.net.SocketException: Connection reset by peer: JVM_recv in socket
input st
ream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:198)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
at java.lang.Thread.run(Unknown Source)

2001-12-13 06:08:24 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
2001-12-13 06:08:24 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
2001-12-13 06:08:25 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
null
2001-12-13 06:08:25 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)
null
2001-12-13 06:08:25 - Ctx(  ): 404 R(
/scripts/..%255c../winnt/system32/cmd.exe)
 null
2001-12-13 06:08:25 - Ctx(  ): 404 R(
/_vti_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(
/_mem_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(
/msadc/..%255c../..%255c../..%255c/..%c1%1
c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(  +
/scripts/..??../winnt/system32/cmd.exe
+ null) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(
/scripts/..%c0%2f../winnt/system32/cmd.exe
) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(  +
/scripts/..?»../winnt/system32/cmd.exe
+ null) null
2001-12-13 06:08:27 - Ctx(  ): 404 R(  +
/scripts/..??../winnt/system32/cmd.exe
+ null) null
2001-12-13 06:08:27 - ContextManager: RequestImpl.setServletPath: Unable to
deco
de servlet path, using encoded version.  path =
/scripts/..%%35%63../winnt/syste
m32/cmd.exe
2001-12-13 06:08:27 - Ctx(  ): 404 R(  +

Re: somebody trying hack me, what they really wanted?

2001-12-13 Thread Paul DuBois

It's a Code Red or Nimba attack, probably from an infected IIS server.

On Thu, Dec 13, 2001 at 01:04:51PM -0500, Evgeniy Strokin wrote:
 Hi,
 tonight, somebody had tried hack our Tomcat 3.2.3 in win2000.
 Here is the log:
 
 2001-12-13 01:18:35 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
 2001-12-13 01:18:36 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
 2001-12-13 01:18:42 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
 null
 2001-12-13 01:18:46 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)

[snip]

 
 Is it something serious or they had tried run NIMDA virus files or something
 like that?
 What do you think?
 
 Best regards,
 Jenya Strokin

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: somebody trying hack me, what they really wanted?

2001-12-13 Thread David Cassidy

NIMDA
 ...

Just put a file there for it to get ;-)

D


Evgeniy Strokin wrote:

 Hi,
 tonight, somebody had tried hack our Tomcat 3.2.3 in win2000.
 Here is the log:

 2001-12-13 01:18:35 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
 2001-12-13 01:18:36 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
 2001-12-13 01:18:42 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
 null
 2001-12-13 01:18:46 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)
 null
 2001-12-13 01:18:47 - Ctx(  ): 404 R(
 /scripts/..%255c../winnt/system32/cmd.exe)
  null
 2001-12-13 01:18:50 - Ctx(  ): 404 R(
 /_vti_bin/..%255c../..%255c../..%255c../wi
 nnt/system32/cmd.exe) null
 2001-12-13 01:18:51 - Ctx(  ): 404 R(
 /_mem_bin/..%255c../..%255c../..%255c../wi
 nnt/system32/cmd.exe) null
 2001-12-13 01:19:00 - Ctx(  ): 404 R(
 /msadc/..%255c../..%255c../..%255c/..%c1%1
 c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe) null
 2001-12-13 01:19:00 - Ctx(  ): 404 R(  +
 /scripts/..??../winnt/system32/cmd.exe
 + null) null
 2001-12-13 01:19:01 - Ctx(  ): 404 R(
 /scripts/..%c0%2f../winnt/system32/cmd.exe
 ) null
 2001-12-13 01:19:31 - ContextManager: SocketException reading request,
 ignored -
  java.net.SocketException: Connection reset by peer: JVM_recv in socket
 input st
 ream read
 at java.net.SocketInputStream.socketRead(Native Method)
 at java.net.SocketInputStream.read(Unknown Source)
 at java.io.BufferedInputStream.fill(Unknown Source)
 at java.io.BufferedInputStream.read(Unknown Source)
 at
 org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
 dapter.java:115)
 at
 org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
 letInputStream.java:106)
 at
 org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
 tInputStream.java:128)
 at
 javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
 )
 at
 org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
 pRequestAdapter.java:129)
 at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
 n(HttpConnectionHandler.java:198)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
 416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
 :501)
 at java.lang.Thread.run(Unknown Source)

 2001-12-13 01:50:41 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
 2001-12-13 01:50:41 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
 2001-12-13 01:51:09 - ContextManager: SocketException reading request,
 ignored -
  java.net.SocketException: Connection reset by peer: JVM_recv in socket
 input st
 ream read
 at java.net.SocketInputStream.socketRead(Native Method)
 at java.net.SocketInputStream.read(Unknown Source)
 at java.io.BufferedInputStream.fill(Unknown Source)
 at java.io.BufferedInputStream.read(Unknown Source)
 at
 org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
 dapter.java:115)
 at
 org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
 letInputStream.java:106)
 at
 org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
 tInputStream.java:128)
 at
 javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
 )
 at
 org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
 pRequestAdapter.java:129)
 at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
 n(HttpConnectionHandler.java:198)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
 416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
 :501)
 at java.lang.Thread.run(Unknown Source)

 2001-12-13 06:08:24 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
 2001-12-13 06:08:24 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
 2001-12-13 06:08:25 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
 null
 2001-12-13 06:08:25 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)
 null
 2001-12-13 06:08:25 - Ctx(  ): 404 R(
 /scripts/..%255c../winnt/system32/cmd.exe)
  null
 2001-12-13 06:08:25 - Ctx(  ): 404 R(
 /_vti_bin/..%255c../..%255c../..%255c../wi
 nnt/system32/cmd.exe) null
 2001-12-13 06:08:26 - Ctx(  ): 404 R(
 /_mem_bin/..%255c../..%255c../..%255c../wi
 nnt/system32/cmd.exe) null
 2001-12-13 06:08:26 - Ctx(  ): 404 R(
 /msadc/..%255c../..%255c../..%255c/..%c1%1
 c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe) null
 2001-12-13 06:08:26 - Ctx(  ): 404 R(  +
 /scripts/..??../winnt/system32/cmd.exe
 + null) null
 2001-12-13 06:08:26 - Ctx(  ): 404 R(
 /scripts/..%c0%2f../winnt/system32/cmd.exe
 ) null
 2001-12-13 06:08:26 - Ctx(  ): 404 R(  +
 /scripts/..?»../winnt/system32/cmd.exe
 + null) null
 2001-12-13 06:08:27 - Ctx(  ): 404 R(  +
 /scripts/..??../winnt/system32/cmd.exe
 + null) null
 2001-12-13 06:08:27 - 

RE: somebody trying hack me, what they really wanted?

2001-12-13 Thread Jim Urban

You was hacked by one of those Nimba type worm viruses.  Be glad you were
not running IIS, you could have been in big trouble.

Jim

-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 12:05 PM
To: [EMAIL PROTECTED]
Subject: somebody trying hack me, what they really wanted?


Hi,
tonight, somebody had tried hack our Tomcat 3.2.3 in win2000.
Here is the log:

2001-12-13 01:18:35 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
2001-12-13 01:18:36 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
2001-12-13 01:18:42 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
null
2001-12-13 01:18:46 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)
null
2001-12-13 01:18:47 - Ctx(  ): 404 R(
/scripts/..%255c../winnt/system32/cmd.exe)
 null
2001-12-13 01:18:50 - Ctx(  ): 404 R(
/_vti_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 01:18:51 - Ctx(  ): 404 R(
/_mem_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 01:19:00 - Ctx(  ): 404 R(
/msadc/..%255c../..%255c../..%255c/..%c1%1
c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe) null
2001-12-13 01:19:00 - Ctx(  ): 404 R(  +
/scripts/..??../winnt/system32/cmd.exe
+ null) null
2001-12-13 01:19:01 - Ctx(  ): 404 R(
/scripts/..%c0%2f../winnt/system32/cmd.exe
) null
2001-12-13 01:19:31 - ContextManager: SocketException reading request,
ignored -
 java.net.SocketException: Connection reset by peer: JVM_recv in socket
input st
ream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:198)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
at java.lang.Thread.run(Unknown Source)

2001-12-13 01:50:41 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
2001-12-13 01:50:41 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
2001-12-13 01:51:09 - ContextManager: SocketException reading request,
ignored -
 java.net.SocketException: Connection reset by peer: JVM_recv in socket
input st
ream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:198)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
at java.lang.Thread.run(Unknown Source)

2001-12-13 06:08:24 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
2001-12-13 06:08:24 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
2001-12-13 06:08:25 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
null
2001-12-13 06:08:25 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)
null
2001-12-13 06:08:25 - Ctx(  ): 404 R(
/scripts/..%255c../winnt/system32/cmd.exe)
 null
2001-12-13 06:08:25 - Ctx(  ): 404 R(
/_vti_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(
/_mem_bin/..%255c../..%255c../..%255c../wi
nnt/system32/cmd.exe) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(
/msadc/..%255c../..%255c../..%255c/..%c1%1
c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(  +
/scripts/..??../winnt/system32/cmd.exe
+ null) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(
/scripts/..%c0%2f../winnt/system32/cmd.exe
) null
2001-12-13 06:08:26 - Ctx(  ): 404 R(  +
/scripts/..?»../winnt/system32/cmd.exe
+ null) null

RE: DecodeInterceptor Tomcat3.3

2001-12-13 Thread Larry Isaacs

This is fixed in Tomcat 3.3.1 nightly.  For Tomcat 3.3,
I believe setting debug=-1 on the DecodeInterceptor
in server.xml will avoid the log output.

Cheers,
Larry

 -Original Message-
 From: Bryan Pieper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 12:20 PM
 To: [EMAIL PROTECTED]
 Subject: DecodeInterceptor Tomcat3.3
 
 
 
 In my jvm.stderr log, I keep getting:
 2001-12-13 11:19:00 - DecodeInterceptor: Charset from session 
 ISO-8859-1
 2001-12-13 11:19:02 - DecodeInterceptor: Charset from session 
 ISO-8859-1
 2001-12-13 11:19:05 - DecodeInterceptor: Charset from session 
 ISO-8859-1
 
 What is causing this and how do I fix it?
 
 Thanks.
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Mika Goeckel

Hmmm

the difference between these two constructors is, that the one which takes a
StandardSession upcasts it to HttpSession before assigning it to it's
session attribute,
this should not cause this problem, as StandardSession does implement all
HttpSession methods (otherwise the compiler would want to have it declared
abstract).

From my (I confess very distant) position it looks like a jvm on W2K
problem. Especially because you say it does work on Solaris.

Mika

- Original Message -
From: Richard S. Huntrods [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 6:05 PM
Subject: Try a different approach - What's wrong with catalina.session???


 Greetings!

 Let's try this again.  From the error message below, it would appear
 that there is something WRONG with
 org.apache.catalina.session.StandardSession.  Note from the error that
 we get a java.lang.NoSuchMethodError - the method does not exist.

 After reading the Catalina Javadocs, it becomes aparent there are two
 StandardSessionFacade constructors.  One is:

 StandardSessionFacade(javax.servlet.http.HttpSession session);
 the other is
 StandardSessionFacade(org.apache.catalina.session.StandardSession
 session)

 It would appear that the catalina session version is getting called by
 default, because I ask for no specific one in my code.  The problem is
 that there is NO StandardSession class, according to the javadocs - or
 if there is (undocumented), it is missing the putSession method, as
 stated in the error.

 I think this is a BUG in Catalina.  Why call one particular constructor
 by default, which does not use the standard javax classes, and then NOT
 supply all the required session methods?  NOTE - this constructor is
 called OUTSIDE my code by other Catalina code - I have no real control
 over which constructor is used.

 Does anyone in the developmer community know of a workaround?

 java.lang.NoSuchMethodError
  at

org.apache.catalina.session.StandardSession.setAttribute(StandardSession.jav
a:1185)

  at

org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)

  at

org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)

  at
 qti.object.Login.putSession(Login.java:572)




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Application configuration

2001-12-13 Thread Larry Isaacs

You still haven't indicated which version of Tomcat, so it
is hard to make specific recommendations.

For all 3.x and 4.x Tomcats, creating a subdirectory under
the webapps directory is the simplest way to bring a new
web application online.  Tomcat will automatically serve
these subdirectories without requiring config file changes.
You seem to have done this.

However, I can't tell much from I don't even reach the point
where Tomcat itself is running my application.  What
error is reported when you try to run a servlet?  What do
you see in the log files?

Cheers,
Larry

P.S. If you are not familar with the Servlet specs, you 
can download it from here:

http://java.sun.com/products/servlet/download.html

Tomcat 3.x implements Servlet 2.2, Tomcat 4.x implements
Servlet 2.3.

 -Original Message-
 From: Camara, Jose [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 12:27 PM
 To: 'Tomcat Users List'
 Subject: RE: Application configuration
 
 
 Thanks Larry,
 
 I don't even reach the point where Tomcat itself is running 
 my application.
 I guess I need to indicate Tomcat where and how to recognize 
 the classes for
 my application. Setting up my application in tomcat is the problem.
 
 Regards,
 
 Jose L. Camara
 
 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 4:58 AM
 To: 'Tomcat Users List'
 Subject: RE: Application configuration
 
 
 The configuration you show only lets Tomcat execute
 servlets.  All other content, Apache will try to serve
 directly.  Is this your intent?   It would also help
 to know which version of Tomcat 3.x you are using.
 (Note that Tomcat 3.3 does the best job of automating
 the connection to Apache.)
 
 In general, I would also recommend testing your web
 application first by accessing Tomcat directly.  If
 everything works okay, then try accessing through
 Apache.  A web.xml isn't required as long as you are
 happy with what Tomcat provides by default.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Camara, Jose [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 12, 2001 10:01 PM
  To: '[EMAIL PROTECTED]'
  Subject: Application configuration
  
  
  I think I reach that point where I need some help ... could 
  you subscribe me
  and help me with the following issue.
   
  Totally new in configuring applications to be deployed on tomcat:
  1) Apache and tomcat are running perfectly
  2) I created a directory to install my application (webapps/imr)
  3) Under that, I created META-INF, WEB-INF and servlets directories.
  4) I also modified tomcat-apache.conf as follows
   
  Alias /imr /home/jcamara/tomcat/webapps/imr
  Directory /home/jcamara/tomcat/webapps/imr
  Options Indexes FollowSymLinks
  /Directory
  ApJServMount /imr/servlet /imr
  Location /imr/WEB-INF/
  AllowOverride None
  deny from all
  /Location
  Location /imr/META-INF/
  AllowOverride None
  deny from all
  /Location  
   
  5) I'm starting to believe that I need to create a web.xml 
  file and I'm not
  sure how, probably I'll follow one of the examples.
  6) I can see the list of classes for my application under 
  that directory.
  7) Every time I'm trying to run the application it asked me 
  for download the
  application on IE and finally come with an error saying 
  Could not find the
  main class. Program will exit! on a Java Virtual Machine pop 
  up screen.
   
  I'm 100% sure that I'm missing something, so here are my questions:
  Q1: Do I need to create a web.xml file?
  Q2: Where should I put the jar files that my application need?
  Q3: How should I configure Tomcat in under to display correctly my
  application?
   
  Regards,
   
  
  Jose L. Camara
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat installer cannot find IBM JDK

2001-12-13 Thread Larry Isaacs

I believe the installer is only looking for registry keys
for Sun's JDK.

Larry

 -Original Message-
 From: Graham Leggett [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 12:10 PM
 To: Tomcat User
 Subject: Tomcat installer cannot find IBM JDK
 
 
 Hi all,
 
 I just installed the IBM JDK v1.3 on a Windows 98 SE machine, 
 then tried
 to install Tomcat v4.0.1 from the .exe installer.
 
 The installer complained that there was no JVM installed - when there
 was. No clue was given by the installer as to why it could 
 not find it,
 or where it was looking.
 
 Anyone else had a problem like this?
 
 Regards,
 Graham
 -- 
 -
 [EMAIL PROTECTED]  There's a moon
   over Bourbon Street
   tonight...

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: DecodeInterceptor Tomcat3.3

2001-12-13 Thread Bryan Pieper

Thank you.

On Thu, 13 Dec 2001, Larry Isaacs wrote:

 This is fixed in Tomcat 3.3.1 nightly.  For Tomcat 3.3,
 I believe setting debug=-1 on the DecodeInterceptor
 in server.xml will avoid the log output.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Bryan Pieper [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 13, 2001 12:20 PM
  To: [EMAIL PROTECTED]
  Subject: DecodeInterceptor Tomcat3.3
  
  
  
  In my jvm.stderr log, I keep getting:
  2001-12-13 11:19:00 - DecodeInterceptor: Charset from session 
  ISO-8859-1
  2001-12-13 11:19:02 - DecodeInterceptor: Charset from session 
  ISO-8859-1
  2001-12-13 11:19:05 - DecodeInterceptor: Charset from session 
  ISO-8859-1
  
  What is causing this and how do I fix it?
  
  Thanks.
  
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3, Apache 1.3.22, and Windows NT

2001-12-13 Thread Adi Naren

Thanks, folks,

I got them working today morning!!

ApacheModuleJServ.dll was not there in either %APACHE_HOME%\modules or 
%TOMCAT_HOME%\modules folder.

another reason is:
I gave the wrong path of tomcat.conf file


One guy was telling me that Tomcat does not work on WINDOWS!! Isn't that 
ridiculous?? LOL!!

Rider for newbies:
If apache and tomcat can start on your machines independently:

1) If tomcat does not start after starting tomcat, please check for the 
presence of the module mentioned above.

2) Please disable appropriate comments in tomcat.conf for loading the above 
module. (Comment the Unix part and uncomment the Windows part)

i.e. LoadModule jserv_module modules/ApacheModuleJServ.dll
should be used instead of
LoadModule jserv_module libexec/mod_jserv.so

later, folks.
Naren
From: Larry Isaacs [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Tomcat 3.3, Apache 1.3.22, and Windows NT
Date: Thu, 13 Dec 2001 07:45:51 -0500

Which version of Apache?  I think there was one version
that wasn't happy with back slashes '\'.  You could try
forward slashes '/'.

Larry

  -Original Message-
  From: Adi Naren [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 12, 2001 8:01 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 3.3, Apache 1.3.22, and Windows NT
 
 
  Hi,
 
  After configuring the necessary files in TOMCAT_HOME/conf and
  TOMCAT_HOME/webapps, I was able to start TOMCAT. Apache also
  runs fine when
  working alone.  WHen I try to integrate the two on Windows
  NT, apache does
  not start and comes with an error,
 
  ...unable to find tomcat.conf...
 
  of course, there is an Include directive in apache's httpd.conf and
  started Tomcat ahead of Apache.
 
  The include statement is as follows:
 
  Include D:\jakarata-tomcat-3.3\conf\jserv\tomcat.conf
 
  upon checking the folder, the file exists.
 
  Is there anything I am missing? Will appreciate your feedback.
 
  Looking forward to hearing from you,
 
  rgds,
 
  Naren
 
 
  _
  Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Also having trouble starting Tomcat 4.0

2001-12-13 Thread Michael Armstrong

I'm getting the same disappearing DOS window, too, when starting Tomcat 4.0.
Funny thing is that I had been successfully running Tomcat 3.2.3 recently in
the past.  Now that I've downloaded JDK 1.3.1_01 (successfully, too) and
Tomcat 4.0 (successfully, also-- not 4.01) and have updated my environment
variables:

JAVA_HOME = c:\jdk1.3.1_01

TOMCAT_HOME = my tomcat 4.0 directory (no referenec anywhere here to the
old tomcat3.2.3 directory)

CATALINA_HOME = my tomcat 4.0 directory

PATH= c:\JDK1.3.1_01\bin

It appears that Tomcat can't start my JDK bin files, I keep getting a
Bad command or file name error message when I startup Tomcat 4.0 command.
I tried editing JAVA_HOME to the old JKD1.3 directory (which worked in
Tomcat 3.2.3) but still keep getting the same error message.
I'm stumped.  Any and all replies are greatly appreciated.


- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 6:13 AM
Subject: RE: GETTING STARTED WITH TOMCAT


 The window that is opening and closing is the Tomcat window.  This window
 should stay open, that is where you will see any messages written to
 System.out or System.err.  Try starting it like this:
 tomcat.bat run
 This will cause Tomcat to start in the current window.  You should then be
 able to see any error messages generated by Tomcat.  Let us know what
these
 messages say.

 Jim


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 8:00 AM
 To: [EMAIL PROTECTED]
 Subject: GETTING STARTED WITH TOMCAT


 hi
 i'm new to servlets and JSP ...well i have installed tomcat in C:\tomcat
 and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1

 when i try to start the tomcat from MS-DOS from bin subdirectory a new
 window starts and disappears...(I Think this is what it should behave
 like!!) BUT the problem is that when i try to test whether tomcat is
working
 its not finding http://localhost:8080

 please help me out so i can proceed further.

 regards
 vivek
 --




 __
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with Shop@Netscape!
 http://shopnow.netscape.com/

 Get your own FREE, personal Netscape Mail account today at
 http://webmail.netscape.com/


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Also having trouble starting Tomcat 4.0

2001-12-13 Thread Arvind Gudipati


Turn the echo on in your catalina.bat to see what exactly is the command
that it is trying to run...

Also if u want to run tomcat in the same window then use the command
   catalina.bat run
instead of 
   catalina.bat start

run option, would not run tomcat in a new DOS window

Arvind


-Original Message-
From: Michael Armstrong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 3:34 PM
To: Tomcat Users List
Subject: Also having trouble starting Tomcat 4.0 


I'm getting the same disappearing DOS window, too, when starting Tomcat 4.0.
Funny thing is that I had been successfully running Tomcat 3.2.3 recently in
the past.  Now that I've downloaded JDK 1.3.1_01 (successfully, too) and
Tomcat 4.0 (successfully, also-- not 4.01) and have updated my environment
variables:

JAVA_HOME = c:\jdk1.3.1_01

TOMCAT_HOME = my tomcat 4.0 directory (no referenec anywhere here to the
old tomcat3.2.3 directory)

CATALINA_HOME = my tomcat 4.0 directory

PATH= c:\JDK1.3.1_01\bin

It appears that Tomcat can't start my JDK bin files, I keep getting a
Bad command or file name error message when I startup Tomcat 4.0 command.
I tried editing JAVA_HOME to the old JKD1.3 directory (which worked in
Tomcat 3.2.3) but still keep getting the same error message.
I'm stumped.  Any and all replies are greatly appreciated.


- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 6:13 AM
Subject: RE: GETTING STARTED WITH TOMCAT


 The window that is opening and closing is the Tomcat window.  This window
 should stay open, that is where you will see any messages written to
 System.out or System.err.  Try starting it like this:
 tomcat.bat run
 This will cause Tomcat to start in the current window.  You should then be
 able to see any error messages generated by Tomcat.  Let us know what
these
 messages say.

 Jim


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 8:00 AM
 To: [EMAIL PROTECTED]
 Subject: GETTING STARTED WITH TOMCAT


 hi
 i'm new to servlets and JSP ...well i have installed tomcat in C:\tomcat
 and have set the JAVA_HOME in tomcat\bin\tomcat.bat to C:\jdk1.3.1

 when i try to start the tomcat from MS-DOS from bin subdirectory a new
 window starts and disappears...(I Think this is what it should behave
 like!!) BUT the problem is that when i try to test whether tomcat is
working
 its not finding http://localhost:8080

 please help me out so i can proceed further.

 regards
 vivek
 --




 __
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with Shop@Netscape!
 http://shopnow.netscape.com/

 Get your own FREE, personal Netscape Mail account today at
 http://webmail.netscape.com/


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
CONFIDENTIALITY NOTICE:  E-mail may contain confidential information that is
legally protected.  Do not read this e-mail if you are not the intended
recipient. This e-mail transmission, and any documents, files or previous
e-mail messages  attached to it may contain confidential information that is
legally protected.  If you are not the intended recipient or a person
responsible for delivering it to the intended recipient,  you are hereby
notified that any disclosure, copying, distribution or use of any of the
information contained in or attached to this transmission is STRICTLY
PROHIBITED.  If you have received this transmission in error, please
immediately notify us by reply e-mail, by forwarding this to
[EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy the
original transmission and its attachments without reading or saving in any
manner.  Thank you.  For information about PANACYA Inc., please visit our
website at http://www.panacya.com.



problem

2001-12-13 Thread eduardo pasquotto orsolini

the problem is
how to create users in tomcat I said in TomCat(last version) don't send
me things from apache
and how to restricte user in directories
exemple user test
only can access directory testes

ok ???
thanks all


Eduardo Pasquotto Orsolini

  ICQ 51674157

 Linux User  211708  


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Craig R. McClanahan



On Thu, 13 Dec 2001, Richard S. Huntrods wrote:

 Date: Thu, 13 Dec 2001 10:05:31 -0700
 From: Richard S. Huntrods [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Subject: Try a different approach - What's wrong with catalina.session???

 Greetings!

 Let's try this again.  From the error message below, it would appear
 that there is something WRONG with
 org.apache.catalina.session.StandardSession.  Note from the error that
 we get a java.lang.NoSuchMethodError - the method does not exist.


This kind of problem indicates that your Tomcat installation is somehow
corrupted.  If it were really a bug, it would be happening to everyone,
not just to you.

I suggest that you do the following:

* Make sure you do not have anything in $JAVA_HOME/jre/lib/ext
  (most *especially* not things like servlet.jar or j2ee.jar,
  which are *guaranteed* to cause nothing but grief)

* Do a clean installation of Tomcat 4 into a new directory.

* Make sure that all the examples work (including the ones that
  use sessions)

* Install your applications and test.

Craig McClanahan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Eclipse IDE

2001-12-13 Thread brian_ciccolo

I have been evaluating the new Eclipse IDE (http://www.eclipse.org) and
trying to get it to debug my servlets running in Tomcat. One of the quirks
about the Eclipse IDE is that it doesn't allow me to specify a build folder
outside of the project hierarchy (so I can't post my classes to the webapps
folder in Tomcat). One of the suggestions from Eclipse users was to develop
my source directly in the webapps folder, but this violates the separation
of source and deployment
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/source.html).

I was wondering if anyone has experience integrating Eclipse with Tomcat
and what directory structure they're using.

Thanks.

- Brian


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Eclipse IDE (Off Subject)

2001-12-13 Thread John M. Corro

Off subject...what do you think of the new IDE?

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 11:12 AM
Subject: Eclipse IDE


 I have been evaluating the new Eclipse IDE (http://www.eclipse.org) and
 trying to get it to debug my servlets running in Tomcat. One of the quirks
 about the Eclipse IDE is that it doesn't allow me to specify a build
folder
 outside of the project hierarchy (so I can't post my classes to the
webapps
 folder in Tomcat). One of the suggestions from Eclipse users was to
develop
 my source directly in the webapps folder, but this violates the separation
 of source and deployment
 (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/source.html).

 I was wondering if anyone has experience integrating Eclipse with Tomcat
 and what directory structure they're using.

 Thanks.

 - Brian


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Eclipse IDE

2001-12-13 Thread Reto Badertscher

Hello,

give IntelliJ' idea a try (www.intellij.com).

Reto
-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. Dezember 2001 20:12
An: [EMAIL PROTECTED]
Betreff: Eclipse IDE


I have been evaluating the new Eclipse IDE (http://www.eclipse.org) and
trying to get it to debug my servlets running in Tomcat. One of the quirks
about the Eclipse IDE is that it doesn't allow me to specify a build folder
outside of the project hierarchy (so I can't post my classes to the webapps
folder in Tomcat). One of the suggestions from Eclipse users was to develop
my source directly in the webapps folder, but this violates the separation
of source and deployment
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/source.html).

I was wondering if anyone has experience integrating Eclipse with Tomcat
and what directory structure they're using.

Thanks.

- Brian


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AIX: SAXException, File not found

2001-12-13 Thread Dirk . Eschner

Hello,

when I try to start Tomcat4 at an AIX machine i get the following exception
(catalina.out):

/usr/java130/jre/bin/java -classpath ./../bin/bootstrap.jar -Dcatalina.base
=./.. -Dcatalina.home=./.. org.apache.catalina.startup.Bootstrap start
PARSE error at line 0 column 0 of
/home/sdfref/des/jakarta-tomcat-4.0.1/bin/./../conf/server.xml
org.xml.sax.SAXParseException: File
file:/home/sdfref/des/jakarta-tomcat-4.0.1/bin/./../conf/server.xml not
found.
Catalina.start: org.xml.sax.SAXParseException: File
file:/home/sdfref/des/jakarta-tomcat-4.0.1/bin/./../conf/server.xml not
found.
org.xml.sax.SAXParseException: File
file:/home/sdfref/des/jakarta-tomcat-4.0.1/bin/./../conf/server.xml not
found.
 at java.lang.Exception.init(Exception.java:44)
 at org.xml.sax.SAXException.init(SAXException.java:45)
 at org.xml.sax.SAXParseException.init(SAXParseException.java:56)
 at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1202)
 at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:512)
 at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080)
 at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:290)
 at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Is the SAX-API not able to solve the path information of the URL? Or is the
JDK responsible for this behaviour?
I wrote a simple test class using the URL class and I was able to access
this file. Any suggestions?

Thanks
Dirk


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: web.xml file confusion

2001-12-13 Thread Craig R. McClanahan



On Thu, 13 Dec 2001, Purcell, Scott wrote:

 Date: Thu, 13 Dec 2001 13:34:18 -0600
 From: Purcell, Scott [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: web.xml file confusion

 Hello,
 I am working out of Martys book on Servlets, and there is an example of
 using the init block to get some parameters from the web.xml file.
 When I searched for web.xml to find it, I found one in about each directory.
 I do not think that is right. Where should the web.xml file live?

 Also, Is there a way to find out (print out possibly) the parameters so I
 can see what is being read? I am asking this, because I have added the
 following snippet to my web.xml file, but the code below does NOT read those
 params. I am confused by this, and could use some assistance.


There should be a web.xml file for each web application (in a WEB-INF
subdirectory), because each application is independent of the others.

The basic rules for what web.xml is all about are spelled out in the
Servlet Specificaiton, which you can download at:

  http://java.sun.com/products/servlet/download.html

(although I suspect that reading the book's discussion about web.xml would
also probably help you understand it better :-).


 Thanks
 Scott



 // here is part of my web.xml file The file I am running and compiles
 properly is in a package called cwp.ShowMessage. I thought all looks good,
 but maybe a second set of eyes may help.


 web-app

  servlet
   servlet-nameShowMessage/servlet-name
   servlet-classcwp.ShowMessage/servlet-class
 init-param
   param-namemessage/param-name
 param-valueAlert FM/param-value
 /init-param
   init-param
 param-namerepeats/param-name
 param-value20/param-value
   /init-param
 /servlet


  servlet
   servlet-nameShowMessage/servlet-name
   servlet-classcoreservlets.ShowMessage/servlet-class
 init-param
   param-namemessage/param-name
 param-valueAlert FM/param-value
 /init-param
   init-param
 param-namerepeats/param-name
 param-value20/param-value
   /init-param
 /servlet



 // part of my class to go get the web.xml parameters message and repeats.
 public class ShowMessage extends HttpServlet {

  private String message;
  private String defaultMessage= No Messages Today;
  private int repeats = 1;

  public void init() throws ServletException {
  ServletConfig config = getServletConfig();
  message = config.getInitParameter(message);
  if (message == null) {
  message= defaultMessage;
  }

  try {
  String repeatString = config.getInitParameter(repeats);
  repeats = Integer.parseInt(repeatString);
  } catch (NumberFormatException nfe) {
  }
  }



The missing link is that you need to use a servlet-mapping to connect a
particular request URL to the servlet definition, then use that URL to
request the servlet's output.

 Scott Purcell


Craig McClanahan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




DataSource and Pooled Connection

2001-12-13 Thread christophe marcourt

I have a stupid question ?

in the JNDI tomcat how to, it says :

The J2EE Platform Specification requires J2EE Application Servers to make available a 
DataSource implementation (that is, a connection pool for JDBC connections) for this 
purpose. Tomcat 4 offers exactly the same support


Do I understand right ?
A DataSource retrieve by JNDI in tomcat 4.0.1 is a Pooled Connection ?

Christophe



Re: DataSource and Pooled Connection

2001-12-13 Thread Mark

At 09:07 PM 12/13/2001 +0100, you wrote:
I have a stupid question ?

in the JNDI tomcat how to, it says :

The J2EE Platform Specification requires J2EE Application Servers to make
available a DataSource implementation (that is, a connection pool for JDBC
connections) for this purpose. Tomcat 4 offers exactly the same support


Do I understand right ?
A DataSource retrieve by JNDI in tomcat 4.0.1 is a Pooled Connection ?

Christophe


I've been messing with pooled connections and JNDI this week.  Unless
Tomcat is different somehow, JNDI won't give you a pooled connection via
DataSource.  You'll need to get a PooledConnection using a
ConnectionPoolDataSource as I understand it, and according to the various
information I've been researching.  See here for info from Sun:

http://developer.java.sun.com/developer/technicalArticles/J2EE/pooling




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: web.xml file confusion

2001-12-13 Thread Purcell, Scott

Thanks Craig,
I think my issue is registering the servlet. I cannot seem to find how to do
that. How do I register a servlet with the server?

thanks
Scott



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 1:51 PM
To: Tomcat Users List
Subject: Re: web.xml file confusion




On Thu, 13 Dec 2001, Purcell, Scott wrote:

 Date: Thu, 13 Dec 2001 13:34:18 -0600
 From: Purcell, Scott [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: web.xml file confusion

 Hello,
 I am working out of Martys book on Servlets, and there is an example of
 using the init block to get some parameters from the web.xml file.
 When I searched for web.xml to find it, I found one in about each
directory.
 I do not think that is right. Where should the web.xml file live?

 Also, Is there a way to find out (print out possibly) the parameters so I
 can see what is being read? I am asking this, because I have added the
 following snippet to my web.xml file, but the code below does NOT read
those
 params. I am confused by this, and could use some assistance.


There should be a web.xml file for each web application (in a WEB-INF
subdirectory), because each application is independent of the others.

The basic rules for what web.xml is all about are spelled out in the
Servlet Specificaiton, which you can download at:

  http://java.sun.com/products/servlet/download.html

(although I suspect that reading the book's discussion about web.xml would
also probably help you understand it better :-).


 Thanks
 Scott



 // here is part of my web.xml file The file I am running and compiles
 properly is in a package called cwp.ShowMessage. I thought all looks good,
 but maybe a second set of eyes may help.


 web-app

  servlet
   servlet-nameShowMessage/servlet-name
   servlet-classcwp.ShowMessage/servlet-class
 init-param
   param-namemessage/param-name
 param-valueAlert FM/param-value
 /init-param
   init-param
 param-namerepeats/param-name
 param-value20/param-value
   /init-param
 /servlet


  servlet
   servlet-nameShowMessage/servlet-name
   servlet-classcoreservlets.ShowMessage/servlet-class
 init-param
   param-namemessage/param-name
 param-valueAlert FM/param-value
 /init-param
   init-param
 param-namerepeats/param-name
 param-value20/param-value
   /init-param
 /servlet



 // part of my class to go get the web.xml parameters message and repeats.
 public class ShowMessage extends HttpServlet {

  private String message;
  private String defaultMessage= No Messages Today;
  private int repeats = 1;

  public void init() throws ServletException {
  ServletConfig config = getServletConfig();
  message = config.getInitParameter(message);
  if (message == null) {
  message= defaultMessage;
  }

  try {
  String repeatString = config.getInitParameter(repeats);
  repeats = Integer.parseInt(repeatString);
  } catch (NumberFormatException nfe) {
  }
  }



The missing link is that you need to use a servlet-mapping to connect a
particular request URL to the servlet definition, then use that URL to
request the servlet's output.

 Scott Purcell


Craig McClanahan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: DataSource and Pooled Connection

2001-12-13 Thread christophe marcourt

thanks.

I've already read that.
So I do a ConnectionPoolDataSource with the use of JNDI in tomcat...
As simple as that ?

Christophe

- Original Message -
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 9:20 PM
Subject: Re: DataSource and Pooled Connection


 At 09:07 PM 12/13/2001 +0100, you wrote:
 I have a stupid question ?
 
 in the JNDI tomcat how to, it says :
 
 The J2EE Platform Specification requires J2EE Application Servers to make
 available a DataSource implementation (that is, a connection pool for JDBC
 connections) for this purpose. Tomcat 4 offers exactly the same support
 
 
 Do I understand right ?
 A DataSource retrieve by JNDI in tomcat 4.0.1 is a Pooled Connection ?
 
 Christophe
 

 I've been messing with pooled connections and JNDI this week.  Unless
 Tomcat is different somehow, JNDI won't give you a pooled connection via
 DataSource.  You'll need to get a PooledConnection using a
 ConnectionPoolDataSource as I understand it, and according to the various
 information I've been researching.  See here for info from Sun:

 http://developer.java.sun.com/developer/technicalArticles/J2EE/pooling




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Working fine now . .

2001-12-13 Thread Michael Armstrong


Thanks for all your help.  Tomcat 4.0 seems to be working fine now.  On
to more coding . . .

Well, crap!  My problem was my own stupid coding oversite: incorrect
assignement statements in my autoexec.bat file.



- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 10:52 AM
Subject: Re: Try a different approach - What's wrong with
catalina.session???




 On Thu, 13 Dec 2001, Richard S. Huntrods wrote:

  Date: Thu, 13 Dec 2001 10:05:31 -0700
  From: Richard S. Huntrods [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED] [EMAIL PROTECTED]
  Subject: Try a different approach - What's wrong with
catalina.session???
 
  Greetings!
 
  Let's try this again.  From the error message below, it would appear
  that there is something WRONG with
  org.apache.catalina.session.StandardSession.  Note from the error that
  we get a java.lang.NoSuchMethodError - the method does not exist.
 

 This kind of problem indicates that your Tomcat installation is somehow
 corrupted.  If it were really a bug, it would be happening to everyone,
 not just to you.

 I suggest that you do the following:

 * Make sure you do not have anything in $JAVA_HOME/jre/lib/ext
   (most *especially* not things like servlet.jar or j2ee.jar,
   which are *guaranteed* to cause nothing but grief)

 * Do a clean installation of Tomcat 4 into a new directory.

 * Make sure that all the examples work (including the ones that
   use sessions)

 * Install your applications and test.

 Craig McClanahan


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




web.inf still need help ... Please

2001-12-13 Thread Purcell, Scott

I am still lost with the web.inf file.
All I want to do is run an example of using the init() to get one time start
up initializers into a servlet.
I am on tomcat 3.2 and all seems to run fine.
I have a basic install and I am just using my localhost. I am learning how
to do JSP and Servlets.

My install is: D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT
My Classes are:
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\WEB-INF\classes
and I created a package called cwp in the classes dir.

All my classpaths are set and all runs great. I just cannot get the
following code to work. According to my book, this should go to the
...\WEB-INF directory and read the web.xml file (shown below) and get
parameters. But I have been jacking with this for hours and I am getting
frustrated. Can someone assist me with what I may be doing wrong? Do I need
to register something else? Or is the web.xml file all that needs to be
updated? 
Is there a way to find out where the getServletConfig() is looking? That may
help with this mess also.

Here is my class:

package cwp;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;

public class ShowMessage extends HttpServlet {

 private String message;
 private String defaultMessage= No Messages Today2;
 private int repeats = 1;
 private String stuff;
 
  public void init() throws ServletException { 
 ServletConfig config = getServletConfig(); // suposed to go read
the web.xml file but it does not.
 message = config.getInitParameter(message);
 }
 
 public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
 
response.setContentType(text/html);
PrintWriter out = response.getWriter();
String title = The ShowMessage Servlet;
out.println(ServletUtilities.headWithTitle(title) +
BODY BGCOLOR=\#FdF5E6\\n +
H1 ALIGN=\CENTER\ + title + /H1);
for (int i=0; irepeats; i++) {
out.println(B + message + /BBR + stuff);
}
out.println(/BODY/HTML\n);
 }
}

here is my web.xml file
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;



web-app
servlet
servlet-nameShowMsg/servlet-name
servlet-classcwp.ShowMessage/servlet-class
init-param
param-namemessage/param-name
param-valuefm/param-value
/init-param
init-param
param-namerepeats/param-name
param-value5/param-value
/init-param
/servlet
/web-app


Scott Purcell


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: somebody trying hack me, what they really wanted?

2001-12-13 Thread Dr. Evil


I get those all the time.  I wish I could put a sign on my computer
that says, You're wasting your time.  This machine is running
Tomcat/Linux.  Find someone running Windows.  On a more serious note,
this is a computer hacking attack, and it comes accross state lines.
Could I get the FBI to investigate these things?  I'm sure this is a
Federal crime.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: somebody trying hack me, what they really wanted?

2001-12-13 Thread Brian Adams

HA! your funny!  FBI stop building your Magic Lantern and come find the poor
sap that is trying to hack my free software nothing invested but time server
sitting in my broadband closet! 
Ya Right!

-Original Message-
From: Dr. Evil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: somebody trying hack me, what they really wanted?



I get those all the time.  I wish I could put a sign on my computer
that says, You're wasting your time.  This machine is running
Tomcat/Linux.  Find someone running Windows.  On a more serious note,
this is a computer hacking attack, and it comes accross state lines.
Could I get the FBI to investigate these things?  I'm sure this is a
Federal crime.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: web.inf still need help ... Please

2001-12-13 Thread Larry Isaacs

Note that http://localhost:8080/servlet/cwp.ShowMessage
will not see the init parameter since the invoker servlet
(i.e. /servlet) is not part of the Servlet spec.  You
should include a servlet-mapping in the web.xml and
invoke the servlet using the url-pattern specified.  Then
the servlet should see the init parameters.

Cheers,
Larry


 -Original Message-
 From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 3:48 PM
 To: '[EMAIL PROTECTED]'
 Subject: web.inf still need help ... Please
 
 
 I am still lost with the web.inf file.
 All I want to do is run an example of using the init() to get 
 one time start
 up initializers into a servlet.
 I am on tomcat 3.2 and all seems to run fine.
 I have a basic install and I am just using my localhost. I am 
 learning how
 to do JSP and Servlets.
 
 My install is: D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT
 My Classes are:
 D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\WEB-INF\classes
 and I created a package called cwp in the classes dir.
 
 All my classpaths are set and all runs great. I just cannot get the
 following code to work. According to my book, this should go to the
 ...\WEB-INF directory and read the web.xml file (shown below) and get
 parameters. But I have been jacking with this for hours and I 
 am getting
 frustrated. Can someone assist me with what I may be doing 
 wrong? Do I need
 to register something else? Or is the web.xml file all that 
 needs to be
 updated? 
 Is there a way to find out where the getServletConfig() is 
 looking? That may
 help with this mess also.
 
 Here is my class:
 
 package cwp;
 
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.util.*;
 
 public class ShowMessage extends HttpServlet {
 
  private String message;
  private String defaultMessage= No Messages Today2;
  private int repeats = 1;
  private String stuff;
  
   public void init() throws ServletException { 
  ServletConfig config = getServletConfig(); // 
 suposed to go read
 the web.xml file but it does not.
  message = config.getInitParameter(message);
  }
  
  public void doGet(HttpServletRequest request, HttpServletResponse
 response) throws ServletException, IOException {
  
 response.setContentType(text/html);
 PrintWriter out = response.getWriter();
 String title = The ShowMessage Servlet;
 out.println(ServletUtilities.headWithTitle(title) +
 BODY BGCOLOR=\#FdF5E6\\n +
 H1 ALIGN=\CENTER\ + title + /H1);
 for (int i=0; irepeats; i++) {
 out.println(B + message + /BBR + stuff);
 }
 out.println(/BODY/HTML\n);
  }
 }
 
 here is my web.xml file
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
 
 
 
 web-app
 servlet
 servlet-nameShowMsg/servlet-name
 servlet-classcwp.ShowMessage/servlet-class
 init-param
 param-namemessage/param-name
 param-valuefm/param-value
 /init-param
 init-param
 param-namerepeats/param-name
 param-value5/param-value
 /init-param
 /servlet
 /web-app
 
 
 Scott Purcell
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mod_jk build fail tomcat 3.3 apache 1.3.22

2001-12-13 Thread Adam Paeth

Before I begin I did search the maillist archive and didn't see anyone 
have this specific problem yet...

I'm trying to build mod_jk on Solaris 8.
I've got apache w/ mod_ssl installed.
I've got tomcat 3.3 installed just fine.
apache and tomcat have tested just fine independent on one another.

When I run 'sh build-solaris.sh' it fails with the following:

gcc -DSOLARIS -DUSE_EXPAT -I../lib/expat-lite  
-I/opt/local/apache/include -I../common -I/usr/java/include 
-I/usr/java/include/solaris  -c mod_jk.c
  -o mod_jk.so mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o 
jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o 
jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o 
jk_ajp12_worker.o -lposix4
apxs:Break: Command failed with rc=16777215
Error with apxs

I've read that most errors occur because of a mis-configured apxs script 
due to using a binary dist of apache.  However, apache along with the 
rest of my apps have been build from source.

any help is appreciated.

Thanks,
Adam Paeth



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: web.inf still need help ... Please

2001-12-13 Thread Purcell, Scott

Thanks Larry,
Now I have something to try.

I will get on it asap.

Thanks
Scott

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 3:05 PM
To: 'Tomcat Users List'
Subject: RE: web.inf still need help ... Please


Note that http://localhost:8080/servlet/cwp.ShowMessage
will not see the init parameter since the invoker servlet
(i.e. /servlet) is not part of the Servlet spec.  You
should include a servlet-mapping in the web.xml and
invoke the servlet using the url-pattern specified.  Then
the servlet should see the init parameters.

Cheers,
Larry


 -Original Message-
 From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 3:48 PM
 To: '[EMAIL PROTECTED]'
 Subject: web.inf still need help ... Please
 
 
 I am still lost with the web.inf file.
 All I want to do is run an example of using the init() to get 
 one time start
 up initializers into a servlet.
 I am on tomcat 3.2 and all seems to run fine.
 I have a basic install and I am just using my localhost. I am 
 learning how
 to do JSP and Servlets.
 
 My install is: D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT
 My Classes are:
 D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\WEB-INF\classes
 and I created a package called cwp in the classes dir.
 
 All my classpaths are set and all runs great. I just cannot get the
 following code to work. According to my book, this should go to the
 ...\WEB-INF directory and read the web.xml file (shown below) and get
 parameters. But I have been jacking with this for hours and I 
 am getting
 frustrated. Can someone assist me with what I may be doing 
 wrong? Do I need
 to register something else? Or is the web.xml file all that 
 needs to be
 updated? 
 Is there a way to find out where the getServletConfig() is 
 looking? That may
 help with this mess also.
 
 Here is my class:
 
 package cwp;
 
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.util.*;
 
 public class ShowMessage extends HttpServlet {
 
  private String message;
  private String defaultMessage= No Messages Today2;
  private int repeats = 1;
  private String stuff;
  
   public void init() throws ServletException { 
  ServletConfig config = getServletConfig(); // 
 suposed to go read
 the web.xml file but it does not.
  message = config.getInitParameter(message);
  }
  
  public void doGet(HttpServletRequest request, HttpServletResponse
 response) throws ServletException, IOException {
  
 response.setContentType(text/html);
 PrintWriter out = response.getWriter();
 String title = The ShowMessage Servlet;
 out.println(ServletUtilities.headWithTitle(title) +
 BODY BGCOLOR=\#FdF5E6\\n +
 H1 ALIGN=\CENTER\ + title + /H1);
 for (int i=0; irepeats; i++) {
 out.println(B + message + /BBR + stuff);
 }
 out.println(/BODY/HTML\n);
  }
 }
 
 here is my web.xml file
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
 
 
 
 web-app
 servlet
 servlet-nameShowMsg/servlet-name
 servlet-classcwp.ShowMessage/servlet-class
 init-param
 param-namemessage/param-name
 param-valuefm/param-value
 /init-param
 init-param
 param-namerepeats/param-name
 param-value5/param-value
 /init-param
 /servlet
 /web-app
 
 
 Scott Purcell
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




  1   2   >