PJA Toolkit and Tomcat

2002-06-08 Thread Steve Kuo

I'm trying configure PJA Toolkit 2.4 with Tomcat 4.0.3
(running under Windows 2000).  In addition to making
pja.jar accessible, I need to apply the following
parameters to the java command line (or equivalent):

-Xbootclasspath/a:pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava2d.font.usePlatformFont=false

I'm not sure where to place this within Tomcat.  I've
tried placing these parameters in the environment
variable JAVA_OPTS (per the catalina.bat file
instructions) without success.

Has anyone gotten PJA Toolkit to work with Tomcat 4?

Thanks, Steve


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




how can I close a session

2002-06-08 Thread Anibal Constante Brito

how can I close a session in JSP?

or something like this. to desconect the user, that the user have to log
again.

Best Regards.
Owen.


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




Re: /etc/profile :Urgent

2002-06-08 Thread Nikola Milutinovic

Galbayar wrote:

 Hello I'm changed etc/profile file.
 after reboot Linux linux could not start
 how to solve this?

That should have nothing to do with Linux startup. ?etc/profile is a global 
login script for Bourne-class shells. Linux should boot, but you might be 
banned from logging in.

The solution is to boot to single user mode and repair the file.

Nix.


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




Configuration problem

2002-06-08 Thread P.V.Sankar


Hello,
  I have installed tomcat 4.0.3 on my solaris system,and copied the binary
mod_webapp.so to $APACHE_HOME/libexec.I updated the neccessary
parameters in httpd.conf like:

LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
   
IfModule mod_webapp.c
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy examplesconn  /examples
 WebAppInfo /webapp-info
/IfModule

But when i tested httpd.conf by typing 
$APACHE_HOME/bin apachectl configtest
it is giving the following error message

Syntax error on line 202 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule' , perhaps mis-spelled or defined by a module
not included in the server configuration.

I have followed the same  instructions given  in INSTALL.txt and
README.txt files in the tomcat package.

Can somebody  help me in solving this problem.

Thanks  Regards,
Sankar







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




RE: how can I close a session

2002-06-08 Thread Dennis van den Berg

Try

session.invalidate();

Dennis.

-Original Message-
From: Anibal Constante Brito [mailto:[EMAIL PROTECTED]]
Sent: zaterdag 8 juni 2002 10:06
To: Tomcat
Subject: how can I close a session


how can I close a session in JSP?

or something like this. to desconect the user, that the user have to log
again.

Best Regards.
Owen.


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



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




RE: Newbie help

2002-06-08 Thread Dennis van den Berg

One important difference would be that tomcat does not implement an
EJB-container.

Dennis.

-Original Message-
From: Srinivas N. Battula [mailto:[EMAIL PROTECTED]]On Behalf Of sbattul
Sent: zaterdag 8 juni 2002 0:39
To: [EMAIL PROTECTED]
Subject: Newbie help


Hi all,

Can any one tell me the difference between an Application server such as

 IBM websphere and Tomcat.I want to know what IBM websphere can do that
Tomcat

 cant do and what Tomcat can do and IBM web sphere cant do.

Thanks
Srinivas



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



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




RE: secure aplications with JDBCRealm

2002-06-08 Thread Dennis van den Berg

Just to be sure, probably did that already.

Did you set put the MySQL dirver in your classpath?
For example in the /lib dir of tomcat?

Dennis.

-Original Message-
From: Urtzi Larrazabal [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 7 juni 2002 12:41
To: Tomcat Users List (E-mail)
Subject: secure aplications with JDBCRealm



Hi !

I am trying to secure my application thought JDBCRealm



# 2002-06-07 12:24:05 - Ctx(/Myaplication) : Exception in R( /Myaplication +
+ null) - java.lang.RuntimeException: JDBCRealm.checkConnection:
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at
org.apache.tomcat.modules.aaa.JDBCRealm.checkConnection(JDBCRealm.java:307)
at
org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(JDBCRealm.java:239)
at
org.apache.tomcat.modules.aaa.RealmBase.checkPassword(RealmBase.java:212)
at
org.apache.tomcat.modules.aaa.RealmBase.authenticate(RealmBase.java:193)
at org.apache.tomcat.core.Request.getRemoteUser(Request.java:575)
at
org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(AccessInterceptor.
java:359)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:90
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:341)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:479)



server.xml

JDBCRealm
debug=99
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://myhost.dec.es/tomcat
userTable=user
userNameCol=user_name
userCredCol=user_pass
userRoleTable=user_roles
roleNameCol=role_name /


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



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




changing Tomcat's Document Root

2002-06-08 Thread Chris Ruegger

I want to deploy a web app to an arbitrary directory on my machine that is
*not* under the Tomcat installation directory. What is the proper way to
do this? Is it by setting CATALINA_BASE to the directory before I start
Tomcat? Is there a doc out there that describes how to to this?
Thanks,
Chris




