Enabling SSL in tomcat

2002-05-15 Thread Ajay Chauhan

I am facing one problem while enabling SSL in Tomcat on windows NT server. I
have created the keystore using the following command:

keytool -genkey -alias tomcat -keyalg RSA

using changeit password. It has created .keystore file in 
directory. Say if my login is ajay then the files is created in :
C:\WINNT\Profiles\ajay directory, which is the value of
System.getProperty("user.home").

However when I start the Tomcat server, the jvm.stderr log files show the
following error and tomcat does not start:

java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore (The
system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.java:22
0)
at
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:160)
at
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11
8)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

This problem does not appear in Windows NT Workstation. In the workstation
the  property is the same as required by the Tomcat server at run
time.

If anyone face the same problem earlier and have the solution please reply
ASAP. 

Regards,
Ajay







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HANDLER THREAD PROBLEM

2002-05-15 Thread Miguel Angel Medina Lopez

Hi all:

I'm using Tomcat 3.2.3 with Apache. A few days ago often an error apperar
when tomcat is running. The Exception is:

 HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
java.io.IOException: Stream closed prematurely
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java:422)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:147)
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(Thread.java:536)

The tomcat continue running. I have read that there is more people with the
same problem but I haven´t found a solution.

Any suggestion. Thank you.

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Réf. : RE: Tomcat&IIS (on different computers)

2002-05-15 Thread staginfo-ar


Tomcat is on computer1 , workers.properties and Isapi_redirect.dll too.
IIS5.0 is computer2, I want to define a virtual directory "greeting" which
point on a directory located on the computer1 (but not in tomcat
directory).
Q: Where can I put the Isapi_redirector.dll ( on computer1 or 2? ). Same
question for the workers.properties
How can I define my virtual rep "greeting"? I think i must distribute the
directory located on computer 1, can I avoid that?


 Thanks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SSL new StreamSource

2002-05-15 Thread Günter Kukies

Hi,

I do this within a Servlet: 
Source xslSource = new StreamSource((new 
URL("https://147.47.47.11:8443/xxx/yyy.xsl)).openStream());

but i get this Exception:

Couldn't find trusted certificatejavax.net.ssl.SSLHandshakeException: Couldn't find 
trusted certificate at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.ClientHandshaker.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(DashoA6275) at 
com.sun.net.ssl.internal.ssl.Handshaker.process_record(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at 
java.io.OutputStream.write(OutputStream.java:58) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at 
sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275) at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275) at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:556) 
at 
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getInputStream(DashoA6275)
 at java.net.URL.openStream(URL.java:955) at 
pretest.processor.processRequest(processor.java:76) at 
pretest.processor.doGet(processor.java:103) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter .

when I type in the URL directly into IE i have asccess to yyy.xsl.

Günter



Re: Tomcat and SSL

2002-05-15 Thread Pae Choi

Basically you are suggesting to open all 80xx and 8443 ports
to public? So brave!!! :-)


Pae




- Original Message -
From: "Oki DZ" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 9:01 PM
Subject: Re: Tomcat and SSL


On 05/15 18:52 "Sefton, Adam" wrote:
> does Tomcat 4.0 support SSL natively?

I use 4.0.3; it has SSL.

> Does any other version of Tomcat? Or
> should I be using Tomcat with Apache in order to gain this functionality?

You don't need Apache for getting the SSL support, but if you need cgi
scripts, you do.

Oki

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Website for Tomcat/Apache Integration...

2002-05-15 Thread Jonathan Shipley

I found this url to be helpful:
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

However, I am still trying to get mod_jk to work...

regards
Jonathan

-Original Message-
From: Chris Herrmann [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2002 02:14
To: 'Tomcat Users List'
Subject: RE: Website for Tomcat/Apache Integration...


perhaps the abundance of information is confusing...


in ten words or less, all you need to do is:

Setup apache, and get it to load mod_jk , and the mod_jk.conf

Setup tomcat, edit mod_jk.conf, and a workers.properties

Restart apache, and you should be cooking with gas.

Ignore the bits about jserv, unless you know you need them. They'll just
confuse you.

it looks a little like this...


Apache
   |
   |
mod_jk
   |
   |
Tomcat

I'll let you find the detail of how to do each of these bits in the doco.

Cheers,

Chris

|-Original Message-
|From: Ben Rometsch [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, 16 May 2002 09:44
|To: [EMAIL PROTECTED]
|Subject: Website for Tomcat/Apache Integration...
|
|
|Hi There,
|
|Is there a website out there that I have yet to find that
|details common
|setups for Tomcat/Apache/Linux ? I cant seem to find any coherent
|information on this at all. I've been reading and reading and reading
|(especially about connectors) and I'm still confused...
|
|I'd be happy to set up a small site with a few example configurations
|along with step-by-step instructions on how to get things running under
|Linux/Windows. Maybe also detailing what the different connectors are,
|how the different versions of tomcat and apache affect each other etc.
|etc.
|
|Would anyone be interested in helping me out?
|
|Thanks,
|Ben Rometsch
|
|
|--
|To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[REPOST]: mod_jk: ajp13: cpu load problem with apache

2002-05-15 Thread Costas Stergiou

Hi all,
nobody seemed to reply anything on this matter. Looking through
the code myself I came to some conclusions but actually the one(s)
who really know the code should take a look.

PLEASE, take another look at this problem. Actually, the Apache-Tomcat
integration is useless with such a problem (and there are no alternatives
if you want load balancing...). I know that others have reported similar
issues.

Any help???

Thanks,
Costas

> Hi Costin,
> continuing on the problem:
>
> 1. I downloaded the latest code from CVS and compiled mod_jk.
> 2. Run apache with it and used gdb to get a stack trace upon
> the problem. Here is the gdb output:
>
> [helium]/#gdb httpd 24550
> GNU gdb 5.0-aix43-010414
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
details.
> This GDB was configured as "powerpc-ibm-aix4.3.3.0"...httpd: No such file
or
> dir
> ectory.
>
> //24550: No such file or directory.
> Attaching to process 24550
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> ---Type  to continue, or q  to quit---
> [Switching to Thread 1]
> 0x20070e9c in jk_tcp_socket_recvfull ()
> (gdb) bt
> #0  0x20070e9c in jk_tcp_socket_recvfull ()
> #1  0x2006b700 in ajp_connection_tcp_get_message ()
> #2  0x200694c0 in ajp_get_reply ()
> #3  0x20069344 in ajp_service ()
> #4  0x200744c8 in jk_handler ()
> #5  0x10020900 in ap_invoke_handler ()
> #6  0x10044c30 in process_request_internal ()
> #7  0x10045db4 in ap_process_request ()
> #8  0x10002a50 in child_main ()
> #9  0x1000244c in make_child ()
> #10 0x10002140 in perform_idle_server_maintenance ()
> #11 0x10001aec in standalone_main ()
> #12 0x10001390 in main ()
> #13 0x11dc in __start ()
> (gdb) quit
> A debugging session is active.
> Do you still want to close the debugger?(y or n) y
> Detaching from program: , process 24550
>
> The only way to stop the above is either by restarting apache or
> killing the runaway apche process. gdb reports the same until I kill
> the process (never gets out of that process).
> Also, I must note that at the same time the jvm tomcat process also
> consumes a lot of CPU untill I kill the httpd process.
> Also, I use tomcat 4.0.3 with the compiled java mod_jk libs that
> come with the distribution.
>
> I hope that you can give some feedback on the above.
> Also, I think that the above problem is occurring when I press
> the stop button on my browser while I have made a 'big' request (one
> that brings back a 'big' html page).
>
> Any help is greatly welcome,
> Thanks,
> Costas
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, May 02, 2002 7:57 PM
> Subject: Re: Re: mod_jk: ajp13: cpu load problem with apache
>
>
> > On Thu, 2 May 2002 [EMAIL PROTECTED] wrote:
> >
> > > First of all thank you for your interest.
> > > I will download the latest code and try this out. I do have the debug
> mode
> > > enabled so I will sent you any errors (although I have not noticed
> anything
> > > special).
> > > I don't think though that I can reproduce the problem myself.
> > > About the gdb, I have no experience of how to attach to the process
but
> I will
> > > do my best to find a colleague that does.
> >
> > Short course on gdb:
> >
> > ps -aux |grep httpd
> > ( or ps -fea )
> >
> > Find the PID of the process that takes all the CPU, then
> >
> > gdb httpd PID
> > and inside do a 'bt' ( backtrace ), it'll generate a stacktrace
> > we can use.
> >
> >
> > Costin
> >
> > > Thanks,
> > > Costas
> > > >
> > > > Can you try the CVS head, and see if it still happens ?
> > > > If so, can you give us more details that would allow to
> > > > reproduce it ?
> > > >
> > > > Messages like 'it doesn't work for me, you figure out why'
> > >

Re: How to end a JSP

2002-05-15 Thread Nikola Milutinovic


- Original Message - 
From: "Adam Pfeiffer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 8:11 PM
Subject: How to end a JSP


> If you have a try/catch block in a jsp and you catch an error that is know to cause 
>the page not
> to function, how can you gracefully skip the rest of the jsp page and print an error 
>message.  For
> example, in the below code pictureBrowserBean.parseAlbums(); is going to throw a 
>null pointer
> exception.  I want the catch block to print an error message and quit running the 
>jsp.  How do I
> do this?

:-)

Throw an exception.

The only way to abort and already written ServletResponse object is to cause the page 
not to finish it's service() method and even that can fail if buffer was already 
(partially) commited. But, anyway, throwing an exception is the way. You can configure 
Tomcat to use custom ErrorPages for a specific JSP page or an exception class.

Nix.



JDBC Ralm

2002-05-15 Thread Jack Hermanto

Hi all,

Tomcat comes with the implementation 
of Form Based Realm authentication.
Form based authentication required a form with
username field (j_username) and password textfield (j_password).
It also enforce the form action must be j_security_check.
This limitation make the login form must be placed under
the site that authenticate the user.

Suppose I need to login to abc.com from def.com
and the login form MUST be placed under def.com.
How to authenticate the user to abc.com from def.com?

Any one experienced with this problem?

Is there any way to call the FormAuthenticator.authenticate() method from
web application ?


Jack Hermanto
Java Software Engineer

PT Mitrais
World Class Software Development Center
Jl. Kediri/Ksatria 38 Kuta - Bali
Ph.: +62 361 755025, Fax: +62 361 755024
http://www.mitrais.com
~~~
This transmission is for the intended addresses only and is 
confidential information. If you have received this 
transmission in error, please delete it and notify the sender. 
The contents of this E-mail are the opinion of the writer 
only and are not endorsed by PT Mitrais unless expressly 
stated otherwise.
~~~



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: CoyoteConnector with SSL no longer works, was Re: [ANNOUNCEMENT] Tomcat 4.0.4 Beta 3 released

2002-05-15 Thread Remy Maucherat

> Thanks, but, unless I'm overlooking something the factory is still listed
as
> org.apache.catalina.net.SSLServerSocketFactory (for use with
HttpConnector).
> There is no example for SSL with Coyote in the provided server.xml.

There's no example of SSL for Coyote in 4.0.x at the moment. In the 4.1.x
milestones, there's one.

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Reload context web.xml?

2002-05-15 Thread Jack Hermanto

Hi all,

Tomcat comes with the implementation 
of Form Based Realm authentication.
Form based authentication required a form with
username field (j_username) and password textfield (j_password).
It also enforce the form action must be j_security_check.
This limitation make the login form must be placed under
the site that authenticate the user.

Suppose I need to login to abc.com from def.com
and the login form MUST be placed under def.com.
How to authenticate the user to abc.com from def.com?

Any one experienced with this problem?

Is there any way to call the FormAuthenticator.authenticate() method from
web application ?



Jack Hermanto
Java Software Engineer

PT Mitrais
World Class Software Development Center
Jl. Kediri/Ksatria 38 Kuta - Bali
Ph.: +62 361 755025, Fax: +62 361 755024
http://www.mitrais.com
~~~
This transmission is for the intended addresses only and is 
confidential information. If you have received this 
transmission in error, please delete it and notify the sender. 
The contents of this E-mail are the opinion of the writer 
only and are not endorsed by PT Mitrais unless expressly 
stated otherwise.
~~~

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat and SSL

2002-05-15 Thread Oki DZ

On 05/15 18:52 "Sefton, Adam" wrote:
> does Tomcat 4.0 support SSL natively?

I use 4.0.3; it has SSL.

> Does any other version of Tomcat? Or
> should I be using Tomcat with Apache in order to gain this functionality?

You don't need Apache for getting the SSL support, but if you need cgi 
scripts, you do.

Oki

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Reload context web.xml?

2002-05-15 Thread Lomvardias, Christopher

Isn't Tomcat supposed to reload an application's web.xml by using
/manager/stop & /manager/start? 

I'm running Tomcat 4.01.

Chris
--
Chris Lomvardias
clomvardiassyscom.com
PublicBuy.Net
--


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem changing the default cookie name JSESSIONID

2002-05-15 Thread Subir Sengupta

Hi All,

I need to change the cookie name form JSESSIONID to something else.  I
changed the default in org.apache.catalina.Globals.java.  I also recompiled
all the classes that had references to the Globals.SESSION_COOKIE_NAME
constant.  After re-jarring catalina.jar I restarted Tomcat and it still
created cookies with JSESSIONID as the cookie name.

Can anyone tell me what I'm missing.  Is there any other class that I
missed.  I did grep through the class files and found my cookie name, so it
looks like everything compiled correctly.

Also, does anyone know which class creates new cookies?

I'm using Tomcat 4.0.3, Apache 1.3 and running on a Linux server.

Thanks in advance,
Subir


 <> 



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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Running a webapp and accessing from www.mysite.com

2002-05-15 Thread nino stevens bretana

try to define a new  (virtual host) on
server.xml 

nesty

--- [EMAIL PROTECTED] wrote:
> 
> You could do this by creating creating a Context
> entry in the server.xml
>  reloadable="false" crossContext
> ="false" />
> where,
> myapp is relative to appBase attribute in the Host
> tag.
> 
> RS
> 
> 
> 
> 
> 
> Donie Kelly <[EMAIL PROTECTED]> on 05/15/2002
> 09:26:50 AM
> 
> Please respond to "Tomcat Users List"
> <[EMAIL PROTECTED]>
> 
> To:'Tomcat Users List'
> <[EMAIL PROTECTED]>
> cc:
> 
> Subject:Running a webapp and accessing from
> www.mysite.com
> 
> Hi all
> 
> I want to deploy a webapp but don't want to have the
> context name in the
> URL
> like
> 
> www.mysite.com/myapp/
> 
> but instead want to use the URL to the primary
> servlet accessed by
> 
> www.mysite.com
> 
> How can I do this?
> 
> Thanks in advance
> Donie
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can somebody help: Exception while accessing manager app fromembedded tomcat

2002-05-15 Thread Craig R. McClanahan



On Wed, 15 May 2002, Sankaranarayanan (Ganesh) Ganapathy wrote:

> Date: Wed, 15 May 2002 15:16:20 -0700
> From: "Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Can somebody help: Exception while accessing manager app from
> embedded tomcat
>
> I am still looking for answers, can somebody help?
>
> Thanx in advance
> Ganesh
>
> -Original Message-
> From: Sankaranarayanan (Ganesh) Ganapathy
> Sent: Tuesday, May 14, 2002 11:59 AM
> To: [EMAIL PROTECTED]
> Subject: Exception while accessing manager app from embedded tomcat
>
>
> Hi All,
> I launched the embedded tomcat in my application - it is configured to use memory 
>realm. I added a user with the manager role in the tomcat-users.xml file. When I try 
>access the manager app I see the following exception enclosed at the bottom of the 
>mail. The same thing seems to work fine if I launch the regular tomcat.
> Any ideas?

As the "root cause" of the exception says, the Manager servlet is a
privileged servlet, because it requires access to Catalina internal
classes.  The way to make this work is to call setPrivileged(true) when
you are setting up the Context for the manager webapp (this is done for
you when you use the default server.xml in a standard Tomcat install).

> Thanx
> Ganesh

Craig


> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException: Error allocating a servlet instance
>   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
>Compiled Code)
>   at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at 
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
>Compiled Code)
>   at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>   at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, Compiled 
>Code)
>   at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, 
>Compiled Code)
>   at java.lang.Thread.run(Thread.java:479)
> root cause
> java.lang.SecurityException: Servlet of class 
>org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by 
>this web application
>   at 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:900)
>   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
>Compiled Code)
>   at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at 
>org.apache.catalina.authenticator.AuthenticatorBase.

RE: Website for Tomcat/Apache Integration...

2002-05-15 Thread Chris Herrmann

perhaps the abundance of information is confusing...


in ten words or less, all you need to do is:

Setup apache, and get it to load mod_jk , and the mod_jk.conf

Setup tomcat, edit mod_jk.conf, and a workers.properties

Restart apache, and you should be cooking with gas.

Ignore the bits about jserv, unless you know you need them. They'll just
confuse you.

it looks a little like this...


Apache
   |
   |
mod_jk
   |
   |
Tomcat

I'll let you find the detail of how to do each of these bits in the doco.

Cheers,

Chris