Re: changing Tomcat's Document Root

2002-06-08 Thread Markus Kirsten

Hi Chris,
Just set the docBase attribute for that particular webapp context to 
your arbitrary directory.

Hope this helps!


Markus

On lördag, juni 8, 2002, at 02:46 , Chris Ruegger wrote:

 I want to deploy a web app to an arbitrary directory on my machine that 
 is
 *not* under the Tomcat installation directory. What is the proper way to
 do this? Is it by setting CATALINA_BASE to the directory before I start
 Tomcat? Is there a doc out there that describes how to to this?
 Thanks,
 Chris



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




Re: Tomcat 4.0.3 Apache 1.3.x and Mod_WebApp on MacOSX (unpackWAR mod_webapp)

2002-06-08 Thread Alexander Hartner

Thanks. I played with this a little bit, and i got it working with


Context path=/XyloWeb.war docBase=XyloWeb.war debug=0 
reloadable=true/

and

WebAppDeploy XyloWeb.war conn /XyloWeb

Thanks
Alex

On Thursday, June 6, 2002, at 08:34 PM, Pier Fumagalli wrote:

 Alexander Hartner [EMAIL PROTECTED] wrote:

 Apologies. I have added the following to httpd.conf

 #Adding Web application in Tomcat 4.0.3
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy ROOT  conn  /tomcat
 WebAppDeploy examples  conn  /tomcat/examples
 WebAppDeploy manager  conn  /tomcat/manager
 WebAppDeploy webdav  conn  /tomcat/webdav
 WebAppDeploy tomcat-docs  conn  /tomcat/tomcat-docs
 WebAppDeploy XyloWeb conn /XyloWeb

 This is wrong

 WebAppDeploy XyloWeb conn /XyloWeb.war - or wherever this file 
 is...

 Pier

 --
 [Perl] combines all the worst aspects of C and Lisp:  a billion of 
 different
 sublanguages in  one monolithic executable.  It combines the power of C 
 with
 the readability of PostScript. [Jamie Zawinski - DNA Lounge - San 
 Francisco]


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



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




context param is null outside doGet

2002-06-08 Thread Mike Millson

Why is it that context parameters are null outside the doGet block of a
servlet?

For example, suppose I have the following in web.xml:

context-param
param-namebasepath/param-name
param-valuebob/param-value
/context-param

Why does Servlet 1 below print out bob while Sevlet 2 gives me a
NullPointerException error? Why isn't the context parameter available
outside the doGet block?

Servlet 1
==
public class Hello extends HttpServlet{

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

PrintWriter out = response.getWriter();
out.println(getServletContext()getInitParameter(basepath));
out.close();
}
}

Servlet 2
==
public class Hello extends HttpServlet{

private String basepath = getServletContext()getInitParameter(basepath);

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

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

Thank you,
Mike


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




RE: context param is null outside doGet

2002-06-08 Thread jon wingfield

With out looking at the HttpServlet source to confirm i would guess that:
In servlet 2 the member variable basepath is assigned a value after the
super class (HttpServlet) constructor returns but before the servlets
init(...) method is called by the servlet container. Therefore at the time
of assignment the servlet context is not set on the servlet and a NPE
results. That would be my guess.
Override init(...) call super.init(...) and then assign the value to
basepath.

Jon

-Original Message-
From: Mike Millson [mailto:[EMAIL PROTECTED]]
Sent: 08 June 2002 14:55
To: Tomcat Users List
Subject: context param is null outside doGet


Why is it that context parameters are null outside the doGet block of a
servlet?

For example, suppose I have the following in web.xml:

context-param
param-namebasepath/param-name
param-valuebob/param-value
/context-param

Why does Servlet 1 below print out bob while Sevlet 2 gives me a
NullPointerException error? Why isn't the context parameter available
outside the doGet block?

Servlet 1
==
public class Hello extends HttpServlet{

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

PrintWriter out = response.getWriter();
out.println(getServletContext()getInitParameter(basepath));
out.close();
}
}

Servlet 2
==
public class Hello extends HttpServlet{

private String basepath = getServletContext()getInitParameter(basepath);

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

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

Thank you,
Mike


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



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




Re: changing Tomcat's Document Root

2002-06-08 Thread puneet sachar

Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help me…I really stuck ..

With this mail I’m sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..i’m in need badly and afater
spending so much time here I some time feel like
crying … and I’m in such a place and in such a part of
India..where I can’t get ant local computer guy with
whom I can discuss ..plz do me a little favour

Here are my problems
1)  no .class and .jsp working only html is working 
2)  I have done all changes which were to made in
server.xml…)I have send the file also plz check it and
tell me any mistake if u find)
3)  I’m getting 404 error ..no servlet found
4)  And I’m able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class
 But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar 
and when i go
.http://puneet:80/sachar/servlet/HelloworldServlet

error -- 404

See friends ..if u can help me I’ll be very grateful
to u

Puneet 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

!-- Define a 

problem..plz help me out

2002-06-08 Thread puneet sachar

Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help me…I really stuck ..

With this mail I’m sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..i’m in need badly and afater
spending so much time here I some time feel like
crying … and I’m in such a place and in such a part of
India..where I can’t get ant local computer guy with
whom I can discuss ..plz do me a little favour

Here are my problems
1)  no .class and .jsp working only html is working 
2)  I have done all changes which were to made in
server.xml…)I have send the file also plz check it and
tell me any mistake if u find)
3)  I’m getting 404 error ..no servlet found
4)  And I’m able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class
 But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar 
and when i go
.http://puneet:80/sachar/servlet/HelloworldServlet

error -- 404

See friends ..if u can help me I’ll be very grateful
to u

Puneet 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

?xml version=1.0 encoding=ISO-8859-1?

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

web-app
servlet
servlet-nameMyExample/servlet-name
servlet-classHelloWorldExample/servlet-class
run-as
descriptionSecurity role for anonymous access/description
role-nametomcat/role-name
/run-as
/servlet

servlet-mapping
servlet-nameMyExample/servlet-name
url-pattern/sachar/servlet/snoop/url-pattern
url-pattern/servlet/*/url-pattern
/servlet-mapping


/web-app


!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector 

Re: problem..plz help me out

2002-06-08 Thread pducuron \(kgb\)

If you are in a Windows environment, make sure your /WEB-INF directory is in
uppercase. Tomcat 4 works different as Tomcat 3 regarding this.

  gl,
  Pablo.


- Original Message -
From: puneet sachar [EMAIL PROTECTED]
To: Xinji Gu [EMAIL PROTECTED]
Sent: Saturday, 8. June 2002 12:22
Subject: problem..plz help me out


 Hi friends, this is my 4th mail regarding my single
 complain..

 I have install the tomcat 4.0.3 and its doing fine as
 far .html files are concern but no .class and .jsp
 files are running on it

 I have asked 9-10 times abt same question again and
 again and I got nothing from u guys there

 Plz help me.I really stuck ..

 With this mail I'm sending my server.xml file and
 web.xml file which is in my virtualhost/WEB-INF/

 I know it is very tough for u to go in these files and
 see for errors but plz..i'm in need badly and afater
 spending so much time here I some time feel like
 crying . and I'm in such a place and in such a part of
 India..where I can't get ant local computer guy with
 whom I can discuss ..plz do me a little favour

 Here are my problems
 1) no .class and .jsp working only html is working
 2) I have done all changes which were to made in
 server.xml.)I have send the file also plz check it and
 tell me any mistake if u find)
 3) I'm getting 404 error ..no servlet found
 4) And I'm able to excess the .class file vis
 http://localhost:80/examples/servlet/abc.class
  But not by making my own virtual host aand not even
 the default root directory


 what i have is my own context named sachar
 and when i go
 .http://puneet:80/sachar/servlet/HelloworldServlet

 error -- 404

 See friends ..if u can help me I'll be very grateful
 to u

 Puneet


 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com






 ?xml version=1.0 encoding=ISO-8859-1?

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

 web-app
 servlet
 servlet-nameMyExample/servlet-name
 servlet-classHelloWorldExample/servlet-class
 run-as
 descriptionSecurity role for anonymous access/description
 role-nametomcat/role-name
 /run-as
 /servlet

 servlet-mapping
 servlet-nameMyExample/servlet-name
 url-pattern/sachar/servlet/snoop/url-pattern
 url-pattern/servlet/*/url-pattern
 /servlet-mapping


 /web-app







 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --

 !-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.

  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --

 Server port=8005 shutdown=SHUTDOWN debug=0


   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone

 !-- A Connector represents an endpoint by which requests are
received
  and responses are returned.  Each Connector passes requests on to