|-Original Message-
|From: Ben Rometsch [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, 16 May 2002 09:44
|To: [EMAIL PROTECTED]
|Subject: Website for Tomcat/Apache Integration...
|
|
|Hi There,
|
|Is there a website out there that I have yet to find that
|details common
|setups for Tomcat/Apache/Linux ? I cant seem to find any coherent
|information on this at all. I've been reading and reading and reading
|(especially about connectors) and I'm still confused...
|
|I'd be happy to set up a small site with a few example configurations
|along with step-by-step instructions on how to get things running under
|Linux/Windows. Maybe also detailing what the different connectors are,
|how the different versions of tomcat and apache affect each other etc.
|etc.
|
|Would anyone be interested in helping me out?
|
|Thanks,
|Ben Rometsch
|
|
|--
|To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Stopping display of included jsp modules

2002-05-15 Thread James Mitchell

Have you considered placing your jsp under WEB-INF?

If you are displaying all your jsp as a result of a servlet forward, then
doing this will allow the container to disallow direct access (directly
calling the jsp from the browser) and force all requests to go through your
servlets. (no need to map *.jsp to any servlet to filter/catch)

I do this in all my projects, I use the html base tag, so I can find out
which page the request came from (if needed).  If you do this though, make
sure that all your page links reference from the document root (e.g.
/servletcontext/images/img3.jpg) and same goes for applets, flash files,
included JavaScript and all others.



JM

> -Original Message-
> From: Geoff Apps [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 8:49 PM
> To: '[EMAIL PROTECTED]'
> Subject: Stopping display of included jsp modules
>
>
> In our application all URL requests matching *.abc are directed to our own
> servlet. This servlet processes the request, sets up beans, and
> then forward
> the request to a .jsp page for display.
>
> We also have requests matching *.js, *.css, and *.gif directed to the
> default servlet to serve  these static resources.
>
> To enable the processing of jsp pages we also have *.jsp requests being
> directed to the JSP servlet.
>
> The problem is that we would like *.jsp requests to the container to be
> rejected, but we need the jsp processing to occur when the jsp components
> are forwarded to from the servlet that processes *.abc requests.
>
> Previously, we used Apache connecting to Tomcat, and we were able to only
> allow *.abc requests through from Apache to Tomcat. (The reason we would
> like to not use Apache is that the load on this application is low and we
> would like to reduce complexity.).
>
> The issue is that if someone requests a *.jsp resource then the beans
> required to correctly display the page do not exist, or only part
> of a page
> is being displayed.
>
> A valve looks like a good solution, but the only valve's I have seen are
> associated with IP or Hostname checking. Is it possible to write your own
> valve, or is there a more elegant solution to my problem ?
>
> Any ideas will be greatly appreciated.
>
> Regards,
>
> Geoff
>
>
>
>
>
>
>
>
>
>
> JBWERE  LIMITED
> DISCLAIMER
>
> JBWere Limited and its related entities distributing this
> document and each of their respective directors, officers and
> agents ("the  Were Group") believe that the information contained
> in this document is correct and that any estimates, opinions,
> conclusions or recommendations contained in this document are
> reasonably held or made as at the time of compilation. However,
> no warranty is made as to the accuracy or reliability of any
> estimates, opinions, conclusions, recommendations which may
> change without notice) or other information contained in this
> document and, to the maximum extent permitted by law, the Were
> Group disclaims all liability and responsibility for any direct
> or indirect loss or damage which may be suffered by any recipient
> through relying on anything contained in or omitted from this document.
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help, please!

2002-05-15 Thread Yan Hai

Hi, I installed apache1.3, tomcat 3.3.1, on windows 2000. mod_jk.dll
is put in apache/modules.
apache starts well with following message:
Apache/1.3.24(win32) mod_jk/1.1.0 running...

and it displayed apache welcome page. but all pages in htdocs
cannot be reached, even the manual, requests are all forwarded to tomcat 
which doesn't
have those pages. I guess there's some problem with document base,etc.
Pls help me. thanks a lot.
Jane





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


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Stopping display of included jsp modules

2002-05-15 Thread Geoff Apps

In our application all URL requests matching *.abc are directed to our own
servlet. This servlet processes the request, sets up beans, and then forward
the request to a .jsp page for display.

We also have requests matching *.js, *.css, and *.gif directed to the
default servlet to serve  these static resources.

To enable the processing of jsp pages we also have *.jsp requests being
directed to the JSP servlet.

The problem is that we would like *.jsp requests to the container to be
rejected, but we need the jsp processing to occur when the jsp components
are forwarded to from the servlet that processes *.abc requests.

Previously, we used Apache connecting to Tomcat, and we were able to only
allow *.abc requests through from Apache to Tomcat. (The reason we would
like to not use Apache is that the load on this application is low and we
would like to reduce complexity.).

The issue is that if someone requests a *.jsp resource then the beans
required to correctly display the page do not exist, or only part of a page
is being displayed.

A valve looks like a good solution, but the only valve's I have seen are
associated with IP or Hostname checking. Is it possible to write your own
valve, or is there a more elegant solution to my problem ?

Any ideas will be greatly appreciated.

Regards,

Geoff

 








JBWERE  LIMITED
DISCLAIMER

JBWere Limited and its related entities distributing this document and each of their 
respective directors, officers and agents ("the  Were Group") believe that the 
information contained in this document is correct and that any estimates, opinions, 
conclusions or recommendations contained in this document are reasonably held or made 
as at the time of compilation. However, no warranty is made as to the accuracy or 
reliability of any estimates, opinions, conclusions, recommendations which may change 
without notice) or other information contained in this document and, to the maximum 
extent permitted by law, the Were Group disclaims all liability and responsibility for 
any direct or indirect loss or damage which may be suffered by any recipient through 
relying on anything contained in or omitted from this document.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Turning off caching in Tomcat 4?

2002-05-15 Thread Eric . Bier

Tomcat-user list,

I using Tomcat 4.0 to serve some pages that frequently change.  (They are modified by 
software.)  I am seeing cases where Tomcat serves the OLD version of the page seconds 
and sometimes minutes after a modification has been made.  This does not appear to be 
a problem with file system caches, as I can see the new version of the file in text 
editors and even different Web servers while Tomcat is still serving up the old 
version.

So, I am wondering.  Does tomcat cache recently requested pages?  If so, is there a 
way to turn this caching off?

-- Eric

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_jk not mapping uri successfully for servlets on 3.3.1

2002-05-15 Thread Chris Herrmann

How do I determine which it is? I downloaded the binaries...

uno momento...

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i38
6/mod_jk-3.3-ap13-eapi.so

Sorry, I don't know whether it's tomcat-connectors or tomcat...

I added the context manually for the ones I need right now, and its fine. I
think you've just answered my next question, which was... how do I generate
mod_jk.conf-auto automatically, without me needing to build it :o)

so my mod_jk.conf file now has something like...