the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  following the instructions below and uncommenting the second
Connector
  entry.  SSL support requires the following steps (see the SSL
Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
with a password value of changeit for both the certificate
and
the keystore itself.

  By default, DNS lookups are enabled when a web application calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are
disabled,
  request.getRemoteHost() will return the String version of the

Problem with encodeRedirectURL

2002-06-08 Thread Ujjwala Thakar

Hello,

I refered this URL
http://archive.covalent.net/jakarta/tomcat-user/2001/08/0111.xml

Did you get the solution for this?
I am having the same problem.
If you got the solution, please answer.

[EMAIL PROTECTED]



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: problem..plz help me out

2002-06-08 Thread Markus Kirsten

Does the example servlets and JSP work?

Which platform do you use?


Markus


On lördag, juni 8, 2002, at 09:22 , puneet sachar wrote:

 Hi friends, this is my 4th mail regarding my single
 complain..

 I have install the tomcat 4.0.3 and its doing fine as
 far .html files are concern but no .class and .jsp
 files are running on it

 I have asked 9-10 times abt same question again and
 again and I got nothing from u guys there

 Plz help meÖI really stuck ..

 With this mail Iím sending my server.xml file and
 web.xml file which is in my virtualhost/WEB-INF/

 I know it is very tough for u to go in these files and
 see for errors but plz..iím in need badly and afater
 spending so much time here I some time feel like
 crying Ö and Iím in such a place and in such a part of
 India..where I canít get ant local computer guy with
 whom I can discuss ..plz do me a little favour

 Here are my problems
 1)no .class and .jsp working only html is working
 2)I have done all changes which were to made in
 server.xmlÖ)I have send the file also plz check it and
 tell me any mistake if u find)
 3)Iím getting 404 error ..no servlet found
 4)And Iím able to excess the .class file vis
 http://localhost:80/examples/servlet/abc.class
  But not by making my own virtual host aand not even
 the default root directory


 what i have is my own context named sachar
 and when i go
 .http://puneet:80/sachar/servlet/HelloworldServlet

 error -- 404

 See friends ..if u can help me Iíll be very grateful
 to u

 Puneet


 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 ?xml version=1.0 encoding=ISO-8859-1?

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

 web-app
 servlet
 servlet-nameMyExample/servlet-name
 servlet-classHelloWorldExample/servlet-class
 run-as
 descriptionSecurity role for anonymous access/description
 role-nametomcat/role-name
 /run-as
 /servlet

 servlet-mapping
 servlet-nameMyExample/servlet-name
 url-pattern/sachar/servlet/snoop/url-pattern
 url-pattern/servlet/*/url-pattern
 /servlet-mapping


 /web-app
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --

 !-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.

  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --

 Server port=8005 shutdown=SHUTDOWN debug=0


   !-- A Service is a collection of one or more Connectors that 
 share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone

 !-- A Connector represents an endpoint by which requests are 
 received
  and responses are returned.  Each Connector passes requests on 
 to the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on 
 port 8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  following the instructions below and uncommenting the second 
 Connector
  entry.  SSL support requires the following steps (see the SSL 
 Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR 
 files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA 
 (Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  
 (Unix)
with a password value of changeit for both the certificate 
 and
the keystore itself.

  By default, DNS lookups are enabled when a web application 
 calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are 
 disabled,
  request.getRemoteHost() will return the String version of the
  IP address of the remote client.
 --

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443

Re: problem..plz help me out

2002-06-08 Thread Sankar Kondur

OK. lets work on this.

1. first i made some changes inthe server.xml
I removed the whole Engine /Engine tag that you
added and added the 'sachar' context just above the
manager context.

2. remove the servlet tags fromt he web.xml and invoke
the servlet with the class name. lets see if it will
work.

http://puneet:80/sachar/servlet/HelloWorldExample

try this out and tell me. I have attached the
server.xml. use it.




=
-
NCStudio - A better alternative to desktop IDEs
http://www.ncstudio.com
-

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8081 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/
--

!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 --
!--
Connector className=org.apache.catalina.connector.http10.HttpConnector
   port=8082 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0/
--

!-- An Engine represents the entry point (within Catalina) 

RE: problem..plz help me out

2002-06-08 Thread Scott Seidl

I have been having the same problem.  The only difference I have is that
I have not made any changes, or use, server.xml or web.xml.  

Let me know how the suggestions work.
Scott

-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, June 08, 2002 2:22 PM
To: Xinji Gu
Subject: problem..plz help me out

Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help me.I really stuck ..

With this mail I'm sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..i'm in need badly and afater
spending so much time here I some time feel like
crying . and I'm in such a place and in such a part of
India..where I can't get ant local computer guy with
whom I can discuss ..plz do me a little favour

Here are my problems
1)  no .class and .jsp working only html is working 
2)  I have done all changes which were to made in
server.xml.)I have send the file also plz check it and
tell me any mistake if u find)
3)  I'm getting 404 error ..no servlet found
4)  And I'm able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class
 But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar 
and when i go
.http://puneet:80/sachar/servlet/HelloworldServlet

error -- 404

See friends ..if u can help me I'll be very grateful
to u

Puneet 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



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




Re: tomcat question

2002-06-08 Thread Ben Cox

Keith, et.al,
   Is there any way to do disable chunking on Tomcat 3.0?  We are 
running a somewhat older application on it with jdk1.2.2, and Apache 
1.3.12, on Red Hat Linux (kernel 2.4.17).
   We've ended up in a bit of a time crunch, need to get rid of 
chunking, and would be spared some time and pressure if we could upgrade 
and test all of these later, and more thoroughly, since it's a live 
server.  If it's at all possible to easily disable chunking with this 
combination, we'd sure love to hear how!
   Thanks,

 Ben

Keith Wannamaker wrote:
 tomcat questionThere was a bug in j-t-c that was fixed a few days ago that
 caused
 requests to be chunked even if the content-length was known.
 You should build tomcat-util from jakarta-tomcat-connectors
 and replace the one in your tomcat install with it.
 
 Otherwise, you could always use the http10 connector instead.
 
 Keith
 
   -Original Message-
   From: Carlos Pizano [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, June 06, 2002 5:04 PM
   To: [EMAIL PROTECTED]
   Subject: tomcat question
 
 
   Sorry to bother you, but I have searched a lot for this question... to no
 avail.
 
   How can I disable chunking (Transfer-Encoding: chunked) output on Tomcat ?
 
   It seems that anything served with Tomcat is chunked. I need to disable
 that
   behavior that HTTP1.1 says is optional...
 
   Thanks in advance,
 
 
 
   Carlos Pizano
   Chief Technology Officer
   Elisar Software Corporation
   2500 Louisiana Blvd. NE Suite 400
   Albuquerque, NM 87110
   Tel: (505)884-1918
   Fax: (505)884-1806
   [EMAIL PROTECTED]
 
 
 
 




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




Re: problem..plz help me out

2002-06-08 Thread Adam Pfeiffer

Have you gotten the problem resolved??

Adam

--- puneet sachar [EMAIL PROTECTED] wrote:
 Hi friends, this is my 4th mail regarding my single
 complain..
 
 I have install the tomcat 4.0.3 and its doing fine as
 far .html files are concern but no .class and .jsp
 files are running on it
 
 I have asked 9-10 times abt same question again and
 again and I got nothing from u guys there
 
 Plz help me…I really stuck ..
 
 With this mail I’m sending my server.xml file and
 web.xml file which is in my virtualhost/WEB-INF/
 
 I know it is very tough for u to go in these files and
 see for errors but plz..i’m in need badly and afater
 spending so much time here I some time feel like
 crying … and I’m in such a place and in such a part of
 India..where I can’t get ant local computer guy with
 whom I can discuss ..plz do me a little favour
 
 Here are my problems
 1)no .class and .jsp working only html is working 
 2)I have done all changes which were to made in
 server.xml…)I have send the file also plz check it and
 tell me any mistake if u find)
 3)I’m getting 404 error ..no servlet found
 4)And I’m able to excess the .class file vis
 http://localhost:80/examples/servlet/abc.class
  But not by making my own virtual host aand not even
 the default root directory
 
 
 what i have is my own context named sachar 
 and when i go
 .http://puneet:80/sachar/servlet/HelloworldServlet
 
 error -- 404
 
 See friends ..if u can help me I’ll be very grateful
 to u
 
 Puneet 
 
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 servlet
 servlet-nameMyExample/servlet-name
 servlet-classHelloWorldExample/servlet-class
 run-as
 descriptionSecurity role for anonymous access/description
 role-nametomcat/role-name
 /run-as
 /servlet
 
 servlet-mapping
 servlet-nameMyExample/servlet-name
 url-pattern/sachar/servlet/snoop/url-pattern
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 
 
 /web-app
  !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.
 
  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
 
   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are received
  and responses are returned.  Each Connector passes requests on to the
  associated Container (normally an Engine) for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  following the instructions below and uncommenting the second Connector
  entry.  SSL support requires the following steps (see the SSL Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
with a password value of changeit for both the certificate and
the keystore itself.
 
  By default, DNS lookups are enabled when a web application calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are disabled,
  request.getRemoteHost() will return the String version of the
  IP address of the remote client.
 --
 
 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 

RE: tomcat question

2002-06-08 Thread James Ward

Ben,
I am not sure if this works, but on one of my servers that has a very
similar configuration to yours (Tomcat  Apache) we might have fixed
this.  We are doing this in a Virtual Host:
BrowserMatch Mozilla/2 nokeepalive downgrade-1.0 force-response-1.0

You could adapt that to always force the downgrade and response to
HTTP1.0 instead of HTTP1.1 if that is what you want.

We had to implement this because of IE's SSL problems.

Hope that helps.

-James


 -Original Message-
 From: Ben Cox [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 08, 2002 3:24 PM
 To: Tomcat Users List
 Cc: Carlos Pizano
 Subject: Re: tomcat question
 
 Keith, et.al,
Is there any way to do disable chunking on Tomcat 3.0?  We are
 running a somewhat older application on it with jdk1.2.2, and Apache
 1.3.12, on Red Hat Linux (kernel 2.4.17).
We've ended up in a bit of a time crunch, need to get rid of
 chunking, and would be spared some time and pressure if we could
upgrade
 and test all of these later, and more thoroughly, since it's a live
 server.  If it's at all possible to easily disable chunking with this
 combination, we'd sure love to hear how!
Thanks,
 
  Ben
 
 Keith Wannamaker wrote:
  tomcat questionThere was a bug in j-t-c that was fixed a few days
ago
 that
  caused
  requests to be chunked even if the content-length was known.
  You should build tomcat-util from jakarta-tomcat-connectors
  and replace the one in your tomcat install with it.
 
  Otherwise, you could always use the http10 connector instead.
 
  Keith
 
-Original Message-
From: Carlos Pizano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 5:04 PM
To: [EMAIL PROTECTED]
Subject: tomcat question
 
 
Sorry to bother you, but I have searched a lot for this
question... to
 no
  avail.
 
How can I disable chunking (Transfer-Encoding: chunked) output on
 Tomcat ?
 
It seems that anything served with Tomcat is chunked. I need to
 disable
  that
behavior that HTTP1.1 says is optional...
 
Thanks in advance,
 
 
 
Carlos Pizano
Chief Technology Officer
Elisar Software Corporation
2500 Louisiana Blvd. NE Suite 400
Albuquerque, NM 87110
Tel: (505)884-1918
Fax: (505)884-1806
[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


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




Tomcat/Apache/mod_webapp

2002-06-08 Thread Catherine Shepherd

Hi, We've done extensive searching of the archives and the web but failed to
come up with a solution that works.  Anybody cast some light on this?

We're trying to get a multiple-webapp installation of Tomcat 4.0.3 on RedHat
7.2 with Apache 1.3 and mod_webapp (and JDK 1.4).  Apache works fine, Tomcat
works fine standalone, but when we link them together it fails to work.  All
were installed from binaries, the Apache install was part of a Nusphere
install.  We want to run two domains on one Tomcat Server, so the server.xml
looks like the following:

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Apache
Connector className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=1 maxProcessors=50
scheme=http
   enableLookups=true appBase=webapps
   acceptCount=10 debug=0/
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Tomcat-Apache debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host className = org.apache.catalina.connector.warp.WarpHost
 name=www.mytopfive.com
 debug=0
 appBase=webapps/mytopfive
 unpackWARs=true 
Context path= docBase=. debug=0 /
  /Host
  Host className = org.apache.catalina.connector.warp.WarpHost
 name=www.404th.net
 debug=0
 appBase=webapps/404th
 unpackWARs=true 
Context path= docBase=. debug=0 /
  /Host
/Engine
/Service
/Server

The JSP's for each webapp are in the webapps/[webapp-name] directory, hence
the Context.  Both were deployed from IBM Websphere Studio Application
Developer 4.0.3 generated .war's.

The httpd.conf looks like the following (extract) :

LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
ServerName 62.3.69.188
NameVirtualHost *

WebAppConnection warpConnection warp localhost:8008

VirtualHost *
ServerName www.404th.net
DocumentRoot /usr/local/tomcat/jakarta-tomcat-4.0.3/webapps/404th
WebAppDeploy 404th warpConnection /
/VirtualHost

VirtualHost *
ServerName www.mytopfive.com
DocumentRoot /usr/local/tomcat/jakarta-tomcat-4.0.3/webapps/mytopfive
WebAppDeploy mytopfive warpConnection /
/VirtualHost

We have also tried this configuration with the WebAppDeploy .
warpConnection / per an example at www.codesta.com, but get no better
results.

Tomcat seems to start up and initialise the webapps fine, and the logs
reveal no issues.  The logs also reveal good connections from the Apache
mod_webapp when we start Apache, and Apache puts out what appears to be good
news at the command line.  However, loading either of those domains in a
browser gets a 'The page cannot be displayed'.  Other static sites are
served fine through Apache.

Any ideas?  Thanks very very much.

James and Catherine



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




Re: tomcat question

2002-06-08 Thread Ben Cox

This is very helpful.  Seems to work quite well.  I put in:

 BrowserMatch .* nokeepalive downgrade-1.0 force-response-1.0

which even works for telnet if you put a User-Agent header in there.

Interestingly, we'd tried:
   Location /servlets
  SetEnv downgrade-1.0 force-response-1.0
   /Location
in the same virtual host, and it didn't work. Any idea why not?

Thanks for your help, James!

 Ben

James Ward wrote:
 Ben,
 I am not sure if this works, but on one of my servers that has a very
 similar configuration to yours (Tomcat  Apache) we might have fixed
 this.  We are doing this in a Virtual Host:
 BrowserMatch Mozilla/2 nokeepalive downgrade-1.0 force-response-1.0
 
 You could adapt that to always force the downgrade and response to
 HTTP1.0 instead of HTTP1.1 if that is what you want.
 
 We had to implement this because of IE's SSL problems.
 
 Hope that helps.
 
 -James
 
 
 
-Original Message-
From: Ben Cox [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 08, 2002 3:24 PM
To: Tomcat Users List
Cc: Carlos Pizano
Subject: Re: tomcat question

Keith, et.al,
   Is there any way to do disable chunking on Tomcat 3.0?  We are
running a somewhat older application on it with jdk1.2.2, and Apache
1.3.12, on Red Hat Linux (kernel 2.4.17).
   We've ended up in a bit of a time crunch, need to get rid of
chunking, and would be spared some time and pressure if we could
 
 upgrade
 
and test all of these later, and more thoroughly, since it's a live
server.  If it's at all possible to easily disable chunking with this
combination, we'd sure love to hear how!
   Thanks,

 Ben

Keith Wannamaker wrote:

tomcat questionThere was a bug in j-t-c that was fixed a few days

 ago
 
that

caused
requests to be chunked even if the content-length was known.
You should build tomcat-util from jakarta-tomcat-connectors
and replace the one in your tomcat install with it.

Otherwise, you could always use the http10 connector instead.

Keith

  -Original Message-
  From: Carlos Pizano [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 06, 2002 5:04 PM
  To: [EMAIL PROTECTED]
  Subject: tomcat question


  Sorry to bother you, but I have searched a lot for this

 question... to
 
no

avail.

  How can I disable chunking (Transfer-Encoding: chunked) output on

Tomcat ?

  It seems that anything served with Tomcat is chunked. I need to

disable

that
  behavior that HTTP1.1 says is optional...

  Thanks in advance,



  Carlos Pizano
  Chief Technology Officer
  Elisar Software Corporation
  2500 Louisiana Blvd. NE Suite 400
  Albuquerque, NM 87110
  Tel: (505)884-1918
  Fax: (505)884-1806
  [EMAIL PROTECTED]








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




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




logout?

2002-06-08 Thread Anibal Constante Brito

How can I put some buttom in the form and when the user push it the session
end?

I tried to do with that:

Script
  function CloseSession()
{
session.invalidate();
}
/Script

but don't work? and in the JavaBeans I don't have session?

Best Regards.
Owen.



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




RE: Tomcat/Apache/mod_webapp

2002-06-08 Thread Catherine Shepherd

For more info, the [tomcat_home]/logs/apache_log.2002-06-09.txt shows the
following when we try to connect to either of the pages:

[WarpConnection] Exception on socket
java.io.IOException: Premature packet header end
...

So it appears that the connections are working ok initially but failing?
When Apache starts up, this log file shows two good WarpConnector
Connections from 127.0.0.1:33190 and 127.0.0.1:33191 both to 127.0.0.1:8008.
Is this a problem that both target theWarpConnector on 8008?  It would seem
that this should not be a problem.

Anyways, we hope this helps some.

Sincere thanks, James and Catherine

-Original Message-
From: Catherine Shepherd [mailto:[EMAIL PROTECTED]]
Sent: 09 June 2002 00:56
To: tomcat user
Subject: Tomcat/Apache/mod_webapp



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




RE: logout?

2002-06-08 Thread Catherine Shepherd

HttpSession is not implicit in JavaScript.  You would need to trigger
session.invalidate() from the JSP, in which HttpSession IS implicit.  Try
something like this (quick and dirty):

at the top of the body tag of your form page:

%
  String logout = (String)request.getAttribute(logout);
  if (true.equals(logout)) {
session.invalidate();
%
You have been logged out.
% } else { %

[now your form stuff goes here]

a href=[this page again]?logout=trueClick here to logout./a

[then right at the end of the body container]

% } %

That should do it.  Hopefully I haven't led you too far astray :)  I don't
know if Tomcat-user is the best place for this question, maybe a JSP/Java
forum might make more sense.

Cheers, James

-Original Message-
From: Anibal Constante Brito [mailto:[EMAIL PROTECTED]]
Sent: 09 June 2002 02:02
To: Tomcat
Subject: logout?



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




web.xml parsing error on startup.

2002-06-08 Thread beelzabeb

Hello,
   I am using JDK1.4 and Tomcat 4.0.3, lately, I've been having this problems:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 29 column 11
org.xml.sax.SAXParseException: The content of element type web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*).
Starting service Tomcat-Apache
Apache Tomcat/4.0.3


My web.xml file is:

?xml version=1.0 encoding=ISO-8859-1?

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

web-app
welcome-file-list
  welcome-fileretrieveRecord.html/welcome-file
/welcome-file-list

servlet
servlet-nameretrieveData/servlet-name
servlet-classretrieveData/servlet-class
init-param
  param-namedriver/param-name
  param-valueorg.gjt.mm.mysql.Driver/param-value
/init-param
init-param
  param-namejdbcurl/param-name
  param-valuejdbc:mysql://localhost:3306/techDB/param-value
/init-param
init-param
  param-namemysqluser/param-name
  param-valuedemo/param-value
/init-param
/servlet

/web-app

I had to remove one after another, all my servlet nodes and I'mleft with one. I still 
have that parsing error?. This web.xml is according to the DTD, I can't figure out 
where theproblem is?.

Any help is appreciated. 

Line 29 is '/web-app'   tag. 

regards,
Nik



__
Get your FREE personalized e-mail at http://www.canada.com

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




Tomcat 4.0.3 and Mod JK problem

2002-06-08 Thread Subir Sengupta

Hi,

I have Tomcat running on my dev box, with no problems.  I moved tomcat over
to another server and I now start getting this error:

StandardEngine[Walmart]: Mapping server name '172.28.101.132'
StandardEngine[Walmart]:  Trying a direct match
StandardEngine[Walmart]:  Trying an alias match
StandardEngine[Walmart]:  Trying the default host
StandardEngine[Walmart]: Mapping server name '172.28.101.132'
StandardEngine[Walmart]:  Trying a direct match
StandardEngine[Walmart]:  Trying an alias match
StandardEngine[Walmart]:  Trying the default host

Here are snippets from my workers.properties and server.xml files.

workers.properties

# The workers that your plugins should create and work with
#
worker.list=ajp12,ajp13-0
worker.ajp13-0.port=8009
worker.ajp13-0.host=localhost
worker.ajp13-0.type=ajp13
# /AJP13WORKERS

server.xml

Server port=8011 shutdown=SHUTDOWN debug=0

  Service name=Tomcat 4.0.3
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=256
   acceptCount=10 debug=0
/Connector

The site will still serve pages but it keeps repeating the above message.
Any ideas about what would cause this are appreciated.

Thanks,
Subir


 Subir Sengupta (E-mail).vcf 



Subir Sengupta (E-mail).vcf
Description: Binary data

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


Re: problem..plz help me out

2002-06-08 Thread Jacob Kjome

2 things I see wrong with your scenario.

1.  When you refer to a servlet, you don't append .class to the end of 
the servlet name.  For instance, you wrote:

http://localhost:80/examples/servlet/abc.class

which should be:

http://localhost:80/examples/servlet/abc

2.  You are going through port 80 which is where a normal webserver would 
be listening.  Tomcat listens on port 8080 by default.  Unless you are 
fronting Tomcat with another web server, such as Apache, and using a web 
connector (and have the configuration for the web connector correct for 
each context you are accessing) you will not be able to ask Tomcat to serve 
up .jsp's or servlets.

Try your connection like this:

http://localhost:8080/examples/servlet/abc

That will go directly to Tomcat rather than pass through a web server with 
a connector.  If this works, then your issue is narrowed down to 
configuring your web connector properly.  If it doesn't work, then we can 
look at other issues such as installing Tomcat in a path with spaces in the 
directory names.

Note:  I'm assuming that a class, which is a servlet, exists in the default 
package (eg... WEB-INF/classes) and is named abc.class for the above link 
to work.

Jake

At 12:22 PM 6/8/2002 -0700, you wrote:
Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help me…I really stuck ..

With this mail I’m sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..i’m in need badly and afater
spending so much time here I some time feel like
crying … and I’m in such a place and in such a part of
India..where I can’t get ant local computer guy with
whom I can discuss ..plz do me a little favour

Here are my problems
1)  no .class and .jsp working only html is working
2)  I have done all changes which were to made in
server.xml…)I have send the file also plz check it and
tell me any mistake if u find)
3)  I’m getting 404 error ..no servlet found
4)  And I’m able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class
  But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar
and when i go
.http://puneet:80/sachar/servlet/HelloworldServlet

error -- 404

See friends ..if u can help me I’ll be very grateful
to u

Puneet


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com?xml version=1.0 encoding=ISO-8859-1?

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

web-app
servlet
servlet-nameMyExample/servlet-name
servlet-classHelloWorldExample/servlet-class
run-as
descriptionSecurity role for anonymous access/description
role-nametomcat/role-name
/run-as
/servlet

servlet-mapping
servlet-nameMyExample/servlet-name
url-pattern/sachar/servlet/snoop/url-pattern
url-pattern/servlet/*/url-pattern
/servlet-mapping


/web-app
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.

  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --

Server port=8005 shutdown=SHUTDOWN debug=0


   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone

 !-- A Connector represents an endpoint by which requests are received
  and responses are returned.  Each Connector passes requests on 
 to the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on port 
 8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  following the instructions below and uncommenting the second 
 Connector
  entry.  SSL support requires the following steps (see the SSL Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install 

mail list of JSP?

2002-06-08 Thread Anibal Constante Brito

Hello people:

Any of you know a mail list of JSP for ask some question?

Best Regards.
Owen.

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




Tomcat Performance Counters

2002-06-08 Thread Mohammed Omar

Dear All

I run tomcat 4 under windows 2000 with IIS5.
I run stability test .

Is there a performance counters belongs to tomcat? 
for example , when I install SQL server or some email servers on Windows2000 , I found 
that some performance counters are installed by default .
is there something for tomcat.

Thanks in advance
waiting your reply