JkMount /webapp1/servlet/* ajp13
...
...
...


Thanks for your help Larry,

Cheers,

Chris

|-Original Message-
|From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, 15 May 2002 23:01
|To: 'Tomcat Users List'
|Subject: RE: mod_jk not mapping uri successfully for servlets on 3.3.1
|
|
|Chris,
|
|Before I start investigating, would you confirm that this is
|mod_jk built from jakarta-tomcat-connectors/jk/native or
|jakarta-tomcat/src/native source.  In the mean time, feel
|free to use multiple:
|
|   JkMount //servlet/* 
|
|Also, unless you need special settings, the Tomcat 3.3.1
|generated config files should be close to what you are looking
|for.  Try "bin/startup jkconf" to generate them and take a
|look.
|
|Cheers,
|Larry
|


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Starting TOmcat at Bootup

2002-05-15 Thread Chris Herrmann

I've created my own init script, doctored from the original apache one or
something.

chkconfig tomcat on

Check your paths etc. It's a little messy, but hell, it works.

|-Original Message-
|From: Carlos [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, 15 May 2002 22:29
|To: 'Tomcat Users List'
|Subject: RE: Starting TOmcat at Bootup
|
|
|Hi Jonny,
|
|Try adding it via WebAdmin.  Go to Bootup and Shutdown --> Create a new
|bootup or shutdown action.  In the Create Action screen create the
|action called tomcat wiith the script that I sent.  Webadmin adds it to
|the right folder and presto.  You can test the script right from the
|Create Action screen.
|
|Hope this helps.
|Regards,
|
|Carlos Oliva
|Senior Programmer/Analyst
|Positive Business Solutions, Inc.
|Cincinnati, OH 45240-1640
|(513) 772 - 2255 ext 129
|[EMAIL PROTECTED]
|Yahoo ID: ramboid_1997
|
|
|-Original Message-
|From: Johnny [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, May 14, 2002 3:00 AM
|To: Tomcat Users List
|Subject: RE: Starting TOmcat at Bootup
|
|
|
| Hi Carlos,
|
| In my Redhat v7.2 machine, I added the "tomcat" bootup file (followed
|your
|script) inside "init.d" folder, but it's still not working. Did I miss
|out
|something?
|
| Johnny.
|
|-Original Message-
|From: Carlos [mailto:[EMAIL PROTECTED]]
|Sent: Monday, May 13, 2002 9:33 PM
|To: 'Tomcat Users List'
|Subject: RE: Starting TOmcat at Bootup
|
|
|Hi Abraham,
|
|I am using a script that is very similar to one that I found in earlier
|postings of this forum.  I created it with the webadmin, named it
|tomcat, and it installed n init.d.  It seem to start tomcat well in
|Linux RedHat v7.x.  I did not link it to the user tomcat like the
|postings of your e-mail suggest.
|
|Anyways, I would appreciate any comments about the script that follows:
|
|
|#!/bin/sh
|# description: Starting Tomcat at bootup
|# chkconfig: 2345 99 00
|#
|
|# Source function library
|. /etc/rc.d/init.d/functions
|
|# See how we are called
|case "$1" in
|start)
|   echo -n "Starting tomcat: "
|   export JAVA_HOME=/opt/IBMJava2-131
|
|export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1
|
|   /usr/local/jakarta-tomcat-4.0.1/bin/startup.sh
|
|   echo
|   touch /var/lock/subsys/tomcat
|   ;;
|stop)
|   echo -n "Shutting down tomcat: "
|
|   export JAVA_HOME=/opt/IBMJava2-131
|export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1
|
|   /usr/local/jakarta-tomcat-4.0.1/bin/shutdown.sh
|   rm -f /var/lock/subsys/tomcat
|   ;;
|restart)
|$0 stop
|$0 start
|;;
|*)
|   echo "Usage: $0 { start | stop|restart|reload|status }"
|exit 1
|   ;;
|esac
|exit 0
|
|Carlos Oliva
|Senior Programmer/Analyst
|Positive Business Solutions, Inc.
|Cincinnati, OH 45240-1640
|(513) 772 - 2255 ext 129
|[EMAIL PROTECTED]
|Yahoo ID: ramboid_1997
|
|
|
|--
|To unsubscribe, e-mail:
|
|For additional commands, e-mail:
|
|
|--
|To unsubscribe, e-mail:

For additional commands, e-mail:





tomcat
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: JNDI/LDAP/JSP Example?

2002-05-15 Thread Allen Chesley

Very nice, but not quite what I need.

For one, user authentication in JNDIRealms is not working, and won't until
Tomcat 4.1 or later.  That means I cannot use it to log in users, only the
admin entry embedded in the code.

For another, I want to access and store DATA in an LDAP server, not just use
it to authenticate.  I need to know how to set up a structure to allow me to
both read (unauthenticated) and modify (authenticated) using JSP's.

Like I said, there is a fair number of examples of how to do it using a
standalone JAVA app, and how to use JDBC to do it in a JSP, but none that I
can find that combine LDAP accesses with JSP.

Chakradhar Tallam wrote:

> http://www.vsj.co.uk/archive/Feb2002/Javanet/javanet1-0202.asp
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html
>
> ct
>
> -Original Message-
> From: Allen Chesley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 16 May 2002 8:31 AM
> To: Tomcat User Mail List
> Subject: JNDI/LDAP/JSP Example?
>
> Does anyone know a good reference for a working application that uses
> LDAP with JNDI in JSP (with or without Beans)?
>
> I have read all of the existing documents/pages I can find, and they all
> show JNDI/LDAP with JAVA apps.  I assume that something similar to a
> JDBC Context would be appropriate, but I have been unable to figure out
> where the differences lie.
>
> --
> Allen L. Chesley
> Senior Systems Engineer
> Raytheon
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

--
Allen L. Chesley
Senior Systems Engineer
Raytheon



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Website for Tomcat/Apache Integration...

2002-05-15 Thread Ben Rometsch

Hi There,

Is there a website out there that I have yet to find that details common
setups for Tomcat/Apache/Linux ? I cant seem to find any coherent
information on this at all. I've been reading and reading and reading
(especially about connectors) and I'm still confused...

I'd be happy to set up a small site with a few example configurations
along with step-by-step instructions on how to get things running under
Linux/Windows. Maybe also detailing what the different connectors are,
how the different versions of tomcat and apache affect each other etc.
etc.

Would anyone be interested in helping me out? 

Thanks,
Ben Rometsch


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JNDI/LDAP/JSP Example?

2002-05-15 Thread Chakradhar Tallam

http://www.vsj.co.uk/archive/Feb2002/Javanet/javanet1-0202.asp
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

ct

-Original Message-
From: Allen Chesley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 May 2002 8:31 AM
To: Tomcat User Mail List
Subject: JNDI/LDAP/JSP Example?


Does anyone know a good reference for a working application that uses
LDAP with JNDI in JSP (with or without Beans)?

I have read all of the existing documents/pages I can find, and they all
show JNDI/LDAP with JAVA apps.  I assume that something similar to a
JDBC Context would be appropriate, but I have been unable to figure out
where the differences lie.

--
Allen L. Chesley
Senior Systems Engineer
Raytheon



--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: any jsp/servlet based groupware solutions out there?

2002-05-15 Thread mls

Rick Fincher wrote:
> I'm sure a lot of folks have little thangs like that that we can
> pool and make a nice Tomcat office productivity pack.

Tomcat productivity pack sounds like a great idea! As a start to
that, it might be helpful to know what kinds of applications folks
might find useful on their Desktop / Intranet / Internet.

das

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Redirecting a port 80 request to port 443

2002-05-15 Thread David_Morrison


I am working to fix a web app that has a remote applet making 
a queryString-appended request directly to a servlet class
on the server.

The applets are already out, so I kind have to bat clean-up now.

Can a configuration edit be made to Tomcat (or Apache) to redirect 
any calls coming in on 80 automatically to 443, or at least send a 
redirect back to the client?

Thanks for any advice  --- DaveM

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and Java Locale

2002-05-15 Thread Nance, Michael

Drew thanks for the reply.
I tried changing the file encoding to UTF-8 and I still don't get the Euro

Basically I am creating a form like this



Message: 




Then when the form is submitted I print it back out to the JSP itself first
with HTML and a system..out.println.
In the HTML all characters print correctln.. in the system.out  The Euro
does not print.

We are running on a Solaris box with Weblogic and Tomat and my Browser is on
a Windows NT machine  (In US, Ca) .  Actualy when I changed to UTF-8 the
characters came out as Chineese characters..  Without the file encoding the
system.outs would come up as all ?'s with it as UTF-8 they are all wrong.

I got this from View Page Info
Form 1:
   Action URL: http://columbus/AmailTest.jsp
   Encoding: application/x-www-form-urlencoded (default)
   Method: Get
  Form 2:
   Action URL: http://columbus/AmailTest.jsp
   Encoding: application/x-www-form-urlencoded (default)
   Method: Get
File MIME Type:
 text/html
 Source:
 Currently in disk cache
  Local cache file:
 M0DB68LH.JSP
   Last Modified:
 Unknown
   Last Modified:
 Unknown
  Content Length:
 17288
 Expires:
 No date given
 Charset:
 UTF-8
Security:
 This is an insecure document that is not encrypted and
offers no security protection


Thanks again for Replying.. I am really stuck
-Original Message-
From: Drew Sudell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 3:33 PM
To: Tomcat Users List
Subject: Tomcat and Java Locale


Nance, Michael writes:
 > I am trying to solve a problem we are having with Non-ASCII characters
and
 > the Euro.
 > 
 > First I am starting tomcat with -Dfile.encoding=ISO8859-1 in out java
 > startup.
 > 
 > However if I do something like this
 > 
 > Locale localeTest = new Locale("de","de", "Euro");
 > NumberFormat nfTest = NumberFormat.getCurrencyInstance(localeTest);
 >  
 > Test
 > <%=nfTest.format(5)%>
 > 
 > 
 > 
 > 
 > I get his result from My Jsp
 > Test 
 > ? 55.555,00
 > I do do a system.out of non Asii Characters  such as é  â ä  à ë è ï -
euro
 > symbol (EUR) - British pound £
 > and All print except for the Euro (EUR) but if I echo it to the browser
it
 > prints fine.
 > We are on Unix Boxes with Solaris 7
 > 
 > Is there something else I am missing
 > 

Well for one, there is no Euro in ISO 8859-1.  The major difference
between Latin 1 (8859-1) and Latin 9 (8859-15) aka Latin 0 is that the 
latter has a Euro were the Universal Currency Symbol is in Latin 1 (0xA4).

You mention that the Euro prints fine when you "echo it to the browser".
I'm not sure what that means, but how do you echo it and is the
browser running on a windows box by any chance?  The western encoding
on windows is not exactly Latin anything.  It's CP1252, which is
Latin1, with some extra characters in the second control set from 0x80
to 0x9F.  Guess where they stuck the Euro?  Yep somewhere everyone
else expects a control character (0x80).  No reasonable software
running on Solaris will think that's a Euro, or even printable.  But
if you shove the bits back to a Windows box, you'll see a Euro.

A good rundown of ISO 8859 is at
http://czyborra.com/charsets/iso8859.html

You might try using 8859-15, or perhaps cp1252 if you are only
supporting browsers on windows.  Note you'll need to update the
content type in the page directive of the JSP.  By default it's 8859-1
and all character data is transcoded to that.  In which case I'd
expect you to get '?'s instead of Euros.  Since you're getting the
Currency Symbol from the system, I'd expect you to be getting a proper
UCS2 Euro (\u20ac) in any case -- ie I suspect the default file
encoding doesn't make a difference.  But the encoding of the JSP
output sure will.

Another strategy is to output UTF-8.  Again, the trick is likely to be 
setting the JSP encoding/content-type.

If that doesn't work.  Let me know 
 o what you do see when use the above example
 o what the content type in the page directive is (if any)
 o what environment/locale you are viewing this in (ie where is the
   browser)
 o what the browser thinks it got back (eg what encoding is it trying
   to display, what did it think the content type was.  for netscape
   do View-Page Info.  Not quite sure how to get the content type
   in IE)

-- 
Drew Sudell [EMAIL PROTECTED]  http://www.op.net/~asudell

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Any one knows how to compile, install mod_jk on Apache2 andTomca t4.0.3?

2002-05-15 Thread John P. Dodge

Use the buildconf.sh script to build the configure script and then run
configure. You will need tge GNU tools autoconf, automake and aclocal.

cd ./jakarta-tomcat-connectors/jk/native/

./buildconf.sh
   output
   libtoolize --force --automake
   automake -a --foreign -i
   aclocal
   autoconf
   ---end---

./configure --with-apxs= \
--with-java-home=${JAVA_HOME} \
--with-java-platform=2
--enable-jni



On Wed, 15 May 2002 [EMAIL PROTECTED] wrote:

> Hi,
> If any one knows how to install mod_jk AJP on Apache2 and Tomcat4.0.3.
> Please show us here. Many people here are having problem with that. I even
> don't know if it will work for Apache2 and Tomcat4.0.3.
>
> This is what I've tried:
>
> to go:
> {jakarta-tomcat-3.2.4-src}/src/native/apache2.0
>
> type:
>
> $A{PACHE2_HOME}/bin/apxs -o mod_jk.so -c -I ${JAVA_HOME}/include -I
> ${JAVA_HOME}/include/solaris -I ../jk/ -l posix4 -D SOLARIS *.c ../jk/*.c
>
> I got errors:
> mod_jk.c:75: util_date.h: No such file or directory
> mod_jk.c:76: http_conf_globals.h: No such file or directory
> apxs:Error: Command failed with rc=65536
>
>
> This command works for apache1.3
>
>
> Thank you in advance.
>
> Yunming
>


"Mon aéroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat and Java Locale

2002-05-15 Thread Drew Sudell

Nance, Michael writes:
 > I am trying to solve a problem we are having with Non-ASCII characters and
 > the Euro.
 > 
 > First I am starting tomcat with -Dfile.encoding=ISO8859-1 in out java
 > startup.
 > 
 > However if I do something like this
 > 
 > Locale localeTest = new Locale("de","de", "Euro");
 > NumberFormat nfTest = NumberFormat.getCurrencyInstance(localeTest);
 >  
 > Test
 > <%=nfTest.format(5)%>
 > 
 > 
 > 
 > 
 > I get his result from My Jsp
 > Test 
 > ? 55.555,00
 > I do do a system.out of non Asii Characters  such as é  â ä  à ë è ï - euro
 > symbol (EUR) - British pound £
 > and All print except for the Euro (EUR) but if I echo it to the browser it
 > prints fine.
 > We are on Unix Boxes with Solaris 7
 > 
 > Is there something else I am missing
 > 

Well for one, there is no Euro in ISO 8859-1.  The major difference
between Latin 1 (8859-1) and Latin 9 (8859-15) aka Latin 0 is that the 
latter has a Euro were the Universal Currency Symbol is in Latin 1 (0xA4).

You mention that the Euro prints fine when you "echo it to the browser".
I'm not sure what that means, but how do you echo it and is the
browser running on a windows box by any chance?  The western encoding
on windows is not exactly Latin anything.  It's CP1252, which is
Latin1, with some extra characters in the second control set from 0x80
to 0x9F.  Guess where they stuck the Euro?  Yep somewhere everyone
else expects a control character (0x80).  No reasonable software
running on Solaris will think that's a Euro, or even printable.  But
if you shove the bits back to a Windows box, you'll see a Euro.

A good rundown of ISO 8859 is at
http://czyborra.com/charsets/iso8859.html

You might try using 8859-15, or perhaps cp1252 if you are only
supporting browsers on windows.  Note you'll need to update the
content type in the page directive of the JSP.  By default it's 8859-1
and all character data is transcoded to that.  In which case I'd
expect you to get '?'s instead of Euros.  Since you're getting the
Currency Symbol from the system, I'd expect you to be getting a proper
UCS2 Euro (\u20ac) in any case -- ie I suspect the default file
encoding doesn't make a difference.  But the encoding of the JSP
output sure will.

Another strategy is to output UTF-8.  Again, the trick is likely to be 
setting the JSP encoding/content-type.

If that doesn't work.  Let me know 
 o what you do see when use the above example
 o what the content type in the page directive is (if any)
 o what environment/locale you are viewing this in (ie where is the
   browser)
 o what the browser thinks it got back (eg what encoding is it trying
   to display, what did it think the content type was.  for netscape
   do View-Page Info.  Not quite sure how to get the content type
   in IE)

-- 
Drew Sudell [EMAIL PROTECTED]  http://www.op.net/~asudell

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




StackOverflowError

2002-05-15 Thread Jeff Macomber

Hi All,

I am having a strange problem with tomcat 4.0.3 LE and JDK 1.4 on RH Linux
7.1.  I am running a webapp that uses jsp and beans.  One page calls a bean
which then loads a couple of classes and calls a method or two.  All these
classes are local to the webapp (i.e. /WEB-INF/classes tree).
This is being done in a couple different applications with no problems.  In
this one application though when executing the bean in Tomcat the exception
below is thrown.  Testing using a main in the bean and passing in the same
data as in the webapp doesn't cause any problems.  The recursion issue seems
very unlikely since we are at most 3 levels below the jsp.  We are not
passing large amounts of data from one function call to another (5 to 10
bytes).  I have tried setting the ulimit -s 2048 before starting tomcat with
no success.  Has anyone seen this error?  Do you have any clue what could be
causing it?Is it possible that the bean is causing some kind of
exception which sets up a exception loop in tomcat causing the stack
overflow?  I have run out of ideas. Any pointers would be appreciated.


Thanks,
Jeff

javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
at
org.apache.jsp.SetupAttributeCapture$jsp._jspService(SetupAttributeCapture$j
sp.java:460)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:381)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:356)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:495)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.StackOverflowError

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JNDI/LDAP/JSP Example?

2002-05-15 Thread Allen Chesley

Does anyone know a good reference for a working application that uses
LDAP with JNDI in JSP (with or without Beans)?

I have read all of the existing documents/pages I can find, and they all
show JNDI/LDAP with JAVA apps.  I assume that something similar to a
JDBC Context would be appropriate, but I have been unable to figure out
where the differences lie.

--
Allen L. Chesley
Senior Systems Engineer
Raytheon



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Any one knows how to compile, install mod_jk on Apache2 andTomca t4.0.3?

2002-05-15 Thread Simon Stewart

On Wed, 2002-05-15 at 23:15, [EMAIL PROTECTED] wrote:
> Hi, 
> If any one knows how to install mod_jk AJP on Apache2 and Tomcat4.0.3.
> Please show us here. Many people here are having problem with that. I even
> don't know if it will work for Apache2 and Tomcat4.0.3. 

IME, it doesn't work on Linux, but the way that I used to compile it is
up at http://www.pubbitch.org/jboss/

HTH,

Simon


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can somebody help: Exception while accessing manager app from embedded tomcat

2002-05-15 Thread Ingo Bruell

Hi Tomcat,

SGG> root cause
SGG> java.lang.SecurityException: Servlet of class 
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by this 
web application
SGG> at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:900)

You need to set the privileged attribute in the Context Tag of the
server.xml like the one in the delivered example.

so long


Ingo Bruell

---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Any one knows how to compile, install mod_jk on Apache2 and Tomcat4.0.3?

2002-05-15 Thread Yunming . Li

Hi, 
If any one knows how to install mod_jk AJP on Apache2 and Tomcat4.0.3.
Please show us here. Many people here are having problem with that. I even
don't know if it will work for Apache2 and Tomcat4.0.3. 

This is what I've tried:

to go:
{jakarta-tomcat-3.2.4-src}/src/native/apache2.0

type:

$A{PACHE2_HOME}/bin/apxs -o mod_jk.so -c -I ${JAVA_HOME}/include -I
${JAVA_HOME}/include/solaris -I ../jk/ -l posix4 -D SOLARIS *.c ../jk/*.c

I got errors:
mod_jk.c:75: util_date.h: No such file or directory
mod_jk.c:76: http_conf_globals.h: No such file or directory
apxs:Error: Command failed with rc=65536


This command works for apache1.3


Thank you in advance.

Yunming



Can somebody help: Exception while accessing manager app from embedded tomcat

2002-05-15 Thread Sankaranarayanan (Ganesh) Ganapathy

I am still looking for answers, can somebody help?

Thanx in advance
Ganesh

-Original Message-
From: Sankaranarayanan (Ganesh) Ganapathy 
Sent: Tuesday, May 14, 2002 11:59 AM
To: [EMAIL PROTECTED]
Subject: Exception while accessing manager app from embedded tomcat


Hi All,
I launched the embedded tomcat in my application - it is configured to use memory 
realm. I added a user with the manager role in the tomcat-users.xml file. When I try 
access the manager app I see the following exception enclosed at the bottom of the 
mail. The same thing seems to work fine if I launch the regular tomcat.
Any ideas?
Thanx
Ganesh
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: Error allocating a servlet instance
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, Compiled 
Code)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, 
Compiled Code)
at java.lang.Thread.run(Thread.java:479)
root cause 
java.lang.SecurityException: Servlet of class 
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by this 
web application
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:900)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.cat

Re: CoyoteConnector with SSL no longer works, was Re: [ANNOUNCEMENT] Tomcat 4.0.4 Beta 3 released

2002-05-15 Thread Jonathan Eric Miller

Thanks, but, unless I'm overlooking something the factory is still listed as
org.apache.catalina.net.SSLServerSocketFactory (for use with HttpConnector).
There is no example for SSL with Coyote in the provided server.xml.

Jon

- Original Message -
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 10:36 AM
Subject: Re: CoyoteConnector with SSL no longer works, was Re:
[ANNOUNCEMENT] Tomcat 4.0.4 Beta 3 released


> > I just noticed that the CoyoteConnector no longer seems to work. I'm
using
> > the config listed below for my server.xml. This worked fine with Tomcat
> > 4.0.4b2-01 and Coyote 1.0b5. Now, it just hangs.
>
> The syntax changed (the factory classname you have to use with Coyote is
> different). Please refer to the bundled server.xml.
>
> Remy
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Socket output stream does not deliver...

2002-05-15 Thread Ganey, Todd

Are you using HTTP/1.1 or HTTP/1.0??

With HTTP/1.1 it might be determining the size of your response so it can
properly encode it before sending.

HTH,
Todd

-Original Message-
From: Claude Montpetit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 2:04 PM
To: [EMAIL PROTECTED]
Subject: Socket output stream does not deliver...


Hi,

I am working on a servlet that opens a socket to a server and waits for
incoming data.

The socket opens and the connection is fine.

The server sends data using the socket.getOutputStream().

The server calls flush() on the socket output stream after writing (even if
the actual implementation does nothing ...)

The problem is that the data sent from the server to the client is only
received by the client when the output stream is closed by the server. This
does not seem to be a buffer-size issue as I have been sending huge amounts
of data and it never traverses to the client unless the server closes the
stream, or the socket.

So why do I send this here? Because I only get this problem when running the
client in Tomcat 4 with JDK 1.4.

Everything is fine when running Tomcat 4 with JDK 1.3, or when running the
client on a non-tomcat environment under JDK 1.4.

Both the client and the server are running on the same Windows XP machine.

Anyone has a clue about what's going on?

Claude


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Socket output stream does not deliver...

2002-05-15 Thread Claude Montpetit

Hi,

I am working on a servlet that opens a socket to a server and waits for
incoming data.

The socket opens and the connection is fine.

The server sends data using the socket.getOutputStream().

The server calls flush() on the socket output stream after writing (even if
the actual implementation does nothing ...)

The problem is that the data sent from the server to the client is only
received by the client when the output stream is closed by the server. This
does not seem to be a buffer-size issue as I have been sending huge amounts
of data and it never traverses to the client unless the server closes the
stream, or the socket.

So why do I send this here? Because I only get this problem when running the
client in Tomcat 4 with JDK 1.4.

Everything is fine when running Tomcat 4 with JDK 1.3, or when running the
client on a non-tomcat environment under JDK 1.4.

Both the client and the server are running on the same Windows XP machine.

Anyone has a clue about what's going on?

Claude


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat-Cocoon on windows NT

2002-05-15 Thread Whitcomb, Roger

I believe the web-inf directory needs to be "WEB-INF" even on NT (all upper case).  
Try renaming it and making sure all references (in .XML or .conf files) are all 
upper-case as well.

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED]  


-Original Message-
From: Gabriel Maffia [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 1:04 PM
To: 'Tomcat Users List'
Subject: Tomcat-Cocoon on windows NT


Hi!

I´m trying to migrate a site from a host running Unix to one running Windows NT 
(weird, isn´t it? :)  ).

Now, I think I have a problem with paths or something, because I get this error

Unable to open resource: Web-inf\cocoon.properties
java.lang.NullPointerException  at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
.
.


The cocoon.poperties file looks like this:


##
#  Cocoon Configuration
file #

##


##
# IMPORTANT - YOU MUST RESTART YOUR SERVLET ENGINE WHENEVER YOU CHANGE THIS
FILE #
#
 #
#  This is a limitation which is fixed in Cocoon
2.  #

##


##
# Global Configurations  #
##

# Indicates whether or not Cocoon should be visible if
# the requested URI equals the specified one.
selfservlet.enabled = false
selfservlet.uri = \Cocoon.xml

# Indicates whether or not Cocoon should handle errors internally
# and format the error and the exception stack trace to the client
# or return the HTTP error code to the web server and let it handle it.
handle.errors.internally = true

# Indicates the log severity level
#log.level = emergency
#log.level = critical
log.level = error
#log.level = warning
#log.level = info
#log.level = debug



##
# XML Parsers#
##

# Apache Xerces 1.0.1+ (http://xml.apache.com/)
parser = org.apache.cocoon.parser.XercesParser

# SUN ProjectX TR2 (http://java.sun.com/xml/)
#parser = org.apache.cocoon.parser.SunXMLParser

# Indicate whether the XML file should be validated or not
# this is turned off by default for faster operation.
parser.validate = false


##
# XSLT Transformers  #
##

# Apache Xalan (http://xml.apache.org/)
transformer = org.apache.cocoon.transformer.XalanTransformer

# James Clark's XT (http://www.jclark.com/)
#transformer = org.apache.cocoon.transformer.XTTransformer



##
# XML Producers  #
##

# For example, if you want to produce your XML template reading it from
# the file system, using your producer, you should request the URI:
#   http://your.site.com/your_XML_file.xml?producer=file

# This is the request parameter used to identify the producer in the
request:
# (default value is "producer")
producer.parameter = producer

# The syntax for this is
#   producer.type.xxx = full.class.name
# where "xxx" is the producer indentier used in the request
producer.type.file = org.apache.cocoon.producer.ProducerFromFile

# This is used in the example files
producer.type.dummy = org.apache.cocoon.example.DummyProducer

# When producer indication is present in the request
# this configuration allows to map those requests to a particular
# producer indicated here with its type.
# NOTE: this type must present in the above map.
producer.default = file





##
# XML Processors #
##

# These are used when the  PI is present.
# If no PI of that type is present, no processing is performed.
# The syntax for this is
#   processor.type.xxx = full.class.name

# XSL Transformations (XSLT)
processor.type.xslt = org.apache.cocoon.processor.xslt.XSLTProcessor

# SQL Processor
processor.type.sql = org.apache.cocoon.processor.sql.SQLProcessor

# LDAP Processor
# NOTE: you need to have the SUN JDNI API (jndi.jar) in your classpath
# in order for this processor to work. Check the FAQ for more information.
#processor.type.ldap = org.apache.cocoon.processor.ldap.LdapProcessor

# XInclude P

RE: HTTP Tunnel question

2002-05-15 Thread Stuart Stephen

Hi all,

I have run into another problem. I can recieve messages from the server that
I am tunnelling to and send them to the applet fine. However it is proving
difficult to do things the other way round, when I want to send a message
from the applet to the
internal server I am having "java.io.EOFException: code expected" exceptions
appear.

The connection from the Applet is just a simple URLConnection. This is not
closed unless the applet closes or the user quits.

I have some tomcat logs to show you what is going wrong. I hope someone can
be of help here.

Thanks,
Stuart Stephen

start of servlet
ToApplet()
ToServer()
...Reading for Object Streams
java.io.EOFException: Expecting code
at java.io.ObjectInputStream.peekCode(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at TestTunnel$ToApplet.run(TestTunnel.java:94)
>From ChatServer: "some random string object blah blah blah"
...Reading for Object Streams
java.io.EOFException: Expecting code
at java.io.ObjectInputStream.peekCode(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at TestTunnel$ToApplet.run(TestTunnel.java:94)
java.io.EOFException: Expecting code
at java.io.ObjectInputStream.peekCode(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at TestTunnel$ToApplet.run(TestTunnel.java:94)
etc...

My code is as follows.

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.ServletException.*;
import javax.servlet.UnavailableException.*;
import java.lang.Exception.*;
import java.io.*;
import java.util.*;
import java.net.*;

public class TestTunnel extends HttpServlet {

  // applet connections
  ObjectOutputStream objOut = null;
  ObjectInputStream objIn = null;

  // chatserver connections
  Socket socket = null;
  ObjectOutputStream sockObjOut = null;
  ObjectInputStream sockObjIn = null;

  ToApplet app = null;
  ToServer ser = null;

  protected void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException  {
try {
  // get data stream from applet
  System.err.println("start of servlet");

  objOut = new ObjectOutputStream(res.getOutputStream());
  objIn = new ObjectInputStream(req.getInputStream());
  objOut.useProtocolVersion(objOut.PROTOCOL_VERSION_1);

  // create socket to chat server and the streams
  socket = new Socket("127.0.0.1", 3000);
  sockObjOut = new ObjectOutputStream(socket.getOutputStream());
  sockObjIn = new ObjectInputStream(socket.getInputStream());
  sockObjOut.useProtocolVersion(sockObjOut.PROTOCOL_VERSION_1);

  app = new ToApplet(objIn, sockObjOut);
  ser = new ToServer(sockObjIn, objOut);

  while(ser.connIsAlive() || app.connIsAlive()) {
try {
  Thread.sleep(500);
}
catch(Exception ex) {
  ex.printStackTrace();
}
  }

  System.err.println("end of servlet");
}
catch(Exception e) {
  e.printStackTrace();
}
  }

  public void destroy() {
try {
  objIn.close();
  objOut.close();
  sockObjIn.close();
  sockObjOut.close();
  socket.close();
}
catch(Exception e) {
  e.printStackTrace();
}
  }

  private class ToApplet extends Thread {
ObjectOutputStream objOut = null;
ObjectInputStream sockObjIn = null;
boolean isAlive = true;

public ToApplet(ObjectInputStream sockObjIn, ObjectOutputStream objOut)
{
  try {
System.err.println("ToApplet()");
this.objOut = objOut;
this.sockObjIn = sockObjIn;
this.start();
  }
  catch(Exception e) {
e.printStackTrace();
  }
}

public void run() {
  try {
Object obj = new Object();
while(obj!=null) {
  try {
System.err.println("...Reading for Object Streams");
obj = sockObjIn.readObject();
System.err.println("...Read Object Stream");
write(obj);
  }
  catch(EOFException eof) {
eof.printStackTrace();
  }
  catch(Exception ex) {
ex.printStackTrace();
  }
}
  }
  catch(Exception e) {
e.printStackTrace();
  }
}

public boolean connIsAlive() {
  return isAlive;
}

public void write(Object msg) {
  try {
System.err.println("ChatApplet: "+msg.toString());
objOut.writeObject(msg);
objOut.flush();
objOut.reset();
  }
  catch(Exception e) {
e.printStackTrace();
isAlive = false;
  }
}
  }

  private class ToServer extends Thread {
ObjectInputStream objIn = null;
ObjectOutputStream sockObjOut = null;
boolean isAlive = tru

RE: How to end a JSP

2002-05-15 Thread Adam Pfeiffer

Thanks for all the input. return; worked perfect.  

Thanks.

--- James Mitchell <[EMAIL PROTECTED]> wrote:
> 
> that was a joke
> 
> 
> JM
> 
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 15, 2002 4:37 PM
> > To: Tomcat Users List
> > Subject: RE: How to end a JSP
> >
> >
> > Try this.
> >
> >
> > System.exit(0);
> >
> > That works for me ;)
> >
> > JM
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, May 15, 2002 4:34 PM
> > > To: Tomcat Users List
> > > Subject: Re: How to end a JSP
> > >
> > >
> > >
> > > Since nobody else answered, not sure but I would think a simple
> > "return;"
> > > as placed would do what you want.
> > > troy
> > >
> > >
> > >
> > >
> > >
> > >   Adam Pfeiffer
> > >
> > >> > [EMAIL PROTECTED]
> > >   ahoo.com>cc:
> > >
> > >Subject: How to
> > > end a JSP
> >
> > >   05/15/2002 01:11
> > >
> > >   PM
> > >
> > >   Please respond
> > >
> > >   to "Tomcat Users
> > >
> > >   List"
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > <%@page contentType="text/html"%>
> > > 
> > > JSP Page
> > > 
> > >
> > > <%@ page import="java.io.*" %>
> > > <%@ page import="java.util.*" %>
> > >
> > >  > > ="mada.trips.PictureBrowserBean" />
> > >
> > > <%
> > > //pictureBrowserBean.setBaseDir(getServletConfig().getServletContext
> > > ().getRealPath("/"));
> > > pictureBrowserBean.setBaseDir("");
> > > pictureBrowserBean.setAlbumDir("images/");
> > > try {
> > >pictureBrowserBean.parseAlbums();
> > > }
> > > catch (NullPointerException e) {
> > >out.println(e.toString());
> > >return; // HERE
> > > }
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to end a JSP

2002-05-15 Thread Richard Bailey

I saw it once mentioned you could use out.close ();


At 04:36 PM 2002-05-15 -0400, James Mitchell wrote:
>Try this.
>
>
>System.exit(0);
>
>That works for me ;)
>
>JM
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 15, 2002 4:34 PM
> > To: Tomcat Users List
> > Subject: Re: How to end a JSP
> >
> >
> >
> > Since nobody else answered, not sure but I would think a simple "return;"
> > as placed would do what you want.
> > troy
> >
> >
> >
> >
> >
> >   Adam Pfeiffer
> >
> >> [EMAIL PROTECTED]
> >   ahoo.com>cc:
> >
> >Subject: How to
> > end a JSP
>
> >   05/15/2002 01:11
> >
> >   PM
> >
> >   Please respond
> >
> >   to "Tomcat Users
> >
> >   List"
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > <%@page contentType="text/html"%>
> > 
> > JSP Page
> > 
> >
> > <%@ page import="java.io.*" %>
> > <%@ page import="java.util.*" %>
> >
> >  > ="mada.trips.PictureBrowserBean" />
> >
> > <%
> > //pictureBrowserBean.setBaseDir(getServletConfig().getServletContext
> > ().getRealPath("/"));
> > pictureBrowserBean.setBaseDir("");
> > pictureBrowserBean.setAlbumDir("images/");
> > try {
> >pictureBrowserBean.parseAlbums();
> > }
> > catch (NullPointerException e) {
> >out.println(e.toString());
> >return; // HERE
> > }
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to end a JSP

2002-05-15 Thread James Mitchell


that was a joke


JM

> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 4:37 PM
> To: Tomcat Users List
> Subject: RE: How to end a JSP
>
>
> Try this.
>
>
> System.exit(0);
>
> That works for me ;)
>
> JM
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 15, 2002 4:34 PM
> > To: Tomcat Users List
> > Subject: Re: How to end a JSP
> >
> >
> >
> > Since nobody else answered, not sure but I would think a simple
> "return;"
> > as placed would do what you want.
> > troy
> >
> >
> >
> >
> >
> >   Adam Pfeiffer
> >
> >> [EMAIL PROTECTED]
> >   ahoo.com>cc:
> >
> >Subject: How to
> > end a JSP
>
> >   05/15/2002 01:11
> >
> >   PM
> >
> >   Please respond
> >
> >   to "Tomcat Users
> >
> >   List"
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > <%@page contentType="text/html"%>
> > 
> > JSP Page
> > 
> >
> > <%@ page import="java.io.*" %>
> > <%@ page import="java.util.*" %>
> >
> >  > ="mada.trips.PictureBrowserBean" />
> >
> > <%
> > //pictureBrowserBean.setBaseDir(getServletConfig().getServletContext
> > ().getRealPath("/"));
> > pictureBrowserBean.setBaseDir("");
> > pictureBrowserBean.setAlbumDir("images/");
> > try {
> >pictureBrowserBean.parseAlbums();
> > }
> > catch (NullPointerException e) {
> >out.println(e.toString());
> >return; // HERE
> > }
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to end a JSP

2002-05-15 Thread James Mitchell

Try this.


System.exit(0);

That works for me ;)

JM 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 4:34 PM
> To: Tomcat Users List
> Subject: Re: How to end a JSP
> 
> 
> 
> Since nobody else answered, not sure but I would think a simple "return;"
> as placed would do what you want.
> troy
> 
> 
> 
>   
>   
>   Adam Pfeiffer   
>   
>[EMAIL PROTECTED]  
>   ahoo.com>cc:
>   
>Subject: How to 
> end a JSP

>   05/15/2002 01:11
>   
>   PM  
>   
>   Please respond  
>   
>   to "Tomcat Users
>   
>   List"   
>   
>   
>   
>   
>   
> 
> 
> 
> 
> <%@page contentType="text/html"%>
> 
> JSP Page
> 
> 
> <%@ page import="java.io.*" %>
> <%@ page import="java.util.*" %>
> 
>  ="mada.trips.PictureBrowserBean" />
> 
> <%
> //pictureBrowserBean.setBaseDir(getServletConfig().getServletContext
> ().getRealPath("/"));
> pictureBrowserBean.setBaseDir("");
> pictureBrowserBean.setAlbumDir("images/");
> try {
>pictureBrowserBean.parseAlbums();
> }
> catch (NullPointerException e) {
>out.println(e.toString());
>return; // HERE
> }
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to end a JSP

2002-05-15 Thread TMotte


Since nobody else answered, not sure but I would think a simple "return;"
as placed would do what you want.
troy



   
 
  Adam Pfeiffer
 
  cc: 
 
   Subject: How to end a JSP   
 
  05/15/2002 01:11 
 
  PM   
 
  Please respond   
 
  to "Tomcat Users 
 
  List"
 
   
 
   
 




<%@page contentType="text/html"%>

JSP Page


<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>



<%
//pictureBrowserBean.setBaseDir(getServletConfig().getServletContext
().getRealPath("/"));
pictureBrowserBean.setBaseDir("");
pictureBrowserBean.setAlbumDir("images/");
try {
   pictureBrowserBean.parseAlbums();
}
catch (NullPointerException e) {
   out.println(e.toString());
   return; // HERE
}







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat-Cocoon on windows NT

2002-05-15 Thread Gabriel Maffia

Hi!

I´m trying to migrate a site from a host running Unix to one running Windows NT 
(weird, isn´t it? :)  ).

Now, I think I have a problem with paths or something, because I get this error

Unable to open resource: Web-inf\cocoon.properties
java.lang.NullPointerException  at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
.
.


The cocoon.poperties file looks like this:


##
#  Cocoon Configuration
file #

##


##
# IMPORTANT - YOU MUST RESTART YOUR SERVLET ENGINE WHENEVER YOU CHANGE THIS
FILE #
#
 #
#  This is a limitation which is fixed in Cocoon
2.  #

##


##
# Global Configurations  #
##

# Indicates whether or not Cocoon should be visible if
# the requested URI equals the specified one.
selfservlet.enabled = false
selfservlet.uri = \Cocoon.xml

# Indicates whether or not Cocoon should handle errors internally
# and format the error and the exception stack trace to the client
# or return the HTTP error code to the web server and let it handle it.
handle.errors.internally = true

# Indicates the log severity level
#log.level = emergency
#log.level = critical
log.level = error
#log.level = warning
#log.level = info
#log.level = debug



##
# XML Parsers#
##

# Apache Xerces 1.0.1+ (http://xml.apache.com/)
parser = org.apache.cocoon.parser.XercesParser

# SUN ProjectX TR2 (http://java.sun.com/xml/)
#parser = org.apache.cocoon.parser.SunXMLParser

# Indicate whether the XML file should be validated or not
# this is turned off by default for faster operation.
parser.validate = false


##
# XSLT Transformers  #
##

# Apache Xalan (http://xml.apache.org/)
transformer = org.apache.cocoon.transformer.XalanTransformer

# James Clark's XT (http://www.jclark.com/)
#transformer = org.apache.cocoon.transformer.XTTransformer



##
# XML Producers  #
##

# For example, if you want to produce your XML template reading it from
# the file system, using your producer, you should request the URI:
#   http://your.site.com/your_XML_file.xml?producer=file

# This is the request parameter used to identify the producer in the
request:
# (default value is "producer")
producer.parameter = producer

# The syntax for this is
#   producer.type.xxx = full.class.name
# where "xxx" is the producer indentier used in the request
producer.type.file = org.apache.cocoon.producer.ProducerFromFile

# This is used in the example files
producer.type.dummy = org.apache.cocoon.example.DummyProducer

# When producer indication is present in the request
# this configuration allows to map those requests to a particular
# producer indicated here with its type.
# NOTE: this type must present in the above map.
producer.default = file





##
# XML Processors #
##

# These are used when the  PI is present.
# If no PI of that type is present, no processing is performed.
# The syntax for this is
#   processor.type.xxx = full.class.name

# XSL Transformations (XSLT)
processor.type.xslt = org.apache.cocoon.processor.xslt.XSLTProcessor

# SQL Processor
processor.type.sql = org.apache.cocoon.processor.sql.SQLProcessor

# LDAP Processor
# NOTE: you need to have the SUN JDNI API (jndi.jar) in your classpath
# in order for this processor to work. Check the FAQ for more information.
#processor.type.ldap = org.apache.cocoon.processor.ldap.LdapProcessor

# XInclude Processor
processor.type.xinclude =
org.apache.cocoon.processor.xinclude.XIncludeProcessor

# Link Encoding Processor which encodes all links using response.encodeUrl()
processor.type.linkencode =
org.apache.cocoon.processor.LinkEncodingProcessor

##
# XSP Processor  #
##

# eXtensible Server Pages Processor (XSP)
processor.type.xsp = org.apache.cocoon.processor.xsp.XSPProcessor

# supported languages
processor.xsp.lang

RE: Can all virtual hosts use a webapp that is put inside $tomcat _home$/webapps?

2002-05-15 Thread Larry Isaacs

Tomcat 4.x uses a different architecture from Tomcat 3.3.x,
which is why their server.xml files contain very different
contents.  Thus,  isn't a supported element in
the 4.x server.xml.  You can probably accomplish the same
thing with multiple  elements, but not without a bit
more duplication of server.xml content than Tomcat 3.3.1.

Cheers,
Larry

> -Original Message-
> From: August Detlefsen [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 15, 2002 3:40 PM
> To: Tomcat Users List
> Subject: RE: Can all virtual hosts use a webapp that is put 
> inside $tomcat _home$/webapps?
> 
> 
> Is this also supported in TC 4.x? 
> 
> 
> 
> --- Larry Isaacs <[EMAIL PROTECTED]> wrote:
> > I don't believe Tomcat 3.2.x supports auto-serving the
> > "webapps" directory for hosts other than the default host.
> > However, this is supported in Tomcat 3.3.x.  The
> >  element in the server.xml file supports
> > specifying the directory and host, e.g.:
> > 
> > 
> > 
> > 
> > For details see:
> > 
> >
>  l#AutoWebApp>
> > 
> > Cheers,
> > Larry
> > 
> > > -Original Message-
> > > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] 
> > > Sent: Tuesday, May 14, 2002 7:58 PM
> > > To: Tomcat Users List
> > > Subject: RE: Can all virtual hosts use a webapp that is put 
> > > inside $tomcat_home$/webapps?
> > > 
> > > 
> > > Everyone must have gone home...I'm really hoping that someone 
> > > can help with
> > > this, it seems like it would be a common problem.
> > > 
> > > Tomcat 3.2.x will not find files inside a webapp unless 
> that webapp
> > is
> > > specifically declared inside each virtual host in the 
> > > server.xml file.  I
> > > want to be able to put all my webapps inside 
> > > $tomcat_home$/webapps so that
> > > they will automatically be found.  Since we have many virtual 
> > > hosts, each
> > > using several different webapps, is there any way to avoid 
> > > the "myWebapp"
> > > context entry below for hundreds of diffent virtual hosts?
> > > 
> > > 
> > > 
> > >   > >  docBase="/usr/local/vhosts/domain.com/httpdocs">
> > >  crossContext="false"
> > >  debug="0"
> > >  reloadable="true"
> > >  
> > > 
> > >   > >  docBase="/usr/local/tomcat/webapps/myWebapp"
> > >  crossContext="true"
> > >  debug="0"
> > >  reloadable="true"
> > >  trusted="false">
> > >  
> > > 
> > > 
> > > 
> > > 
> > > Please help!  We've been banging our heads on this all day!
> > > 
> > > Thanks
> > > 
> > > Brandon
> > > 
> > > 
> > > -Original Message-
> > > From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 5:06 PM
> > > To: Tomcat Users List
> > > Subject: Can all virtual hosts use a webapp that is put inside
> > > $tomcat_home$/webapps?
> > > 
> > > 
> > > I have many virtual hosts.  Right now, they all access a 
> > > webapp because I
> > > have set the context to that webapp inside their  tag 
> > > in server.xml.
> > > I would like to change it so that all I have to do is put the 
> > > webapp inside
> > > $tomcat_home$/webapps.  Is this possible so that I can avoid 
> > > the redundant
> > > entries in server.xml, or does virtual hosting cause a 
> > > problem with this?  I
> > > am using tomcat 3.2.4, thanks in advance for any help!
> > > 
> > > 
> > > Brandon
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > >  [EMAIL PROTECTED]>
> > > For 
> > > additional commands, 
> > > e-mail: 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




please help with setting context root

2002-05-15 Thread Chris Templin

Hi,
I'm a Tomcat newbie running v4.0.1 on Win98. Sorry if this has been asked and 
answered. I've done a fair amount of searching but can't find a clear answer.

Note: I'm not talking about servlets, just plain old HTML.

I cannot set the docBase of my app so that e.g., '/images' resolves to 
webapps/appname/images. '/' always resolves to webapps/ and I need to add 
'/appname' to my paths. 

Nothing I try makes any difference including using an absolute path in docBase.

Here's the relevant part of my server.xml









Any help is greatly appreciated.

Thanks,

Chris




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 3.3.1 and additionalJars configuration

2002-05-15 Thread Mario Felarca

Hello,

I was wondering if anyone has had any experience with using the 
additionalJars attribute of the LoaderInterceptor11 module within Tomcat.

There was a thread on classloaders that I started a couple of weeks ago, 
and a possible work-round was suggested by using the additionalJars feature.

I am just trying to make a base case work, nothing fancy.I am trying to 
access a class from additionalJars from a class in my servlet context. Has 
anyone tried to use this feature, or does any one know if there is 
something more that I need to do to get this to work?

Any experiences or ideas would be greatly appreciated!

Thanks,

Mario-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: To synchronize or not? [Off-Topic]

2002-05-15 Thread Richard Bailey

I can understand wanting to use a HashMap over a Hashtable (the ability to 
store null values for example).
But if you want to serialize access to the HashMap you can use the 
following according to the javadoc documentation:

Map m = Collections.synchronizedMap(new HashMap(...));

I realize this isn't really a tomcat issue.

Richard

At 03:29 PM 2002-05-15 -0400, you wrote:
>Howdy,
>You may want to worry more about the HashMap's put() calls than the
>get() calls.  HashMap in itself is NOT synchronized, Hashtable is.  If
>you think there can be multiple threads writing to this hint map, then
>those are the ones you should consider synchronizing.  (Or using
>Hashtable).
>
>It's also a big of a different story if you're iterating over or
>otherwise manipulating the key or entry set of the hint map.  If you're
>only using get() calls, it's a bit easier.  The iterators are fail-fast,
>so if something modifies your hint map while you're iterating, you'll
>get a ConcurrentModificationException.  But it seems like you're just
>getting, so that's not a concern.
>
>And this whole thing is not really a tomcat issue ;)  Unless you were
>thinking of using SingleThreadModel for something in this webapp that
>affects the hint bean?
>
>Yoav Shapira
>ChemInformatics
>
>
> >-Original Message-
> >From: Michael Molloy [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, May 15, 2002 3:09 PM
> >To: [EMAIL PROTECTED]
> >Subject: To synchronize or not?
> >
> >I've working on an application that will be used by 150 people
> >concurrently.
> >When Tomcat starts up, I've got a servlet that creates a class that
> >contains
> >about 800 html input tag hints. For example, when a user clicks into an
> >input
> >field, the hint for that field displays in the status bar of their
>browser.
> >
> >Everytime a user logs in, s/he gets a LoginBean class. This class has a
> >reference to the HintBean class. All of the html pages have forms that
> >include in their tags a getProperty such as the following:
> >
> >
> >
> >The relevant parts of LoginBean are as follows:
> >
> >public LoginBean(HintBeant hints) {
> >  this.hints = hints;
> >}
> >public String getChildFirstName() {
> >  return hints.get("childFirstName");
> >}
> >
> >So, everyone has their own class with the specific getters for each
>text
> >field hint, but all of those getters point to a single class (HintBean)
> >that
> >is in the application scope.
> >
> >All of the hints are stored in a HashMap inside the HintBean, so the
>above
> >method just calls HashMap.get(String s) to return the hint.
> >
> >My question is, should I make HintBean.get(String s) synchronized? Or
>is
> >there no chance that anyone will get the wrong text? And if not, why
>not?
> >
> >Thanks for any help.
> >--Michael
> >
> >--
> >To unsubscribe, 
> e-mail:   [EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> [EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and Java Locale

2002-05-15 Thread Jonathan Shipley

Al,

I think it was using old code from somewhere: must find out where it stashes
it.

Seems to be running again now.

Update your local copy of contact/index.jsp! (humph!)

regards
Jon

-Original Message-
From: Simon Stewart [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2002 20:19
To: Tomcat Users List
Subject: Re: Tomcat and Java Locale


On Wed, 2002-05-15 at 20:03, Nance, Michael wrote:
> I am trying to solve a problem we are having with Non-ASCII characters and
> the Euro.
>
> First I am starting tomcat with -Dfile.encoding=ISO8859-1 in out java
> startup.
>
> However if I do something like this
>
> Locale localeTest = new Locale("de","de", "Euro");
> NumberFormat nfTest = NumberFormat.getCurrencyInstance(localeTest);
> 
> Test
> <%=nfTest.format(5)%>
> 
> 
>
>
> I get his result from My Jsp
> Test
> ? 55.555,00
> I do do a system.out of non Asii Characters  such as é  â ä  à ë è ï -
euro
> symbol (EUR) - British pound £
> and All print except for the Euro (EUR) but if I echo it to the browser it
> prints fine.
> We are on Unix Boxes with Solaris 7
>
> Is there something else I am missing
>
> One note: We also Run through Weblogic which has the same result for the
> system.out but trying to run the jsp at the weblogic level non of the
> characters pring correctly.

>From your description, it sounds as if your console font doesn't have
the euro character. If it displays properly in the browser, then things
point to everything being okay

Cheers,

Simon


--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can all virtual hosts use a webapp that is put inside $tomcat _home$/webapps?

2002-05-15 Thread August Detlefsen

Is this also supported in TC 4.x? 



--- Larry Isaacs <[EMAIL PROTECTED]> wrote:
> I don't believe Tomcat 3.2.x supports auto-serving the
> "webapps" directory for hosts other than the default host.
> However, this is supported in Tomcat 3.3.x.  The
>  element in the server.xml file supports
> specifying the directory and host, e.g.:
> 
> 
> 
> 
> For details see:
> 
>

> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, May 14, 2002 7:58 PM
> > To: Tomcat Users List
> > Subject: RE: Can all virtual hosts use a webapp that is put 
> > inside $tomcat_home$/webapps?
> > 
> > 
> > Everyone must have gone home...I'm really hoping that someone 
> > can help with
> > this, it seems like it would be a common problem.
> > 
> > Tomcat 3.2.x will not find files inside a webapp unless that webapp
> is
> > specifically declared inside each virtual host in the 
> > server.xml file.  I
> > want to be able to put all my webapps inside 
> > $tomcat_home$/webapps so that
> > they will automatically be found.  Since we have many virtual 
> > hosts, each
> > using several different webapps, is there any way to avoid 
> > the "myWebapp"
> > context entry below for hundreds of diffent virtual hosts?
> > 
> > 
> > 
> >   >  docBase="/usr/local/vhosts/domain.com/httpdocs">
> >  crossContext="false"
> >  debug="0"
> >  reloadable="true"
> >  
> > 
> >   >  docBase="/usr/local/tomcat/webapps/myWebapp"
> >  crossContext="true"
> >  debug="0"
> >  reloadable="true"
> >  trusted="false">
> >  
> > 
> > 
> > 
> > 
> > Please help!  We've been banging our heads on this all day!
> > 
> > Thanks
> > 
> > Brandon
> > 
> > 
> > -Original Message-
> > From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 5:06 PM
> > To: Tomcat Users List
> > Subject: Can all virtual hosts use a webapp that is put inside
> > $tomcat_home$/webapps?
> > 
> > 
> > I have many virtual hosts.  Right now, they all access a 
> > webapp because I
> > have set the context to that webapp inside their  tag 
> > in server.xml.
> > I would like to change it so that all I have to do is put the 
> > webapp inside
> > $tomcat_home$/webapps.  Is this possible so that I can avoid 
> > the redundant
> > entries in server.xml, or does virtual hosting cause a 
> > problem with this?  I
> > am using tomcat 3.2.4, thanks in advance for any help!
> > 
> > 
> > Brandon
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: To synchronize or not? [Off-Topic]

2002-05-15 Thread Shapira, Yoav

Howdy,
You may want to worry more about the HashMap's put() calls than the
get() calls.  HashMap in itself is NOT synchronized, Hashtable is.  If
you think there can be multiple threads writing to this hint map, then
those are the ones you should consider synchronizing.  (Or using
Hashtable).

It's also a big of a different story if you're iterating over or
otherwise manipulating the key or entry set of the hint map.  If you're
only using get() calls, it's a bit easier.  The iterators are fail-fast,
so if something modifies your hint map while you're iterating, you'll
get a ConcurrentModificationException.  But it seems like you're just
getting, so that's not a concern.

And this whole thing is not really a tomcat issue ;)  Unless you were
thinking of using SingleThreadModel for something in this webapp that
affects the hint bean?

Yoav Shapira
ChemInformatics


>-Original Message-
>From: Michael Molloy [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, May 15, 2002 3:09 PM
>To: [EMAIL PROTECTED]
>Subject: To synchronize or not?
>
>I've working on an application that will be used by 150 people
>concurrently.
>When Tomcat starts up, I've got a servlet that creates a class that
>contains
>about 800 html input tag hints. For example, when a user clicks into an
>input
>field, the hint for that field displays in the status bar of their
browser.
>
>Everytime a user logs in, s/he gets a LoginBean class. This class has a
>reference to the HintBean class. All of the html pages have forms that
>include in their tags a getProperty such as the following:
>
>
>
>The relevant parts of LoginBean are as follows:
>
>public LoginBean(HintBeant hints) {
>  this.hints = hints;
>}
>public String getChildFirstName() {
>  return hints.get("childFirstName");
>}
>
>So, everyone has their own class with the specific getters for each
text
>field hint, but all of those getters point to a single class (HintBean)
>that
>is in the application scope.
>
>All of the hints are stored in a HashMap inside the HintBean, so the
above
>method just calls HashMap.get(String s) to return the hint.
>
>My question is, should I make HintBean.get(String s) synchronized? Or
is
>there no chance that anyone will get the wrong text? And if not, why
not?
>
>Thanks for any help.
>--Michael
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and Java Locale

2002-05-15 Thread Nance, Michael

Simon, Thanks for replying...
But when I do the Java Locale I do not correctly get the Euro character.  
The only time I do get the Euro if I actually copy and paste it... Therefore
echoing it back prints fine, 
but I have not be able to create it using Java Locale or any other method...
And ideas?

-Original Message-
From: Simon Stewart [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:19 PM
To: Tomcat Users List
Subject: Re: Tomcat and Java Locale


On Wed, 2002-05-15 at 20:03, Nance, Michael wrote:
> I am trying to solve a problem we are having with Non-ASCII characters and
> the Euro.
> 
> First I am starting tomcat with -Dfile.encoding=ISO8859-1 in out java
> startup.
> 
> However if I do something like this
> 
> Locale localeTest = new Locale("de","de", "Euro");
> NumberFormat nfTest = NumberFormat.getCurrencyInstance(localeTest);
>  
> Test
> <%=nfTest.format(5)%>
> 
> 
> 
> 
> I get his result from My Jsp
> Test 
> ? 55.555,00
> I do do a system.out of non Asii Characters  such as é  â ä  à ë è ï -
euro
> symbol (EUR) - British pound £
> and All print except for the Euro (EUR) but if I echo it to the browser it
> prints fine.
> We are on Unix Boxes with Solaris 7
> 
> Is there something else I am missing
> 
> One note: We also Run through Weblogic which has the same result for the
> system.out but trying to run the jsp at the weblogic level non of the
> characters pring correctly.

>From your description, it sounds as if your console font doesn't have
the euro character. If it displays properly in the browser, then things
point to everything being okay

Cheers,

Simon


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat and Java Locale

2002-05-15 Thread Simon Stewart

On Wed, 2002-05-15 at 20:03, Nance, Michael wrote:
> I am trying to solve a problem we are having with Non-ASCII characters and
> the Euro.
> 
> First I am starting tomcat with -Dfile.encoding=ISO8859-1 in out java
> startup.
> 
> However if I do something like this
> 
> Locale localeTest = new Locale("de","de", "Euro");
> NumberFormat nfTest = NumberFormat.getCurrencyInstance(localeTest);
>  
> Test
> <%=nfTest.format(5)%>
> 
> 
> 
> 
> I get his result from My Jsp
> Test 
> ? 55.555,00
> I do do a system.out of non Asii Characters  such as é  â ä  à ë è ï - euro
> symbol (EUR) - British pound £
> and All print except for the Euro (EUR) but if I echo it to the browser it
> prints fine.
> We are on Unix Boxes with Solaris 7
> 
> Is there something else I am missing
> 
> One note: We also Run through Weblogic which has the same result for the
> system.out but trying to run the jsp at the weblogic level non of the
> characters pring correctly.

>From your description, it sounds as if your console font doesn't have
the euro character. If it displays properly in the browser, then things
point to everything being okay

Cheers,

Simon


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




To synchronize or not?

2002-05-15 Thread Michael Molloy

I've working on an application that will be used by 150 people concurrently. 
When Tomcat starts up, I've got a servlet that creates a class that contains 
about 800 html input tag hints. For example, when a user clicks into an input 
field, the hint for that field displays in the status bar of their browser.

Everytime a user logs in, s/he gets a LoginBean class. This class has a 
reference to the HintBean class. All of the html pages have forms that 
include in their tags a getProperty such as the following:



The relevant parts of LoginBean are as follows:

public LoginBean(HintBeant hints) {
  this.hints = hints;
}
public String getChildFirstName() {
  return hints.get("childFirstName");
}

So, everyone has their own class with the specific getters for each text 
field hint, but all of those getters point to a single class (HintBean) that 
is in the application scope. 

All of the hints are stored in a HashMap inside the HintBean, so the above 
method just calls HashMap.get(String s) to return the hint. 

My question is, should I make HintBean.get(String s) synchronized? Or is 
there no chance that anyone will get the wrong text? And if not, why not? 

Thanks for any help.
--Michael

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat and Java Locale

2002-05-15 Thread Nance, Michael

I am trying to solve a problem we are having with Non-ASCII characters and
the Euro.

First I am starting tomcat with -Dfile.encoding=ISO8859-1 in out java
startup.

However if I do something like this

Locale localeTest = new Locale("de","de", "Euro");
NumberFormat nfTest = NumberFormat.getCurrencyInstance(localeTest);
 
Test
<%=nfTest.format(5)%>




I get his result from My Jsp
Test 
? 55.555,00
I do do a system.out of non Asii Characters  such as é  â ä  à ë è ï - euro
symbol (EUR) - British pound £
and All print except for the Euro (EUR) but if I echo it to the browser it
prints fine.
We are on Unix Boxes with Solaris 7

Is there something else I am missing

One note: We also Run through Weblogic which has the same result for the
system.out but trying to run the jsp at the weblogic level non of the
characters pring correctly.

Thanks


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat/apache http & https on same server

2002-05-15 Thread walt

We have an Apache 1.3 web server which handles both http and https traffic. 
All http pages are standard html, while all https pages are handled by 
tomcat/apache. Is there a way I can restrict tomcat or apache to only use the 
jsp pages if the request is https? I would disable 443 on apache and have 
tomcat run standalone, but we have 2 C\C++ CGIs that must be accessed via 
https(medical data) so that is not an option.

Example:
I want to block 
http://nea-fast.com/jsp_module/jsp/index.jsp
but allow
https://nea-fast.com/jsp_module/jsp/index.jsp

Thanks!
-- 
Walter Anthony
System Administrator
National Electronic Attachment
Atlanta, Georgia 
1-800-782-5150 ext. 1608
 "If it's not broketweak it"




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to end a JSP

2002-05-15 Thread Adam Pfeiffer

If you have a try/catch block in a jsp and you catch an error that is know to cause 
the page not
to function, how can you gracefully skip the rest of the jsp page and print an error 
message.  For
example, in the below code pictureBrowserBean.parseAlbums(); is going to throw a null 
pointer
exception.  I want the catch block to print an error message and quit running the jsp. 
 How do I
do this?

<%@page contentType="text/html"%>

JSP Page


<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>



<%
//pictureBrowserBean.setBaseDir(getServletConfig().getServletContext().getRealPath("/"));
pictureBrowserBean.setBaseDir("");
pictureBrowserBean.setAlbumDir("images/");
try {
   pictureBrowserBean.parseAlbums();
}
catch (NullPointerException e) {
   out.println(e.toString());  

}


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Session variables

2002-05-15 Thread Rick Fincher

You may want to look at the J2EE docs at:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html
and look at javax.servlet.http.Http.Session.

These have the details about the calls used by Tomcat to implement sessions.
To see exactly how Tomcat does it, you'll have to look at the Tomcat surce
code.

Rick

- Original Message - >
> I downloaded the specification at the URL you sent me, but I can't find
> explanations on how Tomcat works to manage the session...
> And I can't find anything on Google neither.
>
> Thank you for your help,
> Benja.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.1 + PostgreSQL 7.2.1 + JNDI problem

2002-05-15 Thread Nikola Milutinovic

Remy Maucherat wrote:

>>JNDI resources bound to context "java:/comp/env/jdbc"
>>
>>1. TestDB:
>>
> org.apache.commons.dbcp.PoolingDataSource:org.apache.commons.dbcp.PoolingDat
> aSource@7ccee4
> 
>>2. AddressBookDB: org.apache.naming.ResourceRef:ResourceRef[
>>className=javax.sql.DataSource,
>>factoryClassLocation=null,
>>factoryClassName=org.apache.naming.factory.ResourceFactory,
>>  {type=scope,content=Shareable},
>>  {type=auth,content=Container},
>>  {type=validationQuery,content=SELECT * FROM org_unit},
>>  {type=user,content=www},
>>  {type=maxWait,content=1},
>>  {type=maxActive,content=20},
>>  {type=password,content=pass00},
>>  {type=url,content=jdbc:postgresql://localhost/www},
>>  {type=driverClassName,content=org.postgresql.Driver},
>>  {type=maxIdle,content=5}
>>]
>>
>>QUESTIONS
>>---
>>
>>What type of JDBC driver do I need for DBCP to work?
>>How can I find out what's bugging me?
>>Are there any debug/status messages from DBCP?
>>
> 
> You didn't mention the error you were getting.


I'm not getting any error messages and the actual error is right up there. The 
"resource 1" is the Oracle DataSource and you can see it is the correct type. 
The second one is supposed to be PostgreSQL, but, as you can see, it is not 
"converted" to javax.sql.DataSource. Instead, it was left unchanged.

That would indicate that DBCP was unable to create a javax.sql.DataSource object 
from the given data. I would like to know what exactly was the problem - which 
of the parameters caused DBCP to throw an exception. At least that was the story 
with Tyrex, if there was anything it didn't like, it would throw an exception 
and the JNDI reference was left unchanged.


> Also, it is probably related to using DBCP, you should probably post that on
> commons-dev.

I'll do that, after I study DBCP a bit more. There has got to be a way to test 
this "in the dry-dock", instead of Tomcat environment.

Nix.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can all virtual hosts use a webapp that is put inside $tomcat_home$/webapps?

2002-05-15 Thread Larry Isaacs

Yes, one 
for each virtual host.  I would also recommend reviewing the
"doc/readme" file where important differences between Tomcat 3.2.x
and Tomcat 3.3 are mentioned.  There is a fair amount of new content
in the User's Guide as well.

Cheers,
Larry

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 15, 2002 10:59 AM
> To: Tomcat Users List
> Subject: RE: Can all virtual hosts use a webapp that is put 
> inside $tomcat_home$/webapps?
> 
> 
> Larry,
> 
> Thanks a ton for the clarification!  If I upgrade to 3.3.x 
> and want every
> webapp inside the webapps folder to automatically be deployed 
> for every
> virtual host, how do I specify the host attribute?
> 
> Do I have to add  to
> server.xml for each vhost, or am I missing something still?  
> I read the
> documentation and am still somewhat confused...
> 
> Brandon
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 9:38 AM
> To: 'Tomcat Users List'
> Subject: RE: Can all virtual hosts use a webapp that is put inside
> $tomcat_home$/webapps?
> 
> 
> I don't believe Tomcat 3.2.x supports auto-serving the
> "webapps" directory for hosts other than the default host.
> However, this is supported in Tomcat 3.3.x.  The
>  element in the server.xml file supports
> specifying the directory and host, e.g.:
> 
> 
> 
> 
> For details see:
> 
>  l#AutoWebApp>
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 7:58 PM
> > To: Tomcat Users List
> > Subject: RE: Can all virtual hosts use a webapp that is put
> > inside $tomcat_home$/webapps?
> >
> >
> > Everyone must have gone home...I'm really hoping that someone
> > can help with
> > this, it seems like it would be a common problem.
> >
> > Tomcat 3.2.x will not find files inside a webapp unless 
> that webapp is
> > specifically declared inside each virtual host in the
> > server.xml file.  I
> > want to be able to put all my webapps inside
> > $tomcat_home$/webapps so that
> > they will automatically be found.  Since we have many virtual
> > hosts, each
> > using several different webapps, is there any way to avoid
> > the "myWebapp"
> > context entry below for hundreds of diffent virtual hosts?
> >
> >
> > 
> >   >  docBase="/usr/local/vhosts/domain.com/httpdocs">
> >  crossContext="false"
> >  debug="0"
> >  reloadable="true"
> >  
> >
> >   >  docBase="/usr/local/tomcat/webapps/myWebapp"
> >  crossContext="true"
> >  debug="0"
> >  reloadable="true"
> >  trusted="false">
> >  
> > 
> >
> >
> >
> > Please help!  We've been banging our heads on this all day!
> >
> > Thanks
> >
> > Brandon
> >
> >
> > -Original Message-
> > From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 5:06 PM
> > To: Tomcat Users List
> > Subject: Can all virtual hosts use a webapp that is put inside
> > $tomcat_home$/webapps?
> >
> >
> > I have many virtual hosts.  Right now, they all access a
> > webapp because I
> > have set the context to that webapp inside their  tag
> > in server.xml.
> > I would like to change it so that all I have to do is put the
> > webapp inside
> > $tomcat_home$/webapps.  Is this possible so that I can avoid
> > the redundant
> > entries in server.xml, or does virtual hosting cause a
> > problem with this?  I
> > am using tomcat 3.2.4, thanks in advance for any help!
> >
> >
> > Brandon
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: dns lookup

2002-05-15 Thread Brian Bernardo


Although, not necessarily a Tomcat question...

If you are referring to that server also being a DNS server, you need to
allow UDP 53 for DNS queries, TCP 53 for transfers, zone updates etc.  If it
not a DNS server and cannot make DNS queries (hostname lookups or whatever)
then you need to allow destination port 53 UDP outbound allow.

B



-Original Message-
From: Pekník Jan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 15, 2002 7:43 AM
To: 'Tomcat Users List'
Subject: dns lookup

Hi, 

I have a problem with resolving host-names from IP addresses. 
We are running some application on serverm which has almost all ports
blocked (except port 80 for http). 
Now, host-names lookup don't work on this machine, and I don't know which
port must be opened. 

Can somebody tell me which ports are required for this? thanks very much.

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.361 / Virová báze: 199 - datum vydání: 7.5. 2002
 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat vs Struts path mapping

2002-05-15 Thread Jeff

What do I need to do to get path mapping to work properly under BOTH Tomcat
3.2 (running inside Forte as the sole application) and Tomcat 4.0.3 (running
standalone on a server deployed from "webapps/")?

At the moment, I seem to be in a "no-win" situation where I can pacify
EITHER Tomcat 3.2 running under Forte or Tomcat 4.0.3 running standalone on
a real web server, but not BOTH.

DETAILS:

Web app is auto-deployed from do.war

The app's web.xml file maps the path /do/* to Struts' ActionServlet:



action
/do/*



The struts-config.xml file defines "/menu" as an Action path:


  


If I try to launch http://host:8080/do/menu on the server, I get a "404"
error telling me that the requested resource (/menu) is not available.

OK, I can deal with that... Since the app is deployed in webapps/do, Tomcat
must be stripping off the leading "/do" so app will see only "/menu", and
since there is no folder or file named "menu" in the app's rootdir, it's not
finding it, and failing to trigger ActionServlet. Fair enough.

However, if I try to humor Tomcat and specify "/do" twice, as
http://host:8080/do/do/menu (the first one to satisfy Tomcat and send it to
the webapp in "webapps/do", the second one to trigger the path mapping for
ActionServlet), I get a "500" error, with the specific error being that
Struts could not retrieve the mapping for "/do/do/menu"

WTF? Which way does Tomcat want it?!? Why is it stripping off the "/do"
entirely when there's just one, but leaving it duplicated when it's there
twice? What do I need to do to get path maps to work both inside Forte AND
on a real web server (where it's deployed from tomcat/webapps/do)?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JkMount + Alias

2002-05-15 Thread Ignacio J. Ortega

> De: Pablo Schor [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 14 de mayo de 2002 18:30

Just Got your first message, disregard 1) and 3) too, :)

But 2) continues being applicable

Saludos ,
Ignacio J. Ortega

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Session variables

2002-05-15 Thread Benjamin Fonzé [benja . be]

Hi Rick,
Yes, that's my question.
How is implemented HttpSession (using cookies,...?) ?

I downloaded the specification at the URL you sent me, but I can't find
explanations on how Tomcat works to manage the session...
And I can't find anything on Google neither.

Thank you for your help,
Benja.



-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]] 
Sent: mercredi 15 mai 2002 16:59
To: Tomcat Users List
Subject: Re: Session variables




I'm not quite sure what your question is, but if you mean the details of
how
sessions are built, the Servlet specification has a couple of good
chapters
on it.

You can get it here:

http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html

You could also look at Tomcat's source code.

Rick

>
> You don't know how I can have information about the implementation of
> HttpSession ?
>
> Benja.
>
>
>
>
> -Original Message-
> From: Rick Fincher [mailto:[EMAIL PROTECTED]]
> Sent: mercredi 15 mai 2002 16:17
> To: Tomcat Users List
> Subject: Re: Session variables
>
> Hi Benjamin,
>
> The sessions have a timeout value.  If there is no action on a session
> for
> that amount of time the server kills it.  You can also invalidate a
> session
> in your program, usually with a "logout" page, but there no
guaranteeing
> that the user will do it.
>
> A snooper could technically get a session number and start using it,
if
> they
> can do it before the timeout kills the session.
>
> If you are worried about that you need to use HTTPS.
>
> If you don't use url rewriting, each page will be a new session.  This
> may
> not show up until you try to share something in a session object, and
> the
> page trhat expects it to be there gets a null.
>
> Hope this helps,
>
> Rick.
>
>
> - Original Message -
>
> > Hello !
> > I have a few questions concerning the implicit session object.
> >
> > On the Java Sun web site, I can read this about the HttpSession
> > interface :
> >
> > "The servlet container uses this interface to create a session
between
> > an HTTP client and an HTTP server. The session persists for a
> specified
> > time period, across more than one connection or page request from
the
> > user. A session usually corresponds to one user, who may visit a
site
> > many times. The server can maintain a session in many ways such as
> using
> > cookies or rewriting URLs."
> >
> > My browser is configured to refuse the cookies, and I've no cookies
on
> > my disk, my conclusion is that Tomcat does not use cookies.
> > But I've no URL rewriting either (Except if that's invisible !??
Like
> > the POST method of a form !?)
> >
> > I really need to know how that's implemented by HttpSession, is
> someone
> > can help me ?
> >
> > Another question.
> > I use Tomcat 3.3a, and I'm worrying if the security of these session
> is
> > good ?
> > Is that possible for a hacker to recuperate the session variables of
a
> > server ?
> >
> > Thanks a lot !
> > Benja.
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat&IIS (on different computers )

2002-05-15 Thread Ignacio J. Ortega

> De: Pablo Schor [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles 15 de mayo de 2002 17:14

> Nacho, tal vez me puedas ayudar,  tengo Tomcat y Apache en distintas
> maquinas con mod_jk, los JSPs funcionan bien, pero cuando 
> quiero mapear con
> Alias los objetos estaticos, me toma los JSPs como estaticos 
> tambien, alguna
> sugerencia?

Various suggestions:

1) Post in english please, someone ( not me ) could understand your
problem and try to help you.
2) I'm the Local IIS guy :),so my knowledge of whats is going on mod_jk
config with apache is very limited, to not to say "i know nothing there"
:)))
3) Ever post or make available, everything relevant for your problem,
Tomcat version, Mod_jk apache config excerpt, Platform and OSes used..

( en cualquier caso y pesar de 1) me alegro mucho de ver
hispanohablantes por aqui, Bienvenido!!! :)))

Saludos ,
Ignacio J. Ortega



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.1 + PostgreSQL 7.2.1 + JNDI problem

2002-05-15 Thread Remy Maucherat

> I seam to be hitting the same wall *again*. (Sigh) I thought Jakarta-DBCP
would work better (at all) in my case. Here is my situation.

At least in the long run it is supposed to be better supported. It is an
alpha at the moment BTW.

> - Tomcat 4.1.1 configured OK and working. DBCP actually works with
Oracle's JDBC driver.
> - placed PostgreSQL's JDBC driver, JEE variant, containing:
>
> org/postgresql/xa/XADataSourceImpl.class
> org/postgresql/xa/TxConnection.class
> org/postgresql/xa/ClientConnection.class
> org/postgresql/xa/XAConnectionImpl.class
> org/postgresql/xa/TwoPhaseConnection.class
>
> org/postgresql/PostgresqlDataSource.class
>
> - my server.xml holds following lines:
>
> 
> 
>
driverClassNameorg.postgresql.Driver<
/parameter>
>
urljdbc:postgresql://localhost/www
>   userwww
>   passwordpass00
>   maxActive20
>   maxIdle5
>   maxWait1
>   validationQuerySELECT * FROM
org_unit
> 
> 
> 
>
driverClassNameoracle.jdbc.driver.OracleDrive
r
>
driverNamejdbc:oracle:thin:@localhost:1521:OR
CL
>   userwww
>   passwordpass00
> 
>
> - my web.xml holds following lines:
>
> 
>   jdbc/AddressBookDB
>   javax.sql.DataSource
>   Container
> 
> 
>   jdbc/TestDB
>   javax.sql.DataSource
>   Container
> 
>
> From my hand-written JNDI browser, I can see the following:
>
> JNDI resources bound to context "java:/comp/env/jdbc"
>
> 1. TestDB:
org.apache.commons.dbcp.PoolingDataSource:org.apache.commons.dbcp.PoolingDat
aSource@7ccee4
> 2. AddressBookDB: org.apache.naming.ResourceRef:ResourceRef[
> className=javax.sql.DataSource,
> factoryClassLocation=null,
> factoryClassName=org.apache.naming.factory.ResourceFactory,
>   {type=scope,content=Shareable},
>   {type=auth,content=Container},
>   {type=validationQuery,content=SELECT * FROM org_unit},
>   {type=user,content=www},
>   {type=maxWait,content=1},
>   {type=maxActive,content=20},
>   {type=password,content=pass00},
>   {type=url,content=jdbc:postgresql://localhost/www},
>   {type=driverClassName,content=org.postgresql.Driver},
>   {type=maxIdle,content=5}
> ]
>
> QUESTIONS
> ---
>
> What type of JDBC driver do I need for DBCP to work?
> How can I find out what's bugging me?
> Are there any debug/status messages from DBCP?

You didn't mention the error you were getting.
Also, it is probably related to using DBCP, you should probably post that on
commons-dev.

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JSP Exception Handling

2002-05-15 Thread Frederick Aubert

Hi,

I need some clarification on the JSP Exception Handling process. I have
tried to redirect all the exception of my webapp, derived all from base
class ServletException, to a specific error page. I have for example a
RedirectException that I want to handle once for all as a forward to another
URL. However each time I am throwing such RedirectException in a JSP page
where my error page URL is set correctly, I got the usual JavaVirtualMachine
exception beep and it gets logged in the statistics before even reaching
thee error page URL (which is reached then). However I don¹t want it to
appear in the log as my exception is expected and will be treated in the
error page URL... Isn¹t it possible to make that usage of exception? Or did
I set something wrong?

Sincerely, Frederick


---
  ("`-''-/").___..--''"`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




JSPC bug with pacakge option

2002-05-15 Thread Arvind Gudipati

Seems like im hitting a bug in the class
org.apache.jasper.JspC

When i run the jspc without any package specified it works fine.
However when i specify the package with option "-p jsp" i get .java files
for each .jsp files created with package specified as "package jsp.;", and
this fails to compile as it is not valid java file.

Im using tocmat 4.0.3 release build and following is the command im using to
precompile my jsp files

c:\jdk1.3.1\bin\java -classpath
..\lib\catalina.jar;..\lib\jasper-runtime.jar;..\lib\jasper-compiler.jar;..\
lib\xerces.jar;..\lib\tomcat-util.jar;..\lib\servlet.jar;..\lib\servlets-com
mon.jar;..\lib\bootstrap.jar;..\build\dist\common.jar;..\build\dist\baware.j
ar org.apache.jasper.JspC -d .\temp -p jsp -webxml
./java/webapps/dpserver/WEB-INF/web.xml -webapp ./java/webapps/dpserver

* This E-mail is from PANACYA
Inc. The E-mail and any files transmitted with it are confidential and may
also be privileged and intended solely for the use of the individual or
entity to whom they are addressed. Any unauthorized direct or indirect
dissemination, distribution or copying of this message and any attachments
is strictly prohibited. If you have received the E-mail in error please
notify [EMAIL PROTECTED] or telephone (410) 910-3300.





Re: CoyoteConnector with SSL no longer works, was Re: [ANNOUNCEMENT] Tomcat 4.0.4 Beta 3 released

2002-05-15 Thread Remy Maucherat

> I just noticed that the CoyoteConnector no longer seems to work. I'm using
> the config listed below for my server.xml. This worked fine with Tomcat
> 4.0.4b2-01 and Coyote 1.0b5. Now, it just hangs.

The syntax changed (the factory classname you have to use with Coyote is
different). Please refer to the bundled server.xml.

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat&IIS (on different computers )

2002-05-15 Thread Pablo Schor

Nacho, tal vez me puedas ayudar,  tengo Tomcat y Apache en distintas
maquinas con mod_jk, los JSPs funcionan bien, pero cuando quiero mapear con
Alias los objetos estaticos, me toma los JSPs como estaticos tambien, alguna
sugerencia?

Gracias,

Pablo



- Original Message -
From: Ignacio J. Ortega <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 9:21 AM
Subject: RE: Tomcat&IIS (on different computers )


> > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Enviado el: miércoles 15 de mayo de 2002 8:13
>
> Substitute localhost in your worker.properties with the ip or name of
> the host where tomcat resides..
>
> Saludos ,
> Ignacio J. Ortega
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_jk / getRemoteUser()

2002-05-15 Thread Jacob Kjome

Hello Fritz,

You need to set tomcatAuthentication="false" on your ajp13 connector
config in server.xml (if not present, it defaults to true)...





Jake

Wednesday, May 15, 2002, 8:28:18 AM, you wrote:


FLG> Hello all,

FLG> Problem getting apache httpd-server login name from a Servlet:

FLG> I'm having a "cocoon-in-Tomcat-in-Apache" Installation where
FLG> - my Apache httpServer is equipped with a user authentication by
FLG> htpasswd -c $APACHE_HOME/passwd/password username
FLG>(seems to work properly - my apache access_log shows usernames)
FLG> and
FLG> - the httpd-Tomcat connection is via mod_jk
FLG>(seems to work properly)
FLG> - I'm doing a regular HTTP/1.1 Request

FLG> Now I try to resolve the (httpd-)username inside my Servlet by calling

FLG> ((HttpRequest)request).getRemoteUser();

FLG> That returns NULL !
FLG> (actually my cocoon core.log says explicitely so: REMOTE USER: null)
FLG> - Why ?
FLG> In other words:
FLG> Am I right, assuming that my Apache httpd-server cuts off the username
FLG> from the Request before passing it to Tomcat and
FLG> how can I teach it (or mod_jk) to refrain from doing so ?

FLG> Thanks for reading this, greetings - Fritz


FLG> --
FLG> To unsubscribe, e-mail:   
FLG> For additional commands, e-mail: 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can all virtual hosts use a webapp that is put inside $tomcat_home$/webapps?

2002-05-15 Thread Brandon Cruz

Larry,

Thanks a ton for the clarification!  If I upgrade to 3.3.x and want every
webapp inside the webapps folder to automatically be deployed for every
virtual host, how do I specify the host attribute?

Do I have to add  to
server.xml for each vhost, or am I missing something still?  I read the
documentation and am still somewhat confused...

Brandon

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:38 AM
To: 'Tomcat Users List'
Subject: RE: Can all virtual hosts use a webapp that is put inside
$tomcat_home$/webapps?


I don't believe Tomcat 3.2.x supports auto-serving the
"webapps" directory for hosts other than the default host.
However, this is supported in Tomcat 3.3.x.  The
 element in the server.xml file supports
specifying the directory and host, e.g.:




For details see:



Cheers,
Larry

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 7:58 PM
> To: Tomcat Users List
> Subject: RE: Can all virtual hosts use a webapp that is put
> inside $tomcat_home$/webapps?
>
>
> Everyone must have gone home...I'm really hoping that someone
> can help with
> this, it seems like it would be a common problem.
>
> Tomcat 3.2.x will not find files inside a webapp unless that webapp is
> specifically declared inside each virtual host in the
> server.xml file.  I
> want to be able to put all my webapps inside
> $tomcat_home$/webapps so that
> they will automatically be found.  Since we have many virtual
> hosts, each
> using several different webapps, is there any way to avoid
> the "myWebapp"
> context entry below for hundreds of diffent virtual hosts?
>
>
> 
>docBase="/usr/local/vhosts/domain.com/httpdocs">
>  crossContext="false"
>  debug="0"
>  reloadable="true"
>  
>
>docBase="/usr/local/tomcat/webapps/myWebapp"
>  crossContext="true"
>  debug="0"
>  reloadable="true"
>  trusted="false">
>  
> 
>
>
>
> Please help!  We've been banging our heads on this all day!
>
> Thanks
>
> Brandon
>
>
> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 5:06 PM
> To: Tomcat Users List
> Subject: Can all virtual hosts use a webapp that is put inside
> $tomcat_home$/webapps?
>
>
> I have many virtual hosts.  Right now, they all access a
> webapp because I
> have set the context to that webapp inside their  tag
> in server.xml.
> I would like to change it so that all I have to do is put the
> webapp inside
> $tomcat_home$/webapps.  Is this possible so that I can avoid
> the redundant
> entries in server.xml, or does virtual hosting cause a
> problem with this?  I
> am using tomcat 3.2.4, thanks in advance for any help!
>
>
> Brandon
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: ??? Sitewide JAR Files ???

2002-05-15 Thread Tony LaPaso

As I said, I do not have access to . The JAR files
must be located somewhere in my domain's directory structure.



- Original Message -
From: "Chris Campbell" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:44 AM
Subject: RE: ??? Sitewide JAR Files ???




>
> definitely possible:
>
> put them in /common/lib
>
> ChrisC
>
> > -Original Message-
> > From: Tony LaPaso [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 15, 2002 1:36 PM
> > To: Tomcat User
> > Subject: ??? Sitewide JAR Files ???
> >
> >
> > Hello,
> >
> > I don't think this is possible but it can't hurt to ask
> >
> > I'm using Tomcat v4.0.3 on Win2k.
> >
> > I have a few JAR files that I would like to be accessible
from
> > within *all* contexts on my web site. In other words, I do
not
> > want to duplicate these JAR files in the "WEB-INF/lib"
directory
> > for each and every context on my site.
> >
> > The company that hosts my site, however, only allows me to
access
> > the files in *my* domain so I do not have the luxury of
putting
> > JAR files in, for example, "jre/lib/ext" where they would be
> > picked up by other peoples' domains.
> >
> > I was hoping (I even said a couple prayers) there was a place
in
> > my directory structure I could put these JARs so they would
be
> > accessible to *all* servlets in *all* contexts on *my* site
but
> > obviously not accessible to other domains.
> >
> > Is this possible?
> >
> > Thanks very much.
> >
> > Tony LaPaso
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem displaying FRAMESET

2002-05-15 Thread Michael Gerdau

Hi !

I have the following problem with frameset/frame:
(running Tomcat 4.0.3 using jdk1.3.1_02 on W2Ksp2 or WinNT 4 fp6a;
browser is Opera 6.01 or IE 5.00.3315.1000;SP2)

I'm trying to display a page using frames and it doesn't work.

When I enable Frames in my browser I see white on white and that's it.
When I disable Frames the page looks as expected.

When I open the pages to be displayed in Frames (report-header.jsp,
report-body-cathegories.jsp and report-body-numbers.jsp) all three
are displayed as expected.


This is my page named report.jsp:
<%@ page contentType="text/html;charset=UTF-8" language="java" buffer="64kb" %>



My Title
http://localhost:8080/liquiplan/report.jsp";>





  
  


  
  
  <%@ include file="report-print-content.jsp" %>
  






For completeness here come the other pages

The frame-page report-header.jsp looks like this:
<%@ page contentType="text/html;charset=UTF-8" language="java" buffer="64kb" %>


My Title
http://localhost:8080/liquiplan/report.jsp"; target="header" />
"/>


  
  <%@ include file="report-header-content.jsp" %>




The other frame-pages look indentical to the above, only the file
included is different.

report-print-content.jsp looks like:
  
  <%@ include file="reportTreasury-header-content.jsp" %>
  

  <%@ include file="reportTreasury-body-cathegories-content.jsp" %>
  <%@ include file="reportTreasury-body-numbers-content.jsp" %>

  


Any idea what could cause this or how I could further debug it ?

Thank you, best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau   email: [EMAIL PROTECTED]
 Windows NT: 16Mb to accomplish a 4Mb job
 PGP-keys available on request or at public keyserver



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Login success

2002-05-15 Thread James, Stuart

Hi,

Using tomcat 4.0 on HPUX/Java 1.3

I have two questions,

First, using the standard tomcat login mechanism what class, filter or tag
do I have to implement to add extra processing to a successful login.
(logging the username/ip address to our database and setting default
session/cookie values).

Second, Is it possible to have the login realm configuration stored inside
the web.xml and not the server.xml to allow each context to have different
realms.

Thanks,



___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Session variables

2002-05-15 Thread Rick Fincher




I'm not quite sure what your question is, but if you mean the details of how
sessions are built, the Servlet specification has a couple of good chapters
on it.

You can get it here:

http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html

You could also look at Tomcat's source code.

Rick

>
> You don't know how I can have information about the implementation of
> HttpSession ?
>
> Benja.
>
>
>
>
> -Original Message-
> From: Rick Fincher [mailto:[EMAIL PROTECTED]]
> Sent: mercredi 15 mai 2002 16:17
> To: Tomcat Users List
> Subject: Re: Session variables
>
> Hi Benjamin,
>
> The sessions have a timeout value.  If there is no action on a session
> for
> that amount of time the server kills it.  You can also invalidate a
> session
> in your program, usually with a "logout" page, but there no guaranteeing
> that the user will do it.
>
> A snooper could technically get a session number and start using it, if
> they
> can do it before the timeout kills the session.
>
> If you are worried about that you need to use HTTPS.
>
> If you don't use url rewriting, each page will be a new session.  This
> may
> not show up until you try to share something in a session object, and
> the
> page trhat expects it to be there gets a null.
>
> Hope this helps,
>
> Rick.
>
>
> - Original Message -
>
> > Hello !
> > I have a few questions concerning the implicit session object.
> >
> > On the Java Sun web site, I can read this about the HttpSession
> > interface :
> >
> > "The servlet container uses this interface to create a session between
> > an HTTP client and an HTTP server. The session persists for a
> specified
> > time period, across more than one connection or page request from the
> > user. A session usually corresponds to one user, who may visit a site
> > many times. The server can maintain a session in many ways such as
> using
> > cookies or rewriting URLs."
> >
> > My browser is configured to refuse the cookies, and I've no cookies on
> > my disk, my conclusion is that Tomcat does not use cookies.
> > But I've no URL rewriting either (Except if that's invisible !?? Like
> > the POST method of a form !?)
> >
> > I really need to know how that's implemented by HttpSession, is
> someone
> > can help me ?
> >
> > Another question.
> > I use Tomcat 3.3a, and I'm worrying if the security of these session
> is
> > good ?
> > Is that possible for a hacker to recuperate the session variables of a
> > server ?
> >
> > Thanks a lot !
> > Benja.
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HTTP Tunnel question

2002-05-15 Thread James, Stuart


"HTTP Tunnel question",

This message is getting rejected by our email server as it contains a
VBScript.

Does this message have to include a script file? I'm sure other people get
them same problem with attachments as they pose a virus/security threat.

thanks,


___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Running a webapp and accessing from www.mysite.com

2002-05-15 Thread rsequeira


You could do this by creating creating a Context entry in the server.xml

where,
myapp is relative to appBase attribute in the Host tag.

RS





Donie Kelly <[EMAIL PROTECTED]> on 05/15/2002 09:26:50 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:'Tomcat Users List' <[EMAIL PROTECTED]>
cc:

Subject:Running a webapp and accessing from www.mysite.com

Hi all

I want to deploy a webapp but don't want to have the context name in the
URL
like

www.mysite.com/myapp/

but instead want to use the URL to the primary servlet accessed by

www.mysite.com

How can I do this?

Thanks in advance
Donie


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










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Running a webapp and accessing from www.mysite.com

2002-05-15 Thread Jeff Larsen

Look at the configuration fo the ROOT context that is included 
in the default installation of tomcat.

- Original Message - 
From: "Donie Kelly" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 9:26 AM
Subject: Running a webapp and accessing from www.mysite.com


> Hi all
> 
> I want to deploy a webapp but don't want to have the context name in the URL
> like
> 
> www.mysite.com/myapp/
> 
> but instead want to use the URL to the primary servlet accessed by
> 
> www.mysite.com
> 
> How can I do this?
> 
> Thanks in advance
> Donie
>  
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




dns lookup

2002-05-15 Thread Pekník Jan

Hi, 

I have a problem with resolving host-names from IP addresses. 
We are running some application on serverm which has almost all ports
blocked (except port 80 for http). 
Now, host-names lookup don't work on this machine, and I don't know which
port must be opened. 

Can somebody tell me which ports are required for this? thanks very much.

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.361 / Virová báze: 199 - datum vydání: 7.5. 2002
 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HTTP Tunnel question

2002-05-15 Thread Stuart Stephen

Hi all,

Me again :o) I have progressed a bit further and have now run into another
problem. I can recieve messages from the server that I am tunnelling to and
send them to the applet fine. However it is proving difficult to do things
the other way round, when I want to send a message from the applet to the
internal server I am having "java.io.EOFException: code expected" exceptions
appear.

The connection from the Applet is just a simple URLConnection. This is not
closed unless the applet closes or the user quits.

I have some tomcat logs to show you what is going wrong. I hope someone can
be of help here.

Thanks,
Stuart Stephen

start of servlet
ToApplet()
ToServer()
...Reading for Object Streams
java.io.EOFException: Expecting code
at java.io.ObjectInputStream.peekCode(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at TestTunnel$ToApplet.run(TestTunnel.java:94)
>From ChatServer: "some random string object blah blah blah"
...Reading for Object Streams
java.io.EOFException: Expecting code
at java.io.ObjectInputStream.peekCode(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at TestTunnel$ToApplet.run(TestTunnel.java:94)
java.io.EOFException: Expecting code
at java.io.ObjectInputStream.peekCode(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at TestTunnel$ToApplet.run(TestTunnel.java:94)
etc...

My code is as follows.

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.ServletException.*;
import javax.servlet.UnavailableException.*;
import java.lang.Exception.*;
import java.io.*;
import java.util.*;
import java.net.*;

public class TestTunnel extends HttpServlet {

  // applet connections
  ObjectOutputStream objOut = null;
  ObjectInputStream objIn = null;

  // chatserver connections
  Socket socket = null;
  ObjectOutputStream sockObjOut = null;
  ObjectInputStream sockObjIn = null;

  ToApplet app = null;
  ToServer ser = null;

  protected void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException  {
try {
  // get data stream from applet
  System.err.println("start of servlet");

  objOut = new ObjectOutputStream(res.getOutputStream());
  objIn = new ObjectInputStream(req.getInputStream());
  objOut.useProtocolVersion(objOut.PROTOCOL_VERSION_1);

  // create socket to chat server and the streams
  socket = new Socket("127.0.0.1", 3000);
  sockObjOut = new ObjectOutputStream(socket.getOutputStream());
  sockObjIn = new ObjectInputStream(socket.getInputStream());
  sockObjOut.useProtocolVersion(sockObjOut.PROTOCOL_VERSION_1);

  app = new ToApplet(objIn, sockObjOut);
  ser = new ToServer(sockObjIn, objOut);

  while(ser.connIsAlive() || app.connIsAlive()) {
try {
  Thread.sleep(500);
}
catch(Exception ex) {
  ex.printStackTrace();
}
  }

  System.err.println("end of servlet");
}
catch(Exception e) {
  e.printStackTrace();
}
  }

  public void destroy() {
try {
  objIn.close();
  objOut.close();
  sockObjIn.close();
  sockObjOut.close();
  socket.close();
}
catch(Exception e) {
  e.printStackTrace();
}
  }

  private class ToApplet extends Thread {
ObjectOutputStream objOut = null;
ObjectInputStream sockObjIn = null;
boolean isAlive = true;

public ToApplet(ObjectInputStream sockObjIn, ObjectOutputStream objOut)
{
  try {
System.err.println("ToApplet()");
this.objOut = objOut;
this.sockObjIn = sockObjIn;
this.start();
  }
  catch(Exception e) {
e.printStackTrace();
  }
}

public void run() {
  try {
Object obj = new Object();
while(obj!=null) {
  try {
System.err.println("...Reading for Object Streams");
obj = sockObjIn.readObject();
System.err.println("...Read Object Stream");
write(obj);
  }
  catch(EOFException eof) {
eof.printStackTrace();
  }
  catch(Exception ex) {
ex.printStackTrace();
  }
}
  }
  catch(Exception e) {
e.printStackTrace();
  }
}

public boolean connIsAlive() {
  return isAlive;
}

public void write(Object msg) {
  try {
System.err.println("ChatApplet: "+msg.toString());
objOut.writeObject(msg);
objOut.flush();
objOut.reset();
  }
  catch(Exception e) {
e.printStackTrace();
isAlive = false;
  }
}
  }

  private class ToServer extends Thread {
ObjectInputStream objIn = null;
ObjectOutput

RE: Can all virtual hosts use a webapp that is put inside $tomcat_home$/webapps?

2002-05-15 Thread Larry Isaacs

I don't believe Tomcat 3.2.x supports auto-serving the
"webapps" directory for hosts other than the default host.
However, this is supported in Tomcat 3.3.x.  The
 element in the server.xml file supports
specifying the directory and host, e.g.:




For details see:



Cheers,
Larry

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 14, 2002 7:58 PM
> To: Tomcat Users List
> Subject: RE: Can all virtual hosts use a webapp that is put 
> inside $tomcat_home$/webapps?
> 
> 
> Everyone must have gone home...I'm really hoping that someone 
> can help with
> this, it seems like it would be a common problem.
> 
> Tomcat 3.2.x will not find files inside a webapp unless that webapp is
> specifically declared inside each virtual host in the 
> server.xml file.  I
> want to be able to put all my webapps inside 
> $tomcat_home$/webapps so that
> they will automatically be found.  Since we have many virtual 
> hosts, each
> using several different webapps, is there any way to avoid 
> the "myWebapp"
> context entry below for hundreds of diffent virtual hosts?
> 
> 
> 
>docBase="/usr/local/vhosts/domain.com/httpdocs">
>  crossContext="false"
>  debug="0"
>  reloadable="true"
>  
> 
>docBase="/usr/local/tomcat/webapps/myWebapp"
>  crossContext="true"
>  debug="0"
>  reloadable="true"
>  trusted="false">
>  
> 
> 
> 
> 
> Please help!  We've been banging our heads on this all day!
> 
> Thanks
> 
> Brandon
> 
> 
> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 5:06 PM
> To: Tomcat Users List
> Subject: Can all virtual hosts use a webapp that is put inside
> $tomcat_home$/webapps?
> 
> 
> I have many virtual hosts.  Right now, they all access a 
> webapp because I
> have set the context to that webapp inside their  tag 
> in server.xml.
> I would like to change it so that all I have to do is put the 
> webapp inside
> $tomcat_home$/webapps.  Is this possible so that I can avoid 
> the redundant
> entries in server.xml, or does virtual hosting cause a 
> problem with this?  I
> am using tomcat 3.2.4, thanks in advance for any help!
> 
> 
> Brandon
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Session variables

2002-05-15 Thread Benjamin Fonzé [benja . be]

Hi Rick !
I'm very happy to have an answer...

Yes, I was aware of the timeout, but I don't know how Tomcat manage
these variables, so I really don't know if that's secure (during the
user session), and I store some important information in these
variables...

I'm using HTTPS, so it seems to be ok.

Thanks a lot !

You don't know how I can have information about the implementation of
HttpSession ?

Benja.




-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]] 
Sent: mercredi 15 mai 2002 16:17
To: Tomcat Users List
Subject: Re: Session variables

Hi Benjamin,

The sessions have a timeout value.  If there is no action on a session
for
that amount of time the server kills it.  You can also invalidate a
session
in your program, usually with a "logout" page, but there no guaranteeing
that the user will do it.

A snooper could technically get a session number and start using it, if
they
can do it before the timeout kills the session.

If you are worried about that you need to use HTTPS.

If you don't use url rewriting, each page will be a new session.  This
may
not show up until you try to share something in a session object, and
the
page trhat expects it to be there gets a null.

Hope this helps,

Rick.


- Original Message -

> Hello !
> I have a few questions concerning the implicit session object.
>
> On the Java Sun web site, I can read this about the HttpSession
> interface :
>
> "The servlet container uses this interface to create a session between
> an HTTP client and an HTTP server. The session persists for a
specified
> time period, across more than one connection or page request from the
> user. A session usually corresponds to one user, who may visit a site
> many times. The server can maintain a session in many ways such as
using
> cookies or rewriting URLs."
>
> My browser is configured to refuse the cookies, and I've no cookies on
> my disk, my conclusion is that Tomcat does not use cookies.
> But I've no URL rewriting either (Except if that's invisible !?? Like
> the POST method of a form !?)
>
> I really need to know how that's implemented by HttpSession, is
someone
> can help me ?
>
> Another question.
> I use Tomcat 3.3a, and I'm worrying if the security of these session
is
> good ?
> Is that possible for a hacker to recuperate the session variables of a
> server ?
>
> Thanks a lot !
> Benja.



--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Running a webapp and accessing from www.mysite.com

2002-05-15 Thread Donie Kelly

Hi all

I want to deploy a webapp but don't want to have the context name in the URL
like

www.mysite.com/myapp/

but instead want to use the URL to the primary servlet accessed by

www.mysite.com

How can I do this?

Thanks in advance
Donie
 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Session for static and dynamic Pages

2002-05-15 Thread Günter Kukies

Hi,

I need to protect some static html pages. For that i use the FORM based mechanism from 
tomcat but without these special formtags. For user login i use my own servlet, that 
does useridentification and starts a session. So, if the user is logged in and the 
session is startet. Is this session also valid for the protected static pages? 
 
Günter 



RE: Oracle 8.1.7 and TomCat 4.0.1

2002-05-15 Thread John Niven

> -Original Message-
> From: Bejaoui Sam [mailto:[EMAIL PROTECTED]] 
> Sent: 15 May 2002 14:57
> To: [EMAIL PROTECTED]
> Subject: Oracle 8.1.7 and TomCat 4.0.1
> 
> 
> Hi, I'm a student engaged in a school project and I use 
> Oracle 8i and the last release of TomCat.
> 

Samir

I've been developing a system using Tomcat 4.0.x that links to an Oracle
8.1.7 db...

> I developped servlet that I want now to put in my servlet 
> engine. Unfortunetly, the access at the database didn't take 
> place. I suppose I have to configure something or maybe 
> integrate Apache and TomCat ...
> 

Show us the servlet, or at least the bit the accesses the db.  Are you
getting any error messages?  Show them, too.  Check your logs, and send any
relevant sections.

You shouldn't need to configure anything, unless you want to use Oracle as a
Tomcat "realm" (user authentication).  However...do you have the Oracle
driver installed?  It's called classes12.zip, you should rename it to
classes12.jar and install it in ${webapp}/WEB-INF/lib (or in
${CATALINA_HOME}/common/lib or in ${CATALINA_HOME}/lib if you want all your
web-apps to access Oracle).

> I don't really know what I have to do ...
> Thamks for helps ...
> 

For what it's worth, once you've got Tomcat and Oracle talking, it's
relatively painless from that point forwards...!

> Regards ...
> 

Best of luck,
John

> BEJAOUI Samir
> Casa dello Studente 
> Stanza A 28
> Via Cesare Battisti
> 98100 Messina
> ITALIA
> 0039090713696
> 


 --
John Niven
Please reply through mailing list

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Oracle 8.1.7 and TomCat 4.0.1

2002-05-15 Thread Benjamin Fonzé [benja . be]

Hi Samir !
I think we are from the same school ;))

I have used Tomcat with Apache and PostgreSQL.
Maybe I can help you, but I'm not sure to understand your problem...

You can mail me : [EMAIL PROTECTED]

Bye,
Benja.



-Original Message-
From: Bejaoui Sam [mailto:[EMAIL PROTECTED]] 
Sent: mercredi 15 mai 2002 15:57
To: [EMAIL PROTECTED]
Subject: Oracle 8.1.7 and TomCat 4.0.1

Hi, I'm a student engaged in a school project and I use Oracle 8i and
the last release of TomCat.

I developped servlet that I want now to put in my servlet engine.
Unfortunetly, the access at the database didn't take place.
I suppose I have to configure something or maybe integrate Apache and
TomCat ...

I don't really know what I have to do ...
Thamks for helps ...

Regards ...

BEJAOUI Samir
Casa dello Studente 
Stanza A 28
Via Cesare Battisti
98100 Messina
ITALIA
0039090713696



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Session variables

2002-05-15 Thread Rick Fincher

Hi Benjamin,

The sessions have a timeout value.  If there is no action on a session for
that amount of time the server kills it.  You can also invalidate a session
in your program, usually with a "logout" page, but there no guaranteeing
that the user will do it.

A snooper could technically get a session number and start using it, if they
can do it before the timeout kills the session.

If you are worried about that you need to use HTTPS.

If you don't use url rewriting, each page will be a new session.  This may
not show up until you try to share something in a session object, and the
page trhat expects it to be there gets a null.

Hope this helps,

Rick.


- Original Message -

> Hello !
> I have a few questions concerning the implicit session object.
>
> On the Java Sun web site, I can read this about the HttpSession
> interface :
>
> "The servlet container uses this interface to create a session between
> an HTTP client and an HTTP server. The session persists for a specified
> time period, across more than one connection or page request from the
> user. A session usually corresponds to one user, who may visit a site
> many times. The server can maintain a session in many ways such as using
> cookies or rewriting URLs."
>
> My browser is configured to refuse the cookies, and I've no cookies on
> my disk, my conclusion is that Tomcat does not use cookies.
> But I've no URL rewriting either (Except if that's invisible !?? Like
> the POST method of a form !?)
>
> I really need to know how that's implemented by HttpSession, is someone
> can help me ?
>
> Another question.
> I use Tomcat 3.3a, and I'm worrying if the security of these session is
> good ?
> Is that possible for a hacker to recuperate the session variables of a
> server ?
>
> Thanks a lot !
> Benja.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Oracle 8.1.7 and TomCat 4.0.1

2002-05-15 Thread James Mitchell

Can you paste some psuedo code of what you want your servlet to do??

JM 

> -Original Message-
> From: Bejaoui Sam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: Oracle 8.1.7 and TomCat 4.0.1
> 
> 
> Hi, I'm a student engaged in a school project and I use Oracle 8i 
> and the last release of TomCat.
> 
> I developped servlet that I want now to put in my servlet engine.
> Unfortunetly, the access at the database didn't take place.
> I suppose I have to configure something or maybe integrate Apache 
> and TomCat ...
> 
> I don't really know what I have to do ...
> Thamks for helps ...
> 
> Regards ...
> 
> BEJAOUI Samir
> Casa dello Studente 
> Stanza A 28
> Via Cesare Battisti
> 98100 Messina
> ITALIA
> 0039090713696
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Oracle 8.1.7 and TomCat 4.0.1

2002-05-15 Thread Bejaoui Sam

Hi, I'm a student engaged in a school project and I use Oracle 8i and the last release 
of TomCat.

I developped servlet that I want now to put in my servlet engine.
Unfortunetly, the access at the database didn't take place.
I suppose I have to configure something or maybe integrate Apache and TomCat ...

I don't really know what I have to do ...
Thamks for helps ...

Regards ...

BEJAOUI Samir
Casa dello Studente 
Stanza A 28
Via Cesare Battisti
98100 Messina
ITALIA
0039090713696



Re: [ANNOUCEMENT] Tomcat 4.0.2 Final released

2002-05-15 Thread Pae Choi

We already have v4.0.3. You menat 4.0.4? If not, what am I missing here?


Pae


- Original Message -
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 11, 2002 10:05 AM
Subject: [ANNOUCEMENT] Tomcat 4.0.2 Final released


> <[EMAIL PROTECTED]>
>
> The Tomcat Team is proud to announce the final release of Tomcat 4.0.2.
>
> Highlights in this release include:
> - Full support for the AJP 1.3 and 1.4 native connector protocols,
including
> load balancing
> - Updated mod_webapp native connector
> - Performance improvements for single thread model servlets
> - And many bugfixes
>
> Downloads (source and binary):
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/
> Note: RPMs and binaries of native connectors will be made available
shortly.
>
> Release notes (including the full list of changes, bugfixes, as well as
the
> known issues with this release):
>
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/RELEASE-N
> OTES
>
> Remy
>
>
> --
> To unsubscribe, e-mail:
>   For additional
>  commands, e-mail: 
>
> ---
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: REPOST - Digest Authentication with Memory Realm

2002-05-15 Thread Rick Fincher

Hi Shimon,

Those browser versions probably don't support Digest authentication.  The
default is Base 64 encoding (not encryption) so at least your password don't
go as clear text.

If you don't want to use HTTPS you'll have to use form based authentication
and put an applet in your form to encrypt the password with MD5 before
submitting it.

Rick

- Original Message -

> As nobody answered this question the first time around lets have another
go !
>
> Using the default memory realm I have modified the Tomcat server.xml to
> store the passwords encrypted as follows :
>
> 
>
> This works fine.
>
> For my tests I would also like to use digest authorization to transfer the
> password over the wire. To do this I put the following in my web.xml file
>
> 
>   DIGEST
> 
>
> When I access the protected web page from a browser (Mozilla or IE5.5) I
get
> the appropriate login dialog box. However I can't log in (access denied)
from either
> browser. What am I doing wrong ?
>
> Shimon Crown
>
> (Note - I know that using memory realm isn't a great idea but it is useful
> for the testing phase).
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat and the builtin webDAV servlet

2002-05-15 Thread Prabhakar Chaganti

We are trying to use the builtin webDAV servlet in Tomcat 4.0 to provide access to an 
existing filesystem. This will enable the users to use any webDAV client to add\edit 
files to our webapp. Has anyone successfully done this? Any pointers or info 
appreciated.

thanks
prabhakar


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can all virtual hosts use a webapp that is put inside $tomcat_home$/webapps?

2002-05-15 Thread Brandon Cruz

Everyone must have gone home...I'm really hoping that someone can help with
this, it seems like it would be a common problem.

Tomcat 3.2.x will not find files inside a webapp unless that webapp is
specifically declared inside each virtual host in the server.xml file.  I
want to be able to put all my webapps inside $tomcat_home$/webapps so that
they will automatically be found.  Since we have many virtual hosts, each
using several different webapps, is there any way to avoid the "myWebapp"
context entry below for hundreds of diffent virtual hosts?



 
 crossContext="false"
 debug="0"
 reloadable="true"
 

 
 




Please help!  We've been banging our heads on this all day!

Thanks

Brandon


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:06 PM
To: Tomcat Users List
Subject: Can all virtual hosts use a webapp that is put inside
$tomcat_home$/webapps?


I have many virtual hosts.  Right now, they all access a webapp because I
have set the context to that webapp inside their  tag in server.xml.
I would like to change it so that all I have to do is put the webapp inside
$tomcat_home$/webapps.  Is this possible so that I can avoid the redundant
entries in server.xml, or does virtual hosting cause a problem with this?  I
am using tomcat 3.2.4, thanks in advance for any help!


Brandon


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HTTP Tunnelling problem?? Please help

2002-05-15 Thread Larry Isaacs

Please ignore the last response.  Lousy aim when clicking to
make a reply.

Larry

> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 15, 2002 9:25 AM
> To: 'Tomcat Users List'
> Subject: RE: HTTP Tunnelling problem?? Please help
> 
> 
> Sorry it missed getting into the documentation beyond the
> readme-3.3.1, but Tomcat 3.3.1 now supports a SingleThreadModel
> pooling, which is enabled by default.  Thus, this is normal
> behavior.  If you wish to disable the pooling, modify the
> server.xml to contain:
> 
> 
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Andy Eastham [mailto:[EMAIL PROTECTED]] 
> > Sent: Wednesday, May 15, 2002 7:24 AM
> > To: Tomcat Users List
> > Subject: RE: HTTP Tunnelling problem?? Please help
> > 
> > 
> > Stuart,
> > 
> > You're extending Thread - everything that is mapped to a 
> > Tomcat request must
> > extend HttpServlet.  Tomcat is trying to cast your 
> TestTunnel class to
> > HttpServlet, which is failing.
> > 
> > Andy
> > 
> > > -Original Message-
> > > From: Stuart Stephen [mailto:[EMAIL PROTECTED]]
> > > Sent: 15 May 2002 11:56
> > > To: Tomcat Users List
> > > Subject: HTTP Tunnelling problem?? Please help
> > >
> > >
> > >
> > > Hello all,
> > >
> > > I'm having problems trying to write a HttpTunnel for java objects
> > > in Tomcat.
> > > For some reason I'm getting a ClassCastException. I don't 
> > understand this.
> > > I've even tried forcing it as you can see in my code below. 
> > The exception
> > > that i'm getting is not very clear and i can't put my 
> finger on it.
> > >
> > > I have attached the exception from Apache/Tomcat and the code for
> > > the tunnel
> > > at the bottom of this email. If you can help I would be 
> > very grateful.
> > >
> > > Regards,
> > > Stuart Stephen
> > >
> > > --
> > > --
> > > 
> > >
> > > Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
> > >
> > > --
> > > --
> > > 
> > >
> > > type Exception report
> > >
> > > message Internal Server Error
> > >
> > > description The server encountered an internal error (Internal
> > > Server Error)
> > > that prevented it from fulfilling this request.
> > >
> > > exception
> > >
> > > java.lang.ClassCastException: TestTunnel
> > >   at
> > > 
> > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> > java:820)
> > >   at
> > > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.
> > > java:615)
> > >   at
> > > org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerSe
> > > rvlet.java
> > > :396)
> > >   at
> > > 
> > org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServl
> > et.java:180)
> > >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >   at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> > > pplication
> > > FilterChain.java:247)
> > >   at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> > > onFilterCh
> > > ain.java:193)
> > >   at
> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> > > erValve.ja
> > > va:243)
> > >   at
> > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > > ine.java:5
> > > 66)
> > >   at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:472)
> > >   at
> > > 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >   at
> > > org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> > > xtValve.ja
> > > va:201)
> > >   at
> > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > > ine.java:5
> > > 66)
> > >   at
> > > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
> > > lve.java:2
> > > 46)
> > >   at
> > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > > ine.java:5
> > > 64)
> > >   at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:472)
> > >   at
> > > 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >   at
> > > 
> > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > t.java:2344)
> > >   at
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> > > e.java:164
> > > )
> > >   at
> > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > > ine.java:5
> > > 66)
> > >   at
> > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
> > > cherValve.
> > > java:170)
> > >   at
> > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > > ine.java:5
> > > 64)
> > >   at
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> > > e.java:170
> > > )
> > >   at
> > > org.apache.catalina.core

RE: SingleThreadModel under Tomcat 3.3.1 is not working???

2002-05-15 Thread Larry Isaacs

Sorry it missed getting into the documentation beyond the
readme-3.3.1, but Tomcat 3.3.1 now supports a SingleThreadModel
pooling, which is enabled by default.  Thus, this is normal
behavior.  If you wish to disable the pooling, modify the
server.xml to contain:



Cheers,
Larry

> -Original Message-
> From: Atnite [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 15, 2002 7:38 AM
> To: [EMAIL PROTECTED]
> Subject: SingleThreadModel under Tomcat 3.3.1 is not working???
> 
> 
> Hello there,
> I've got a question. I've made a servlet that is meant to be run using
> single thread model. It was made using JBuilder 5. When I run it under
> JBuilder's supplied Tomcat 3.2 hosting this servlet, it is 
> working exactly
> as expected - requests are queued and one is served at a 
> time. But, when I
> run the very same servlet under Tomcat 3.3.1, despite that 
> I've implemented
> SingleThreadModel in servlet and even made extra 
> synchronization, it still
> has no effect - requests are served all at the time of their arrival.
> The question is - is it a bug of Tomcat 3.3.1 or I miss 
> something (probably
> in Tomcat configuration files).
> Thanks
> 
> 
> 
> _
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >