Custom Authentication/User Principal

2002-02-05 Thread Loo, Jason

I've been successful in creating a custom JDBCRealm and have extended the
GenericPrincipal.  However, when attempting to pull my principal from the
request (request.getUserPrincipal()) and cast to EITHER
org.apache.catalina.realm.GenericPrincipal or my custom principal, I get a
Class Cast Exception.  I've browsed through the archives for a solution and
the closest I've found has been the one located at the following URL:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg40073.html

However, the solution seems a bit nastly.  Does anyone know of other options
aside from copying classes to multiple paths or overriding the Catalina
classpath??  

Many thanks.



ApacheConfig in Catalina

2002-02-05 Thread Jarecsni Jnos

Hi,

I'm trying to set up Catalina to work with Apache. First I configured Apache
"statically", by adding the necessary LoadModule and JkMount directives.
This worked well for JSP pages (JkMount /*.jsp Ajp13) but I had problems
with servlets. So I decided to switch to autoconfiguration of Apache.

I inserted the following in my server.xml:

[...]
!-- the following line was already there :) --
Server port="8005" shutdown="SHUTDOWN" debug="0"

  Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" /

[...]

I started Catalina to see what happens with Catalina.bat run (platform is
Win2K). I got a nice ClassNotFoundException for
"org.apache.ajp.tomcat4.config.ApacheConfig". I did a little search for this
class but found it nowhere. Most surprisingly it was missing from
CATALINA_HOME/server/lib/tomcat-ajp.jar where it should be by its name,
since the jar has a folder named org.apache.ajp.tomcat4. Unfortunately the
config folder is missing...

Thanks in advance!

Jnos



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




Re: JSP in JAR

2002-02-05 Thread Stefan Kost

hi,
 Hi,
 
 I am not sure if this question should be asked in the dev or user list, but
 here goes:
user-list , definitely ;-) 
 Is it possible to package JSP file in a JAR file and install it as a JAR
 file on the Jakarta-Tomcat server?
yep, it is called .war then (web archive) and needs to contain a WEB-INF
dir wjich in turn should have a web.xml file.
Apart from that it is a jar, such as you would even use the jar tool to
create it.

Stefan
-- 

  W E B M A C H E R  
EDV+INTERNETSERVICE GMBH

POST: August Bebel Str. 69
  04275 Leipzig

FON:  +49 341 30 34 832
FAX:  +49 341 30 34 840
WEB:  www.webmacher.de


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




Re: tomcat 4.01 with jboss 2.4.4 and a webapplication usingxalan/xerces

2002-02-05 Thread Stefan Kost

Hi again,

I did more tests and I am getting more and more sure that this is whats
called a bug (please enlighten me if I am wrong). I don't care which
xerces.jar tomcat is using, but if I have one in my
webapp/WEB-INF/lib/ I definitely want to use this one (as written
below, I've even tried to use the same). As I am getting class cast
exceptions, I belived TCs classloader has some problem.
 hi hi,
 
 Even after reading the docs (
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html)
 and mailing list archive (
 http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2)
 I am still stuck with the following problem:
 We are currently using jboss-2.4.4 with tomcat-3.2.3 and I am trying to
 upgrade to tomcat 4.0.1 as we need its newer jsp features. Our
 application is using jsp together with a custom xsl-tag-library based on
 xalan/xerces. JBoss itself is using xerces as its xml-parser (for
 configs) in our setup. I plugged it in using JAXP.
 Now when I am trying to access any jsp which is using the xsl-taglibrary
 (which uses xalan/xerces) under tomcat 4.0.1 I get:
 -- snip ---
 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: Servlet.init() for servlet jsp threw
 exception
 ...
 root cause
 
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
   at
 javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:103)
 ...
 -- snip ---
 
 I guess the issue is somehow related to the fact that jboss is not
 starting tomcat separately but using it as an own service and thus
 tomcat inherits the classpath. The classpath in turn contains
 ../lib/xml-apis.jar:../lib/xerces.jar:../lib/xalan.jar
 
 I've read about the issuses with xerces and tried to copy the xerces.jar
 included with tomcat 4.0.1 (size 1808883 bytes) over all location of
 mine; still it happens.
 
 Now I am running out of ideas.
 
 Stefan
 -- 
 
   W E B M A C H E R  
 EDV+INTERNETSERVICE GMBH
 
 POST: August Bebel Str. 69
   04275 Leipzig
 
 FON:  +49 341 30 34 832
 FAX:  +49 341 30 34 840
 WEB:  www.webmacher.de
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
-- 

  W E B M A C H E R  
EDV+INTERNETSERVICE GMBH

POST: August Bebel Str. 69
  04275 Leipzig

FON:  +49 341 30 34 832
FAX:  +49 341 30 34 840
WEB:  www.webmacher.de


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




RE: DB2 App Driver?

2002-02-05 Thread Reynir Hübner

well, I agree, just to make things clear : 

you must have the DB2 client set up (it´s a type 2 driver), for the
[app], but not for the net driver.
the [net] is a type 4.

But on the other hand, I know of people that have had to deal with some
problems when using the [net] driver, that do not occure when using the
[app] driver. Then again I dont know of any specific problems.

hope it helps

-reynir

 -Original Message-
 From: Gregor Kovaè [mailto:[EMAIL PROTECTED]]
 Sent: 5. febrúar 2002 06:56
 To: Tomcat Users List
 Subject: Re: DB2 App Driver?
 
 
 Hi!
 
 I have to say this is not true.
 All you need on your client is db2java.zip file and you have 
 to use net 
 driver instead on app.
 You don't need the DB2 client as far as I know.
 
 Best regards,
  Kovi
 
 At 19:57 4.2.2002 +, you wrote:
 Hi Derek,
 
 we use the app-driver to connect to DB2 with Tomcat 4.0.
 
 If your application runs on another maschine than DB2, you 
 must install a
 DB2-Client. Without that you can't use the app-driver.
 
 If your application runs on the same maschine than DB2, you 
 must tell Tomcat
 where your driver is. To do that, you can either change 
 Tomcat-Classpath or
 copy the driver to a directory in the Tomcat-Classpath. But 
 on our system,
 the latter didn't run.
 
 Anja
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




JSP compilation failure

2002-02-05 Thread Sergei Batiuk

Hello,

From time to time my Tomcat 4.0.1 on Windows 2000 Professional with JDK 1.3
fails to compile a JSP page with a strange error. I have no idea why it
happens. Please help to get rid of it!

Error message.

org.apache.jasper.JasperException: Unable to compile class for JSP
E:\Production\jakarta-tomcat-4.0.1\work\localhost\test\index$jsp.java:61:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
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:201)
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.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
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:462)
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
:163)
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.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


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




Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?

2002-02-05 Thread pete

Micael,

the SQUID solution lets you do it any way you like - you could map:

http://my.external.domain/MyFirstApp to http://192.168.0.1/MyFirstApp/

and:

http://my.external.domain/MySecondApp to http://192.168.0.1/MySecondApp/

and:

http://my.external.domain/MySecondApp/images to http://192.168.0.1:8080/


and http://my.external.domain/MyThirdApp to http://192.168.0.2:8080/MyApp/

(* You may have session/cookie/url problems with this example because of 
non-matching 'directory' names - MyThirdApp != MyApp)

Or anything else you like. Its completely arbitary.

The drawbacks are as I mentioned, with regard to cookies, sessions and 
relative URLs.

My situation is that i have 5 or so web servers internally, and only two 
or so domains, and only one external IP. All of my external domains are 
pointed at my single external IP, and SQUID handles the rest so 
http://my.external.domain/FirstApp/ is directed to an entirely different 
internal machine that http://my.external.domain/MySecondApp/ or 
http://my.external.domain/MyThirdApp/



Email me privately if you want more details on the setup

-Pete




Micael Padraig Og mac Grene wrote:

 Thanks, Pete.  I assume that you are saying that you map the request to 
 differing ports?  E.g. 192.168.x.x.:8080 for one and 192.168.x.x.:8081 
 for another?  If you are not saying that but are saying that it is 
 multiple IP addresses, i.e. the xs change, that is not my problem.  My 
 problem is with using a single IP.  I assume you know that, but am just 
 covering the bases.  I would much prefer an Apache or Tomcat solution 
 and assume there will be one.  If I get an answer, want me to forward it 
 to you?  (I will either get an answer or build one!)  Micael
 
 At 08:15 PM 2/3/02 +1300, you wrote:
 
 What you are after is essentially a 'Layer-7 Switch'

 I do this with the SQUID proxy server and a perl script which rewrites 
 HTTP requests using regular expressions to match URL fragments.

 e.g. all our domains are pointed at a single IP, and i map requests 
 for external domain namesservers to internal servers e.g. 
 http://www.mydomain.com/myapp/ gets mapped to 
 http://192.168.x.x:8080/myapp/


 There are a few hurdles to overcome with this approach, chiefly that 
 cookies get set based on the server name and directory, which means 
 that you need to match webapp names - i.e. you need to map 
 http://externally.visible.domain/myapp to 
 http://internally.visible.domain/myapp - trying to map e.v.d/myapp to 
 i.v.d/someotherapp probably won't work properly with sessions etc.

 Also, you'll probably need to use absolute URLs in your JSPs etc. , 
 since the client and the web server have different ideas about exactly 
 what is being requested.

 I believe Apache has built-in URL-rewriting features, and Tomcat may 
 do as well, however, I find SQUID works reliably for what I want to 
 do, so I have not looked for another solution.

 One thing to be aware of with the SQUID approach is the fact that your 
 proxy server is effectively opened to the net, and clients are free to 
 request arbitary URLs from your proxy, letting them use your bandwidth 
 to fetch their URLs. I see a surprisingly high level of abuse for a 
 fairly obscure and little-used web server, with requests for 
 banner-ads, machines with obvious viral infections and others trying 
 to exploit my 'open' proxy server.

 However, a small perl script run daily by cron that parses the SQUID 
 access log and bans IPs with IPTables that match abuse patterns takes 
 care of that pretty quickly.

 Hope that helps

 -Pete

 Micael Padraig Og mac Grene wrote:

 Clear question: No answers
 The subject, supra, asks the question.  If you have a number of URLs 
 pointed to a single IP address, can you map the URLs somehow to 
 discrete web applications in Tomcat 4.0?
 I have read everything I know to read and cannot get the answer to 
 this.  I know I could do it with JBoss and Tomcat 3.2.4 and the 
 context manager.  But, I don't see that in Tomcat 4.0.  What's up?
 Sure is hard to get a response to this question.  Have no idea what.
 Please don't tell me the stuff that is simple and covered like how to 
 set up directories, etc.  I know how to handle aliases, how to handle 
 multiple IP addresses on the same machine, etc.  My question is 
 specific.  How can I get, e.g. www.a.com and www.b.com when 
 they are pointed to a given IP address, 209.43.251.66 (for example), 
 to map to webapps/a and webapps/b?  Or, is this not now 
 possible?
 Some people have suggested that, since I don't know the answer to 
 this, I need to essentially take the classes I teach for fun.  Lord.  
 If only they could answer the question instead of loading me with 
 pompous self-righteous drivel.  I do thank those who have tried.  I 
 don't know where to look at this point.  I may just write the classes 
 to do it.
 Micael

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

Is Log4J already in the Tomcat library paths?

2002-02-05 Thread Joel Rees
My GL just handed me some docs for Log4J and asked me to evaluate it. I read
through what I could find on the jakarta site, and I noticed that the
logging facilities in Tomcat look a lot like what the Log4J docs describe,
at least from my newbie POV.

So, are the logging facilities in Tomcat Log4J, are are they just similar?

(Mostly, I'm wondering where to put Log4J. It looks like I could just put it
in a directory in Java's library path somewhere, or in Tomcat's lib
directory.)

Joel Rees




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


Re: Problem displaying Shift-JIS Japanese in Tomcat 4

2002-02-05 Thread Joel Rees
We're using Tomcat 3.2 and 3.3 with no problems. (Java SDK
1.3/MSW2k.pfleugh) I don't recall doing anything special in the setup, but
I'll check it.

Are you sure it's not your browser? Some older browsers did not recognize
Shift_JIS, but did sort of recognize x-sjis.

Other issues --

The old 8th bit problem should not occur if you are using localhost, I
think. If you are ftp-ing to a remote host, do you have ftp set to force
binary so your files arrive intact? What about your text editor? Is it
saving your files in something else, say, UNICODE?

HTH

Joel Rees

- Original Message -
From: "Antony Stace" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 4:57 PM
Subject: Problem displaying Shift-JIS Japanese in Tomcat 4


 Hi

 I have a very simply jsp page.  It has

 $B$3$s$K$A$O(B

 in shift-jis format in it.  However when I display this page I get garbage
where
 $B$3$s$$$A$O(B is.  Is there any configuration that I need to do to enable
Japanese
 characters to be displayed.  At the top of the file I have

 contentType="text/html; charset=Shift_JIS"


 --


 Cheers

 Tony$B!#(B
 -


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


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





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


Re: Problem displaying Shift-JIS Japanese in Tomcat 4

2002-02-05 Thread Antony Stace

Hi Joel


On Tue, 5 Feb 2002 18:34:56 +0900
Joel Rees [EMAIL PROTECTED] wrote:

 We're using Tomcat 3.2 and 3.3 with no problems. (Java SDK
 1.3/MSW2k.pfleugh) I don't recall doing anything special in the setup, but
 I'll check it.
 
 Are you sure it's not your browser? Some older browsers did not recognize
 Shift_JIS, but did sort of recognize x-sjis.

I have tried IE 5.5/6.0 and a Mozilla build from yeasterday. So I guess its not the
browser.  Which coding scheme do you use? EUC, JIS, SHIFT_JIS ??

 
 Other issues --
 
 The old 8th bit problem should not occur if you are using localhost, I
 think. If you are ftp-ing to a remote host, do you have ftp set to force
 binary so your files arrive intact? What about your text editor? Is it
 saving your files in something else, say, UNICODE?

I have checked the file type of the files using nkf and kcc, and I am quite sure they
are in Shift_JIS format.

Ummmnot sure where to go from here.

Cheers

Tony
  



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Problem displaying Shift-JIS Japanese in Tomcat 4

2002-02-05 Thread Antony Stace

On Tue, 5 Feb 2002 18:34:56 +0900
Joel Rees [EMAIL PROTECTED] wrote:

 We're using Tomcat 3.2 and 3.3 with no problems. (Java SDK
 1.3/MSW2k.pfleugh) I don't recall doing anything special in the setup, but
 I'll check it.
 
 Are you sure it's not your browser? Some older browsers did not recognize
 Shift_JIS, but did sort of recognize x-sjis.
 
 Other issues --
 
 The old 8th bit problem should not occur if you are using localhost, I
 think. If you are ftp-ing to a remote host, do you have ftp set to force
 binary so your files arrive intact? What about your text editor? Is it
 saving your files in something else, say, UNICODE?
 
 HTH

I worked out the problem.  I was using jikes to compile the jsp files in Tomcat.  It
seems that jikes does not support Japanese Characters.

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Problem displaying Shift-JIS Japanese in Tomcat 4

2002-02-05 Thread Joel Rees

 I worked out the problem.  I was using jikes to compile the jsp files in
Tomcat.  It
 seems that jikes does not support Japanese Characters.

That's useful to know.

Oh, since you asked, we do most of our work in shift-jis. I expect to see
Unicode gradually become more popular in the next several (five-ten?) years,
but the prevaling attitude in Japan seems to be to let others do the heavy
lifting concerning Unicode.

Joel





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




Re: AW: Session not sticking after timeout

2002-02-05 Thread Ivan E. Markovic

Ralph,

That was top of my list of suspicions. I used the HTTP Sniffer and
saw the new Session ID go out to the Browser and then saw it come
back after I clicked a Proceed button. But it is appearing that the
ID is not getting picked-up. When I execute:

req.getRequestedSessionId()

I get null. And when I execute:

session = req.getSession(false);

I receive a null Session object! Ugggh.

I v a n ...


One guess: Did you have a look at the session id that is
transmitted after the user logged in ? Is it a new one or
is it the an older one ?

Have a look at request.getRequestedSessionId()and
session.getId() in the login page and the following page.

One thing I expierienced is, that the IE has his own opinion
about the caching of pages. This could couse this kind of
trouble as the cached page might contain a session id that is
no longer valid.

  -Ursprüngliche Nachricht-
  Von: Ivan E. Markovic [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 5. Februar 2002 03:59
  An: [EMAIL PROTECTED]
  Betreff: Session not sticking after timeout
  Wichtigkeit: Hoch
snip/
  (7) Once the user is logged on whatever they do next causes the
  system to return a null Session object, as though it had timed out
  again! But it hasn't.
snip/

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


--
Ivan Markovic
SculptLight
http://www.sculptlight.com
(+353) 87 2939256
(+353) 1 2982205

114 Lower Churchtown Rd,
Dublin 14,
Ireland.

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




Re: Waiting for instance to be deallocated

2002-02-05 Thread Stephan Mülhaus

Hi all,

i also encountered this problem but i didn't find any solutions to solve 
this problem.
Can anyone help us?

TIA
Stephan


At 04:20 04.02.2002 -0800, you wrote:
Hi all,

when changing a class file in my webapps/WEB-INF/classes directory, having
my context setup to reloadable=true, I still get this error :

Waiting for (1) instance to be deallocated

nothing happens, and the server seems to be freezed I have to restart it
I thought that this was fixed in 4.0.2-b2 but i install it with no success.

Anyone encountered this error before ?
Do you have guys productions applications where you can change classes
without restarting ?

Help very much appreciated.

Thx
Eric CHABER


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


--
--
 

Stephan Mülhaus  [EMAIL PROTECTED]
NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
Phone: +49-231-986510 - 0
FAX: +49-231-986522 - 2
--
 



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




Re: Problem with Manager App

2002-02-05 Thread Jean-Luc BEAUDET

Cox, Charlie a écrit :

 privileged=true simply allows the servlet to call tomcat internal
 functions. it is a security feature so that you can control what can talk to
 the tomcat internals.

 I am not using mod_webapp, but I have received that error('Manager is
 privileged...') when I tried to access manager from a virtual host where I
 did not have the manager context defined in server.xml.

I had the same error, exactly, and saying that this kind of deployement cannot
be
deployed in such Context cause it's a Privileged one !




 a quick look at server.xml - did you define it for your tomcat-apache
 service as well as the tomcat-standalone service in server.xml?

Yep, i tested it...
Same stuff..



 Charlie


Any clues ?

Regards

Jean-Luc B





 [EMAIL PROTECTED]

 I guess this is because of the Privileged=true...

 I've got exactly the same Pb.

 Jean-Luc B :O)

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

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



Session not sticking after timeout BUG?

2002-02-05 Thread Ivan E. Markovic

Ralph,

Some more detail for you. Now I have the headers printed out after I 
attempt to extract the Session ID info from the Request object.

As you can see the Session ID is present, BUT the values I get when 
requesting Session info from the Request object are either null or 
false (when they are normally the Session ID and true, for the Cookie 
boolean).

This works on 3.1 but does not work in 3.2.1. I can see the Session 
ID, it's there but for some reason Tomcat fails to extract it 
properly!

  getRequestedSessionId null
  isRequestedSessionIdFromCookie false
  isRequestedSessionIdFromUrl false

  Header: cookie  JSESSIONID=01an3f46n1
  Header: connection  Keep-Alive
  Header: ua-cpu  PPC
  Header: referer 
http://192.168.1.4/servlets/VS/servlet/VPDFProductListServlet;
  Header: accept  */*
  Header: pragma  no-cache
  Header: content-length  92
  Header: accept-language  en
  Header: user-agent  Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC)
  Header: ua-os  MacOS
  Header: extension  Security/Remote-Passphrase
  Header: content-type  application/x-www-form-urlencoded
  Header: host  192.168.1.4


I v a n ...
-- 
Ivan Markovic
SculptLight
http://www.sculptlight.com
(+353) 87 2939256
(+353) 1 2982205

114 Lower Churchtown Rd,
Dublin 14,
Ireland.

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




Re: Session not sticking after timeout BUG?

2002-02-05 Thread Jean-Luc BEAUDET

Ivan E. Markovic a écrit :

 Ralph,

 Some more detail for you. Now I have the headers printed out after I
 attempt to extract the Session ID info from the Request object.

 As you can see the Session ID is present, BUT the values I get when
 requesting Session info from the Request object are either null or
 false (when they are normally the Session ID and true, for the Cookie
 boolean).

 This works on 3.1 but does not work in 3.2.1. I can see the Session
 ID, it's there but for some reason Tomcat fails to extract it
 properly!

   getRequestedSessionId null
   isRequestedSessionIdFromCookie false
   isRequestedSessionIdFromUrl false

   Header: cookie  JSESSIONID=01an3f46n1
   Header: connection  Keep-Alive
   Header: ua-cpu  PPC
   Header: referer
 http://192.168.1.4/servlets/VS/servlet/VPDFProductListServlet;
   Header: accept  */*
   Header: pragma  no-cache
   Header: content-length  92
   Header: accept-language  en
   Header: user-agent  Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC)
   Header: ua-os  MacOS
   Header: extension  Security/Remote-Passphrase
   Header: content-type  application/x-www-form-urlencoded
   Header: host  192.168.1.4

 I v a n ...
 --
 Ivan Markovic
 SculptLight
 http://www.sculptlight.com
 (+353) 87 2939256
 (+353) 1 2982205

 114 Lower Churchtown Rd,
 Dublin 14,
 Ireland.

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

Hum...

English not my native language; i'm not sure to well understand
what sticking/sticky session means...

Could yu explain me ?

Regards.

Jean-Luc B ;O)



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




AW: What's up with Borland?

2002-02-05 Thread Lauer, Oliver

Hi Robert, 

at first you should point your development environment to your TC
installation and you shouldn't take the built-in TC. 
Doing so you are much more flexible for TC updates. But take care, you have
to include your libs within TC due to JB isn't using TC's classloaders. 

I have both settings here but I prefer using the TC I've installed on my
own. 

So what do I have to do for that ?: 

1.) JB: Project/Project Properties / Run / Application

- Main class: select org.apache.catalina.startup.Bootstrap
- VM parameters:
-Dcatalina.base=C:\Programme\ApacheGroup\Tomcat4.0
-Dcatalina.home=C:\Programme\ApacheGroup\Tomcat4.0 or something comparable

(this must point to your TC installation)   
- Application parameters: start

2.) JB: Start TC with 
- Run / Debug Project and not with the right mouse key and Web Debug


3.) Now you can debug every class that is included in your project. You can
even debug TC if you want to ! And the main advantage is that you can share
the same environment for debugging and running.

Try it and report of your results. I think that's the first thing to do in
order to manage TC quite properly.

Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Robert D. Morse [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 5. Februar 2002 13:33
An: Lauer, Oliver
Betreff: RE: What's up with Borland?


I've added the VM parameters, but that didn't make any difference.  Attached
are the server.xml and web.xml files.  I'm using the Tomcat version that
came with JBuilder6 Enterprise, so the server.xml file is located in:
/JBuilder6/jakarta-tomcat-4.0.1/conf

But, my web.xml file is in my project directory of
/PKi/maxxlife/WEB-INF/web.xml

If you search for 'maxxlife' in the attached server.xml file, you'll see the
only change that I made.  I really appreciate your help on this.  By the
way, I have this deployed under Tomcat 4.0, and it works fine!  It's just
the development environment that I'm trying to get set up.

-Original Message-
From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 4:11 AM
To: 'Robert D. Morse'
Subject: AW: What's up with Borland?


And you did the following, too:

-classic -Dcatalina.base=C:\Programme\ApacheGroup\Tomcat4.0
-Dcatalina.home=C:\Programme\ApacheGroup\ApacheTomcat4.0 in VM parameters
of project/properties/run

where both parameters point to the installation of your TC ?

start in applications parameters

How do your web.xml and server.xml look like ?


 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _



-Ursprüngliche Nachricht-
Von: Robert D. Morse [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 5. Februar 2002 12:52
An: [EMAIL PROTECTED]
Betreff: RE: What's up with Borland?


Really!  You can tell me how you did it!  I have a JSP project that runs
perfectly under 3.2 in the Borland environment.  Then I do the following:
1. Change the required libraries from Tomcat3.2Servlet to Tomcat4.0Servlet
2. Change the Server from Tomcat 3.2 to Tomcat 4.0
3. Run the project and I get the following error:

No Realm has been configured to authenticate against

At first I thought it was a server.xml issue, but adding a context there
didn't seem to help.  Any ideas?

-Original Message-
From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 12:00 AM
To: 'Tomcat Users List'
Subject: AW: What's up with Borland?


I'm running TC4.0,4.01 and 4.0.2 with JB6 and do proper debugging. I don't
know what the JB guys are talking about ?
What can do for you ?
Oliver

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _



-Ursprüngliche Nachricht-
Von: Robert D. Morse [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 4. Februar 2002 23:18
An: Tomcat Users List
Betreff: What's up with Borland?


I'm trying to get JBuilder 6 Enterprise to work with Tomcat 4.0.1 (which is
packaged with JBuilder 6 Enterprise).  Everything works fine with 3.2
selected but selecting 4.0.1 results in a No Realm has been configured to
authenticate against error.  Not finding anything in the e-mail lists, or
Borland Newsgroups, I logged a bug report with Borland and spoke with a
technical rep.  When I explained the problem, he said that there were known
issues with 4.0.1, and that he would not recommend using it with JBuilder
6.0.  I asked why, and he said ...the 

AW: Session not sticking after timeout BUG?

2002-02-05 Thread Ralph Einfeldt

AFAIK getRequestedSessionId() should alway return somthing if there
is a session id present (cookie or url encoded) no matter wether the 
session id is valid or not.

Can you read the JSESSIONID cookie ? 

Cookie[] mCookies = request.getCookies();
if ((mCookies == null) || (mCookies.length == 0)) {
  PrintOut(No cookies);
} else {
  for (int i = 0; i  mCookies.length; i++) {
PrintOut(mCookies[i].getName());
PrintOut(mCookies[i].getValue());
  }
}

(PrintOut is just placeholder for your favorite way of dumping 
such information.)

May be you should try a newer version of tomcat (3.3.*/4.*) ?
(Even if it doesn't solve your problem, it might help to get help
from one of the developers if the problem persists)

 -Ursprüngliche Nachricht-
 Von: Ivan E. Markovic [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 5. Februar 2002 13:42
 An: Tomcat Users List
 Betreff: Session not sticking after timeout  BUG?
 Wichtigkeit: Hoch
snip/ 
   getRequestedSessionId null
   isRequestedSessionIdFromCookie false
   isRequestedSessionIdFromUrl false
 
   Header: cookie  JSESSIONID=01an3f46n1
   Header: connection  Keep-Alive
   Header: ua-cpu  PPC
   Header: referer 
 http://192.168.1.4/servlets/VS/servlet/VPDFProductListServlet;
   Header: accept  */*

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




reloading templates

2002-02-05 Thread Tom Bednarz

Hello,

What possibilities do I have to reload and quickly test changed templates?
Do I need to reload an application in TOMCAT using the manager app or is
there anything shorter? (JSP just recompile, quite handy for testing)

Thomas


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




RE: Problem with Manager App

2002-02-05 Thread Cox, Charlie

have you tried with 4.0.2b2 to see if its a fixed problem with the
connector? I know that they have made lots of fixes to the connector, but
since I don't use it, I haven't paid attention to what was broken/fixed. It
could just be that the connector isn't passing your authorization through or
something like that. You should probably visit bugzilla(if you haven't
already).

I have noticed that manager requests(like all other requests) end up in the
access log(AccessLogValve), so you can look to see if your request is
getting through correctly.

Charlie

 -Original Message-
 From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 7:18 AM
 To: Tomcat Users List
 Subject: Re: Problem with Manager App
 
 
 Cox, Charlie a écrit :
 
  privileged=true simply allows the servlet to call tomcat internal
  functions. it is a security feature so that you can control 
 what can talk to
  the tomcat internals.
 
  I am not using mod_webapp, but I have received that 
 error('Manager is
  privileged...') when I tried to access manager from a 
 virtual host where I
  did not have the manager context defined in server.xml.
 
 I had the same error, exactly, and saying that this kind of 
 deployement cannot
 be
 deployed in such Context cause it's a Privileged one !
 
 
 
 
  a quick look at server.xml - did you define it for your 
 tomcat-apache
  service as well as the tomcat-standalone service in server.xml?
 
 Yep, i tested it...
 Same stuff..
 
 
 
  Charlie
 
 
 Any clues ?
 
 Regards
 
 Jean-Luc B
 
 
 
 
 
  [EMAIL PROTECTED]
 
  I guess this is because of the Privileged=true...
 
  I've got exactly the same Pb.
 
  Jean-Luc B :O)
 
  --
  To unsubscribe:   
mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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

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




Re: reloading templates

2002-02-05 Thread Tom Bednarz

FORGET THIS, I postet to the wrong list!!! SORRY!

Thomas

- Original Message -
From: Tom Bednarz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 2:28 PM
Subject: reloading templates


 Hello,

 What possibilities do I have to reload and quickly test changed templates?
 Do I need to reload an application in TOMCAT using the manager app or is
 there anything shorter? (JSP just recompile, quite handy for testing)

 Thomas


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




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




Re: AW: Session not sticking after timeout BUG?

2002-02-05 Thread Ivan E. Markovic

Ralph,

I just double-checked and we are using Tomcat v3.3 (the CVS version,
which I am told includes all the bug-fixes).

I added your code to my debug and this is what I got. As you can see
it picks up the cookies but still getRequestedSessionId() is
returning 'null'. But the Session ID is there! Help!

  getRequestedSessionId null
  isRequestedSessionIdFromCookie false
  isRequestedSessionIdFromUrl false

JSESSIONID
l76m6x5o31

  Header: cookie  JSESSIONID=l76m6x5o31
  Header: accept  */*
  Header: accept-language  en
  Header: connection  Keep-Alive
  Header: content-length  75
  Header: content-type  application/x-www-form-urlencoded
  Header: extension  Security/Remote-Passphrase
  Header: host  www3.vlm-online.com
  Header: pragma  no-cache
  Header: referer
http://www3.vlm-online.com/servlets/VS/servlet/LogonHandlerServlet;
  Header: ua-cpu  PPC
  Header: ua-os  MacOS
  Header: user-agent  Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC)

I v a n ...


AFAIK getRequestedSessionId() should alway return somthing if there
is a session id present (cookie or url encoded) no matter wether the
session id is valid or not.

Can you read the JSESSIONID cookie ?

Cookie[] mCookies = request.getCookies();
if ((mCookies == null) || (mCookies.length == 0)) {
   PrintOut(No cookies);
} else {
   for (int i = 0; i  mCookies.length; i++) {
 PrintOut(mCookies[i].getName());
 PrintOut(mCookies[i].getValue());
   }
}

(PrintOut is just placeholder for your favorite way of dumping
such information.)

May be you should try a newer version of tomcat (3.3.*/4.*) ?
(Even if it doesn't solve your problem, it might help to get help
from one of the developers if the problem persists)

  -Ursprüngliche Nachricht-
  Von: Ivan E. Markovic [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 5. Februar 2002 13:42
  An: Tomcat Users List
  Betreff: Session not sticking after timeout  BUG?
  Wichtigkeit: Hoch
snip/
getRequestedSessionId null
isRequestedSessionIdFromCookie false
isRequestedSessionIdFromUrl false

Header: cookie  JSESSIONID=01an3f46n1
Header: connection  Keep-Alive
Header: ua-cpu  PPC
Header: referer
  http://192.168.1.4/servlets/VS/servlet/VPDFProductListServlet;
Header: accept  */*

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


--
Ivan Markovic
SculptLight
http://www.sculptlight.com
(+353) 87 2939256
(+353) 1 2982205

114 Lower Churchtown Rd,
Dublin 14,
Ireland.

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




AW: AW: Session not sticking after timeout BUG?

2002-02-05 Thread Ralph Einfeldt


Sorry, I'm out of my wisdom, that one for the hard core guys...

 -Ursprüngliche Nachricht-
 Von: Ivan E. Markovic [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 5. Februar 2002 14:52
 An: Tomcat Users List
 Betreff: Re: AW: Session not sticking after timeout  BUG?
snip/
 I just double-checked and we are using Tomcat v3.3 (the CVS version, 
 which I am told includes all the bug-fixes).
 

   getRequestedSessionId null
   isRequestedSessionIdFromCookie false
   isRequestedSessionIdFromUrl false
 
Cookie-Name   JSESSIONID
Cookie-Value  l76m6x5o31

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




Re: Problem with Manager App

2002-02-05 Thread Jean-Luc BEAUDET

Cox, Charlie a écrit :

 have you tried with 4.0.2b2 to see if its a fixed problem with the
 connector? I know that they have made lots of fixes to the connector, but
 since I don't use it, I haven't paid attention to what was broken/fixed. It
 could just be that the connector isn't passing your authorization through or
 something like that. You should probably visit bugzilla(if you haven't
 already).

 I have noticed that manager requests(like all other requests) end up in the
 access log(AccessLogValve), so you can look to see if your request is
 getting through correctly.

 Charlie


Charlie,

Thank yu for answering.
Well i have the 4.0.2-b2 installed and runnin'.
I think it's good and more robust, but the deal is manager don't work
correctly; so what ?

I'm still stuck.

Too bad...

Jean-Luc B :O(



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




RE: Problem with Manager App

2002-02-05 Thread Cox, Charlie

well, you can file a bug to make sure that one of the developers looks into
it. It *may* still be possible to get it fixed for 4.0.2 final, but you
should submit it soon as I don't know the timeline...

Charlie

 -Original Message-
 From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 9:05 AM
 To: Tomcat Users List
 Subject: Re: Problem with Manager App
 
 
 Cox, Charlie a écrit :
 
  have you tried with 4.0.2b2 to see if its a fixed problem with the
  connector? I know that they have made lots of fixes to the 
 connector, but
  since I don't use it, I haven't paid attention to what was 
 broken/fixed. It
  could just be that the connector isn't passing your 
 authorization through or
  something like that. You should probably visit bugzilla(if 
 you haven't
  already).
 
  I have noticed that manager requests(like all other 
 requests) end up in the
  access log(AccessLogValve), so you can look to see if your 
 request is
  getting through correctly.
 
  Charlie
 
 
 Charlie,
 
 Thank yu for answering.
 Well i have the 4.0.2-b2 installed and runnin'.
 I think it's good and more robust, but the deal is manager don't work
 correctly; so what ?
 
 I'm still stuck.
 
 Too bad...
 
 Jean-Luc B :O(
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: Problem with Manager App

2002-02-05 Thread Jean-Luc BEAUDET

Cox, Charlie a écrit :

 well, you can file a bug to make sure that one of the developers looks into
 it. It *may* still be possible to get it fixed for 4.0.2 final, but you
 should submit it soon as I don't know the timeline...

 Charlie

  -Original Message-
  From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 05, 2002 9:05 AM
  To: Tomcat Users List
  Subject: Re: Problem with Manager App
 
 
  Cox, Charlie a écrit :
 
   have you tried with 4.0.2b2 to see if its a fixed problem with the
   connector? I know that they have made lots of fixes to the
  connector, but
   since I don't use it, I haven't paid attention to what was
  broken/fixed. It
   could just be that the connector isn't passing your
  authorization through or
   something like that. You should probably visit bugzilla(if
  you haven't
   already).
  
   I have noticed that manager requests(like all other
  requests) end up in the
   access log(AccessLogValve), so you can look to see if your
  request is
   getting through correctly.
  
   Charlie
  
 
  Charlie,
 
  Thank yu for answering.
  Well i have the 4.0.2-b2 installed and runnin'.
  I think it's good and more robust, but the deal is manager don't work
  correctly; so what ?
 
  I'm still stuck.
 
  Too bad...
 
  Jean-Luc B :O(
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

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

Yep

Oky Doky.

Thank yu for all.

Jean-Luc B :O)



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




apache or tomcat

2002-02-05 Thread Gang Wu

Hi,

I'm choosing between 2 solutions.
1. Apache as web server with SSL config, tomcat as servlet container
2. Tomcat as both web server and servlet container with SSL config.

I do need some help to distiguish those 2 solutions. does tomcat as web =
server have any obvious disadvantages?

regards

Gang



RE: apache or tomcat

2002-02-05 Thread Reynir Hübner

I think the main disatvantage is,  it´s very slow compared to apache /
IIS in serving Static content (html, images, ...).
I dont know about security, the above was reason enough for us to use
apache / IIS, in production env.

hope it helps
-reynir



 -Original Message-
 From: Gang Wu [mailto:[EMAIL PROTECTED]]
 Sent: 5. febrúar 2002 15:26
 To: [EMAIL PROTECTED]
 Subject: apache or tomcat
 
 
 Hi,
 
 I'm choosing between 2 solutions.
 1. Apache as web server with SSL config, tomcat as servlet container
 2. Tomcat as both web server and servlet container with SSL config.
 
 I do need some help to distiguish those 2 solutions. does 
 tomcat as web =
 server have any obvious disadvantages?
 
 regards
 
 Gang
 

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




deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Liam Holohan

Hi all ..
I'm having difficulity in getting my wars to unpack into non standard 
locations


I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
Using mod_webapp and seems to be working fine

Did a search on google and mailing lists but to no avail.
At wits end :-(


Tomcat is installed into /home/wasp/tomcat/4.0/
Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
Apache is in /home/wasp/apache/1.3.22/ etc..
The document root of my virtual hosts are in 
/home/wasp/vhosts/virtual_host_name

I want to deploy a web app (war file app-example.war, build with 
jbuilder and examined with jar and looks ok) into a virtual host called 
www.test.com
i.e /home/wasp/vhosts/www.test.com/htdocs/webapps


It seems to recognise the context app-example I want to set up but 
does not read the WEB-INF/web.xml file inside the war ??

I keep getting an error WEB-INF/web.xml not found
i.e in my 
/home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
(custom log for virtual host www.test.com set up in server.xml)

StandardContext[/app-example]: Configuring default Manager
StandardContext[/app-example]: Processing standard container startup
WebappLoader[/app-example]: Deploying class repositories to work 
directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
WebappLoader[/app-example]: Reloading checks are enabled for this Context
StandardManager[/app-example]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/app-example]: Seeding of random number generator has 
been completed
ContextConfig[/app-example]: ContextConfig: Processing START
StandardContext[/app-example]: Setting deployment descriptor public ID 
to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
ContextConfig[/app-example]: Missing application web.xml, using defaults 
only.

StandardWrapper[/app-example:invoker]: Loading container servlet invoker
invoker: init
StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
jsp: init
Internal Error: File /WEB-INF/web.xml not found



my config details are


in httpd.conf
VirtualHost 10.20.32.13
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
 ServerName www.test.com
 TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
 ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog

 WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
 WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
/VirtualHost



in server/xml ..

   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache Virtual Host Warp connector Service
 Connector 
className=org.apache.catalina.connector.warp.WarpConnector port=8008 
minProcessors=5 maxProcessors=75 enableLookups=false 
acceptCount=10 debug=0/
 Engine className=org.apache.catalina.connector.warp.WarpEngine 
name=www.test.com debug=1 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=www.test.com- suffix=-engine.log timestamp=false/
   Host name=www.test.com debug=0 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-tomcat.log timestamp=false/
 Valve className=org.apache.catalina.valves.AccessLogValve 
directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
suffix=-tomcat-access.log pattern=common/
 Context path= 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
 Context path=/app-example 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
debug=1 reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-app-example-context.log timestamp=false/
 /Context
   /Host
   Realm className=org.apache.catalina.realm.MemoryRealm /
 /Engine
   /Service



any help or pointers to sombody who has the same problem would be great !!

Thx in advance
Liam


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




Re: apache or tomcat

2002-02-05 Thread Liam Holohan

Reynir Hübner wrote:

 I think the main disatvantage is,  it´s very slow compared to apache /
 IIS in serving Static content (html, images, ...).
 I dont know about security, the above was reason enough for us to use
 apache / IIS, in production env.
 
 hope it helps
 -reynir
 
 
 
 
-Original Message-
From: Gang Wu [mailto:[EMAIL PROTECTED]]
Sent: 5. febrúar 2002 15:26
To: [EMAIL PROTECTED]
Subject: apache or tomcat


Hi,

I'm choosing between 2 solutions.
1. Apache as web server with SSL config, tomcat as servlet container
2. Tomcat as both web server and servlet container with SSL config.

I do need some help to distiguish those 2 solutions. does 
tomcat as web =
server have any obvious disadvantages?

regards

Gang


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

I agree,  for serving static pages nothing beats apache
Use tomcat for the dynamic stuff (hook the 2 together with mod_jserv, 
mod_jk or mod_webapp)

Security : -if you are using apache (with ssl then your jsp stuff will 
also be encrypted over the wire no need to enable tomcat ssl stuff (that 
is for when tomcat is a stand alone server)

hope it helps
Liam


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




RE: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Cressatti, Dominique

What does your context for your app look
like?

-Original Message-
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:30
To: Tomcat Users List
Subject: deploying WARs in different locations..(web.xml error)


Hi all ..
I'm having difficulity in getting my wars to unpack into non standard 
locations


I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
Using mod_webapp and seems to be working fine

Did a search on google and mailing lists but to no avail.
At wits end :-(


Tomcat is installed into /home/wasp/tomcat/4.0/
Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
Apache is in /home/wasp/apache/1.3.22/ etc..
The document root of my virtual hosts are in 
/home/wasp/vhosts/virtual_host_name

I want to deploy a web app (war file app-example.war, build with 
jbuilder and examined with jar and looks ok) into a virtual host called 
www.test.com
i.e /home/wasp/vhosts/www.test.com/htdocs/webapps


It seems to recognise the context app-example I want to set up but 
does not read the WEB-INF/web.xml file inside the war ??

I keep getting an error WEB-INF/web.xml not found
i.e in my 
/home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
(custom log for virtual host www.test.com set up in server.xml)

StandardContext[/app-example]: Configuring default Manager
StandardContext[/app-example]: Processing standard container startup
WebappLoader[/app-example]: Deploying class repositories to work 
directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
WebappLoader[/app-example]: Reloading checks are enabled for this Context
StandardManager[/app-example]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/app-example]: Seeding of random number generator has 
been completed
ContextConfig[/app-example]: ContextConfig: Processing START
StandardContext[/app-example]: Setting deployment descriptor public ID 
to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
ContextConfig[/app-example]: Missing application web.xml, using defaults 
only.

StandardWrapper[/app-example:invoker]: Loading container servlet invoker
invoker: init
StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
jsp: init
Internal Error: File /WEB-INF/web.xml not found



my config details are


in httpd.conf
VirtualHost 10.20.32.13
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
 ServerName www.test.com
 TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
 ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog

 WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
 WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
/VirtualHost



in server/xml ..

   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache Virtual Host Warp connector Service
 Connector 
className=org.apache.catalina.connector.warp.WarpConnector port=8008 
minProcessors=5 maxProcessors=75 enableLookups=false 
acceptCount=10 debug=0/
 Engine className=org.apache.catalina.connector.warp.WarpEngine 
name=www.test.com debug=1 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=www.test.com- suffix=-engine.log timestamp=false/
   Host name=www.test.com debug=0 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-tomcat.log timestamp=false/
 Valve className=org.apache.catalina.valves.AccessLogValve 
directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
suffix=-tomcat-access.log pattern=common/
 Context path= 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
 Context path=/app-example 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
debug=1 reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-app-example-context.log timestamp=false/
 /Context
   /Host
   Realm className=org.apache.catalina.realm.MemoryRealm /
 /Engine
   /Service



any help or pointers to sombody who has the same problem would be great !!

Thx in advance
Liam


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


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




Strange output stream behavior

2002-02-05 Thread Jake . Dockter

Hi all,
I'm seeing something strange in the output stream from Jakarta.  Here's the
setup:
Jakarta 4.0.1 (from zip file)
Windows XP Professional
JDK 1.3.1_02 and jsdk1.4rc (makes no difference in the output)

Here's the code I'm using:

res.setContentType(text/html);

PrintWriter out = res.getWriter();

out.println(HTML);
out.println(HEADTITLEhello!/TITLE/HEAD);
out.println(BODYBIGhello/BIG/BODY/HTML);


and here's the output:
***
HTTP/1.1 200 OK
Content-Type: text/html
Date: Tue, 05 Feb 2002 14:44:37 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)

6
HTML
2


22
HEADTITLEhello!/TITLE/HEAD
2


24
BODYBIGhello/BIG/BODY/HTML
2


0
**

It looks like every call to println() is putting characters before and
after.  This also happens with the write() and println() methods on the
servletoutputstream.  Is this correct?  The strangest thing is that IE
(6.0) displays the html correctly, and a view source has the extra numbers
stripped out.

I'm pulling my hair out trying to figure this one out, can anyone point me
in the correct direction?

Thanks!
-Jake


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




RE: JRE or JDK

2002-02-05 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Ken Sanderson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 1:45 AM
 To: [EMAIL PROTECTED]
 Subject: JRE or JDK
 
 
 
 Hello all. I have installed tomcat on my NT machine, in order to run a
 software application that requires it. In the install 
 instructions it talks
 about setting the JAVA_HOME variable to the JDK bin folder. However, it

I think here is a problem. JAVA_HOME should point to JDK (not JDK bin)

 cannot find the necessary files it needs in that location. 
 Instead if I set
 the JAVA_HOME variable to my JRE bin folder, it works fine. Is 
 JDK supposed
 to be JRE?
 
 Everything is working great with the JRE setup, however I noticed 
 that when
 I go to the log on window, tomcat is shut down. After some 
 research I found
 that the problem is my JDK, and I need to upgrade it to 1.3.1, 
 which I did.
 Now the question is, since my JAVA_HOME is pointing to the JRE, 
 is it really
 1.3.1 of JRE I need, not the JDK?
 

So, you need JDK with JAVA_HOME correctly set.

 Sorry thats probably confusing, thoughts appreciated.
 
 Ken Sanderson
 
 Miistakis Institute for the Rockies
 c/o Faculty of Environmental Design
 2500 University Drive NW
 Calgary, Alberta
 T2N 1N4
 
 t 1 (403) 220-8968
   1 (403) 220-2573
 w www.rockies.ca
 
 facilitating ecosystem research  management in the Rocky Mountains
 

Anton

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




Re: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Liam Holohan

Cressatti, Dominique wrote:

 What does your context for your app look
 like?
 
 -Original Message-
 From: Liam Holohan [mailto:[EMAIL PROTECTED]]
 Sent: 05 February 2002 16:30
 To: Tomcat Users List
 Subject: deploying WARs in different locations..(web.xml error)
 
 
 Hi all ..
 I'm having difficulity in getting my wars to unpack into non standard 
 locations
 
 
 I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
 Using mod_webapp and seems to be working fine
 
 Did a search on google and mailing lists but to no avail.
 At wits end :-(
 
 
 Tomcat is installed into /home/wasp/tomcat/4.0/
 Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
 Apache is in /home/wasp/apache/1.3.22/ etc..
 The document root of my virtual hosts are in 
 /home/wasp/vhosts/virtual_host_name
 
 I want to deploy a web app (war file app-example.war, build with 
 jbuilder and examined with jar and looks ok) into a virtual host called 
 www.test.com
 i.e /home/wasp/vhosts/www.test.com/htdocs/webapps
 
 
 It seems to recognise the context app-example I want to set up but 
 does not read the WEB-INF/web.xml file inside the war ??
 
 I keep getting an error WEB-INF/web.xml not found
 i.e in my 
 /home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
 (custom log for virtual host www.test.com set up in server.xml)
 
 StandardContext[/app-example]: Configuring default Manager
 StandardContext[/app-example]: Processing standard container startup
 WebappLoader[/app-example]: Deploying class repositories to work 
 directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
 WebappLoader[/app-example]: Reloading checks are enabled for this Context
 StandardManager[/app-example]: Seeding random number generator class 
 java.security.SecureRandom
 StandardManager[/app-example]: Seeding of random number generator has 
 been completed
 ContextConfig[/app-example]: ContextConfig: Processing START
 StandardContext[/app-example]: Setting deployment descriptor public ID 
 to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 ContextConfig[/app-example]: Missing application web.xml, using defaults 
 only.
 
 StandardWrapper[/app-example:invoker]: Loading container servlet invoker
 invoker: init
 StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
 jsp: init
 Internal Error: File /WEB-INF/web.xml not found
 
 
 
 my config details are
 
 
 in httpd.conf
 VirtualHost 10.20.32.13
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
  ServerName www.test.com
  TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
  ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog
 
  WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
  WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
 /VirtualHost
 
 
 
 in server/xml ..
 
!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache Virtual Host Warp connector Service
  Connector 
 className=org.apache.catalina.connector.warp.WarpConnector port=8008 
 minProcessors=5 maxProcessors=75 enableLookups=false 
 acceptCount=10 debug=0/
  Engine className=org.apache.catalina.connector.warp.WarpEngine 
 name=www.test.com debug=1 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
Logger className=org.apache.catalina.logger.FileLogger 
 prefix=www.test.com- suffix=-engine.log timestamp=false/
Host name=www.test.com debug=0 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-tomcat.log timestamp=false/
  Valve className=org.apache.catalina.valves.AccessLogValve 
 directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
 suffix=-tomcat-access.log pattern=common/
  Context path= 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
  Context path=/app-example 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
 debug=1 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-app-example-context.log timestamp=false/
  /Context
/Host
Realm className=org.apache.catalina.realm.MemoryRealm /
  /Engine
/Service
 
 
 
 any help or pointers to sombody who has the same problem would be great !!
 
 Thx in advance
 Liam
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


The context is set up within an host element of my server.xml file


RE: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Cressatti, Dominique

It definitely looks to complex to me.
Anyway, attached is post of guy who got it working.

Dom


-Original Message-
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:48
To: Tomcat Users List
Subject: Re: deploying WARs in different locations..(web.xml error)


Cressatti, Dominique wrote:

 What does your context for your app look
 like?
 
 -Original Message-
 From: Liam Holohan [mailto:[EMAIL PROTECTED]]
 Sent: 05 February 2002 16:30
 To: Tomcat Users List
 Subject: deploying WARs in different locations..(web.xml error)
 
 
 Hi all ..
 I'm having difficulity in getting my wars to unpack into non standard 
 locations
 
 
 I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
 Using mod_webapp and seems to be working fine
 
 Did a search on google and mailing lists but to no avail.
 At wits end :-(
 
 
 Tomcat is installed into /home/wasp/tomcat/4.0/
 Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
 Apache is in /home/wasp/apache/1.3.22/ etc..
 The document root of my virtual hosts are in 
 /home/wasp/vhosts/virtual_host_name
 
 I want to deploy a web app (war file app-example.war, build with 
 jbuilder and examined with jar and looks ok) into a virtual host called 
 www.test.com
 i.e /home/wasp/vhosts/www.test.com/htdocs/webapps
 
 
 It seems to recognise the context app-example I want to set up but 
 does not read the WEB-INF/web.xml file inside the war ??
 
 I keep getting an error WEB-INF/web.xml not found
 i.e in my 
 /home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
 (custom log for virtual host www.test.com set up in server.xml)
 
 StandardContext[/app-example]: Configuring default Manager
 StandardContext[/app-example]: Processing standard container startup
 WebappLoader[/app-example]: Deploying class repositories to work 
 directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
 WebappLoader[/app-example]: Reloading checks are enabled for this Context
 StandardManager[/app-example]: Seeding random number generator class 
 java.security.SecureRandom
 StandardManager[/app-example]: Seeding of random number generator has 
 been completed
 ContextConfig[/app-example]: ContextConfig: Processing START
 StandardContext[/app-example]: Setting deployment descriptor public ID 
 to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 ContextConfig[/app-example]: Missing application web.xml, using defaults 
 only.
 
 StandardWrapper[/app-example:invoker]: Loading container servlet invoker
 invoker: init
 StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
 jsp: init
 Internal Error: File /WEB-INF/web.xml not found
 
 
 
 my config details are
 
 
 in httpd.conf
 VirtualHost 10.20.32.13
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
  ServerName www.test.com
  TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
  ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog
 
  WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
  WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
 /VirtualHost
 
 
 
 in server/xml ..
 
!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache Virtual Host Warp connector Service
  Connector 
 className=org.apache.catalina.connector.warp.WarpConnector port=8008 
 minProcessors=5 maxProcessors=75 enableLookups=false 
 acceptCount=10 debug=0/
  Engine className=org.apache.catalina.connector.warp.WarpEngine 
 name=www.test.com debug=1 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
Logger className=org.apache.catalina.logger.FileLogger 
 prefix=www.test.com- suffix=-engine.log timestamp=false/
Host name=www.test.com debug=0 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-tomcat.log timestamp=false/
  Valve className=org.apache.catalina.valves.AccessLogValve 
 directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
 suffix=-tomcat-access.log pattern=common/
  Context path= 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
  Context path=/app-example 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
 debug=1 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-app-example-context.log timestamp=false/
  /Context
/Host
Realm className=org.apache.catalina.realm.MemoryRealm /
  /Engine
/Service
 
 
 
 any help or pointers to sombody who has the same problem would be great !!
 
 Thx in advance
 Liam
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL 

RE: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Cressatti, Dominique

Oh as far as .war are concerned, tomcat will
automatically unpack them. If you want to keep
your app in a packed format it has to be in .jar
format (which you put normally under webapps/yourapp/WEB-INF/lib)

Dom

-Original Message-
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:48
To: Tomcat Users List
Subject: Re: deploying WARs in different locations..(web.xml error)


Cressatti, Dominique wrote:

 What does your context for your app look
 like?
 
 -Original Message-
 From: Liam Holohan [mailto:[EMAIL PROTECTED]]
 Sent: 05 February 2002 16:30
 To: Tomcat Users List
 Subject: deploying WARs in different locations..(web.xml error)
 
 
 Hi all ..
 I'm having difficulity in getting my wars to unpack into non standard 
 locations
 
 
 I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
 Using mod_webapp and seems to be working fine
 
 Did a search on google and mailing lists but to no avail.
 At wits end :-(
 
 
 Tomcat is installed into /home/wasp/tomcat/4.0/
 Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
 Apache is in /home/wasp/apache/1.3.22/ etc..
 The document root of my virtual hosts are in 
 /home/wasp/vhosts/virtual_host_name
 
 I want to deploy a web app (war file app-example.war, build with 
 jbuilder and examined with jar and looks ok) into a virtual host called 
 www.test.com
 i.e /home/wasp/vhosts/www.test.com/htdocs/webapps
 
 
 It seems to recognise the context app-example I want to set up but 
 does not read the WEB-INF/web.xml file inside the war ??
 
 I keep getting an error WEB-INF/web.xml not found
 i.e in my 
 /home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
 (custom log for virtual host www.test.com set up in server.xml)
 
 StandardContext[/app-example]: Configuring default Manager
 StandardContext[/app-example]: Processing standard container startup
 WebappLoader[/app-example]: Deploying class repositories to work 
 directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
 WebappLoader[/app-example]: Reloading checks are enabled for this Context
 StandardManager[/app-example]: Seeding random number generator class 
 java.security.SecureRandom
 StandardManager[/app-example]: Seeding of random number generator has 
 been completed
 ContextConfig[/app-example]: ContextConfig: Processing START
 StandardContext[/app-example]: Setting deployment descriptor public ID 
 to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 ContextConfig[/app-example]: Missing application web.xml, using defaults 
 only.
 
 StandardWrapper[/app-example:invoker]: Loading container servlet invoker
 invoker: init
 StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
 jsp: init
 Internal Error: File /WEB-INF/web.xml not found
 
 
 
 my config details are
 
 
 in httpd.conf
 VirtualHost 10.20.32.13
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
  ServerName www.test.com
  TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
  ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog
 
  WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
  WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
 /VirtualHost
 
 
 
 in server/xml ..
 
!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache Virtual Host Warp connector Service
  Connector 
 className=org.apache.catalina.connector.warp.WarpConnector port=8008 
 minProcessors=5 maxProcessors=75 enableLookups=false 
 acceptCount=10 debug=0/
  Engine className=org.apache.catalina.connector.warp.WarpEngine 
 name=www.test.com debug=1 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
Logger className=org.apache.catalina.logger.FileLogger 
 prefix=www.test.com- suffix=-engine.log timestamp=false/
Host name=www.test.com debug=0 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-tomcat.log timestamp=false/
  Valve className=org.apache.catalina.valves.AccessLogValve 
 directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
 suffix=-tomcat-access.log pattern=common/
  Context path= 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
  Context path=/app-example 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
 debug=1 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-app-example-context.log timestamp=false/
  /Context
/Host
Realm className=org.apache.catalina.realm.MemoryRealm /
  /Engine
/Service
 
 
 
 any help or pointers to sombody who has the same problem would be great !!
 

Re: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Liam Holohan

Cressatti, Dominique wrote:

 Oh as far as .war are concerned, tomcat will
 automatically unpack them. If you want to keep
 your app in a packed format it has to be in .jar
 format (which you put normally under webapps/yourapp/WEB-INF/lib)
 
 Dom
 
 -Original Message-
 From: Liam Holohan [mailto:[EMAIL PROTECTED]]
 Sent: 05 February 2002 16:48
 To: Tomcat Users List
 Subject: Re: deploying WARs in different locations..(web.xml error)
 
 
 Cressatti, Dominique wrote:
 
 
What does your context for your app look
like?

-Original Message-
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:30
To: Tomcat Users List
Subject: deploying WARs in different locations..(web.xml error)


Hi all ..
I'm having difficulity in getting my wars to unpack into non standard 
locations


I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
Using mod_webapp and seems to be working fine

Did a search on google and mailing lists but to no avail.
At wits end :-(


Tomcat is installed into /home/wasp/tomcat/4.0/
Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
Apache is in /home/wasp/apache/1.3.22/ etc..
The document root of my virtual hosts are in 
/home/wasp/vhosts/virtual_host_name

I want to deploy a web app (war file app-example.war, build with 
jbuilder and examined with jar and looks ok) into a virtual host called 
www.test.com
i.e /home/wasp/vhosts/www.test.com/htdocs/webapps


It seems to recognise the context app-example I want to set up but 
does not read the WEB-INF/web.xml file inside the war ??

I keep getting an error WEB-INF/web.xml not found
i.e in my 
/home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
(custom log for virtual host www.test.com set up in server.xml)

StandardContext[/app-example]: Configuring default Manager
StandardContext[/app-example]: Processing standard container startup
WebappLoader[/app-example]: Deploying class repositories to work 
directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
WebappLoader[/app-example]: Reloading checks are enabled for this Context
StandardManager[/app-example]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/app-example]: Seeding of random number generator has 
been completed
ContextConfig[/app-example]: ContextConfig: Processing START
StandardContext[/app-example]: Setting deployment descriptor public ID 
to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
ContextConfig[/app-example]: Missing application web.xml, using defaults 
only.

StandardWrapper[/app-example:invoker]: Loading container servlet invoker
invoker: init
StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
jsp: init
Internal Error: File /WEB-INF/web.xml not found



my config details are


in httpd.conf
VirtualHost 10.20.32.13
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
 ServerName www.test.com
 TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
 ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog

 WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
 WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
/VirtualHost



in server/xml ..

   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache Virtual Host Warp connector Service
 Connector 
className=org.apache.catalina.connector.warp.WarpConnector port=8008 
minProcessors=5 maxProcessors=75 enableLookups=false 
acceptCount=10 debug=0/
 Engine className=org.apache.catalina.connector.warp.WarpEngine 
name=www.test.com debug=1 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=www.test.com- suffix=-engine.log timestamp=false/
   Host name=www.test.com debug=0 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-tomcat.log timestamp=false/
 Valve className=org.apache.catalina.valves.AccessLogValve 
directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
suffix=-tomcat-access.log pattern=common/
 Context path= 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
 Context path=/app-example 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
debug=1 reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-app-example-context.log timestamp=false/
 /Context
   /Host
   Realm className=org.apache.catalina.realm.MemoryRealm /
 /Engine
   /Service



any help or pointers to sombody who has the same problem would be great !!

Thx in advance
Liam


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For 

Re: apache or tomcat

2002-02-05 Thread Lloyd H. Meinholz

My feeling is that if you have much static content and are able to get
the connectors working easily, use apache, otherwise use only tomcat. 

An advantage of using tomcat as a web server is that you have only one
server to setup, configure and consume resources instead of two. If most
of your site is dynamic, your requests are pretty much just passing
through apache on their way to tomcat anyway and that is a delay.

One thing that I'm a little concerned about is the performance
difference of apache/ssl and tomcat/ssl. I have no reason to doubt
tomcat/ssl, I just don't know how mature it is compared to apache/ssl (I
know, it's really JSSE right?). From the doc, it appears generating a
certificate request for VeriSign and installing it is not too difficult,
but until I've done it, I'm worried about that too.

I am in the process of moving several iPlanet/JRun sites to only tomcat.
I tried for weeks to get mod_webapp built on my environment with no
success. I have given up hope now but will probably look back in a few
months and see if things got any better. I didn't want to look into
mod_jk since that connector seems to be on the way out (I don't want to
spend the time learning something that already has a replacement). I
decided that since at least 95% of our sites are dynamic anyway, I will
use only tomcat. 

One final point, if you want to use other applications that are cgi-bin,
then you definitely need apache. I have this situation on a couple of my
sites and that is why I will continue to monitor the develoment of the
connectors.

Lloyd


Gang Wu wrote:
 
 Hi,
 
 I'm choosing between 2 solutions.
 1. Apache as web server with SSL config, tomcat as servlet container
 2. Tomcat as both web server and servlet container with SSL config.
 
 I do need some help to distiguish those 2 solutions. does tomcat as web
 =
 server have any obvious disadvantages?
 
 regards
 
 Gang

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




AW: apache or tomcat

2002-02-05 Thread Lauer, Oliver

In addition:

The only problem with TC/SSL (standalone) is that its implementation (jsse)
doesn't work with IE5.0 128 SP1 due to a bug in IE5.0 
Apache's mod_ssl does instead and thus we were forced to switch to
Apache(ssl)/TC though we want to support as many browsers as possible and
IE5.0 is still a very popular one.
And as connector I would prefer mod_jk at this stage because it can
loadbalance quite now.
Oliver 


 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Lloyd H. Meinholz [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 5. Februar 2002 17:23
An: Tomcat Users List
Betreff: Re: apache or tomcat


My feeling is that if you have much static content and are able to get
the connectors working easily, use apache, otherwise use only tomcat. 

An advantage of using tomcat as a web server is that you have only one
server to setup, configure and consume resources instead of two. If most
of your site is dynamic, your requests are pretty much just passing
through apache on their way to tomcat anyway and that is a delay.

One thing that I'm a little concerned about is the performance
difference of apache/ssl and tomcat/ssl. I have no reason to doubt
tomcat/ssl, I just don't know how mature it is compared to apache/ssl (I
know, it's really JSSE right?). From the doc, it appears generating a
certificate request for VeriSign and installing it is not too difficult,
but until I've done it, I'm worried about that too.

I am in the process of moving several iPlanet/JRun sites to only tomcat.
I tried for weeks to get mod_webapp built on my environment with no
success. I have given up hope now but will probably look back in a few
months and see if things got any better. I didn't want to look into
mod_jk since that connector seems to be on the way out (I don't want to
spend the time learning something that already has a replacement). I
decided that since at least 95% of our sites are dynamic anyway, I will
use only tomcat. 

One final point, if you want to use other applications that are cgi-bin,
then you definitely need apache. I have this situation on a couple of my
sites and that is why I will continue to monitor the develoment of the
connectors.

Lloyd


Gang Wu wrote:
 
 Hi,
 
 I'm choosing between 2 solutions.
 1. Apache as web server with SSL config, tomcat as servlet container
 2. Tomcat as both web server and servlet container with SSL config.
 
 I do need some help to distiguish those 2 solutions. does tomcat as web
 =
 server have any obvious disadvantages?
 
 regards
 
 Gang

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


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


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




AW: apache or tomcat

2002-02-05 Thread Michael Weissenbacher

just to add my experience:
after much time spent on unsuccessful installation/compilation of mod_webapp
for tomcat 4, i've moved to using the mod_jk connector from tomcat 3.3 for
tomcat 4 and it works great with apache. maybe mod_webapp will become better
but at the moment it is unusable for me because it just crashes my apache
with a segmentation fault.

michael

Gang Wu wrote:
 
 Hi,
 
 I'm choosing between 2 solutions.
 1. Apache as web server with SSL config, tomcat as servlet container
 2. Tomcat as both web server and servlet container with SSL config.
 
 I do need some help to distiguish those 2 solutions. does tomcat as web
 =
 server have any obvious disadvantages?
 
 regards
 
 Gang

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

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




Re: AW: apache or tomcat

2002-02-05 Thread Emerson

A question michael :

Does the last version of TC 4 generates the conf file inserted in Apache?

At 17:40 5/2/2002 +0100, you wrote:
just to add my experience:
after much time spent on unsuccessful installation/compilation of mod_webapp
for tomcat 4, i've moved to using the mod_jk connector from tomcat 3.3 for
tomcat 4 and it works great with apache. maybe mod_webapp will become better
but at the moment it is unusable for me because it just crashes my apache
with a segmentation fault.

michael

Gang Wu wrote:
 
 Hi,
 
 I'm choosing between 2 solutions.
 1. Apache as web server with SSL config, tomcat as servlet container
 2. Tomcat as both web server and servlet container with SSL config.
 
 I do need some help to distiguish those 2 solutions. does tomcat as web
 =
 server have any obvious disadvantages?
 
 regards
 
 Gang

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

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


Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

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




RE: apache or tomcat

2002-02-05 Thread YI,LI (HP-USA,ex1)

I also had the unsuccess with mod_webapp/tomcat 4.01, I've switched to AJP
1.3 with tomcat 4.01, along with apache 1.3.22, and they are working
together beautifully.

Li


-Original Message-
From: Michael Weissenbacher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 11:41
To: 'Tomcat Users List'
Subject: AW: apache or tomcat


just to add my experience:
after much time spent on unsuccessful installation/compilation of mod_webapp
for tomcat 4, i've moved to using the mod_jk connector from tomcat 3.3 for
tomcat 4 and it works great with apache. maybe mod_webapp will become better
but at the moment it is unusable for me because it just crashes my apache
with a segmentation fault.

michael

Gang Wu wrote:
 
 Hi,
 
 I'm choosing between 2 solutions.
 1. Apache as web server with SSL config, tomcat as servlet container
 2. Tomcat as both web server and servlet container with SSL config.
 
 I do need some help to distiguish those 2 solutions. does tomcat as web
 =
 server have any obvious disadvantages?
 
 regards
 
 Gang

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

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

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




Re: apache or tomcat

2002-02-05 Thread Liam Holohan

YI,LI (HP-USA,ex1) wrote:

 I also had the unsuccess with mod_webapp/tomcat 4.01, I've switched to AJP
 1.3 with tomcat 4.01, along with apache 1.3.22, and they are working
 together beautifully.
 
 Li
 
 
 -Original Message-
 From: Michael Weissenbacher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 11:41
 To: 'Tomcat Users List'
 Subject: AW: apache or tomcat
 
 
 just to add my experience:
 after much time spent on unsuccessful installation/compilation of mod_webapp
 for tomcat 4, i've moved to using the mod_jk connector from tomcat 3.3 for
 tomcat 4 and it works great with apache. maybe mod_webapp will become better
 but at the moment it is unusable for me because it just crashes my apache
 with a segmentation fault.
 
 michael
 
 Gang Wu wrote:
 
Hi,

I'm choosing between 2 solutions.
1. Apache as web server with SSL config, tomcat as servlet container
2. Tomcat as both web server and servlet container with SSL config.

I do need some help to distiguish those 2 solutions. does tomcat as web
=
server have any obvious disadvantages?

regards

Gang

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




About building mod_webapp

I had hell building mod_webapp as I was using apache 1.3.22 with ssl (I 
was building a httpsd exe )  Trying to build the .so file was hell as 
the make kept failing on me. (I think the patching of open ssl into 
apache wrecks the apxs script, if done like me in a hurry).  The 
back-flip manoeuvre I had to do was create a clean install of apache in 
a tmp directory and build mod_webapp from the generated apxs script .. 
once the mod_webapp.so was built  I copied it into the libexec directory 
of my production apache.  Worked first time after that.  The pain I 
found was actually building mod_webapp.so not integrating it 


Regards...
Liam


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




Re: AW: apache or tomcat

2002-02-05 Thread Lloyd H. Meinholz

Thanks for that pointer about IE5.0, I didn't know that...

Lloyd


 Lauer, Oliver wrote:
 
 In addition:
 
 The only problem with TC/SSL (standalone) is that its implementation
 (jsse)
 doesn't work with IE5.0 128 SP1 due to a bug in IE5.0
 Apache's mod_ssl does instead and thus we were forced to switch to
 Apache(ssl)/TC though we want to support as many browsers as possible
 and
 IE5.0 is still a very popular one.
 And as connector I would prefer mod_jk at this stage because it can
 loadbalance quite now.
 Oliver

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




How to force Tomcat to compile?

2002-02-05 Thread Anja Falkner

Hi, 

is there a method, which forces Tomcat (4.0) to compile all my class-files in 
WEB-INF/classes?

It is a little bit troublesome to rename the classes every time I have changed it...

Anja



FORM login with wrong role gets 404, not error page - bug?

2002-02-05 Thread Christopher Pennock

I've found some behavior that seems wrong - can someone confirm that it is correct or 
a known bug?

Specifically, using FORM login (with memory- or jdbc Realm), if I try to log into a 
protected area with a user and password that exist, but don't have the correct role to 
access the area, I get a 403:


Apache Tomcat/4.0.1 - HTTP Status 403 - Access to the requested resource has been 
denied
--
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has 
been denied) has been forbidden.


Then, after that failure, when I try to login with a user with the correct role, I get 
a 404:


Apache Tomcat/4.0.1 - HTTP Status 404 - /jsp/security/j_security_check

type Status report
message /jsp/security/j_security_check
description The requested resource (/jsp/security/j_security_check) is not available.


In both of these cases, I had hoped to get the error page I had specified in 
form-error-page, which I do get if I try to login with a user that does not exist.

Is this the correct behavior? It seems that if I try to login with a user with the 
wrong role it 'breaks' the login for further attempts with a user with the correct 
role.

Any insight would be greatly appriciated.

thanks,
Chris

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




RE: How to force Tomcat to compile?

2002-02-05 Thread Reynir Hübner

you only have to set the reloadable=true attribute.

Context path= docBase=C:\contextpath reloadable=true debug=0/

hope it helps, 
-reynir


 -Original Message-
 From: Anja Falkner [mailto:[EMAIL PROTECTED]]
 Sent: 5. febrúar 2002 18:24
 To: Tomcat Users List
 Subject: How to force Tomcat to compile?
 
 
 Hi, 
 
 is there a method, which forces Tomcat (4.0) to compile all 
 my class-files in WEB-INF/classes?
 
 It is a little bit troublesome to rename the classes every 
 time I have changed it...
 
 Anja
 

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




RE: How to force Tomcat to compile?

2002-02-05 Thread Guido Medina

just do it with the following two command lines:

cd .../WEB-INF/classes
javac *.java

Guido.

-Original Message-
From: Anja Falkner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 2:24 PM
To: Tomcat Users List
Subject: How to force Tomcat to compile?


Hi, 

is there a method, which forces Tomcat (4.0) to compile all my class-files
in WEB-INF/classes?

It is a little bit troublesome to rename the classes every time I have
changed it...

Anja



Ajp12 Problems between Zeus and Tomcat-3.2.4

2002-02-05 Thread Zsolt Koppany

Hi,

our provider uses Zeus (Solaris-2.6) as Server and that sends the requests to 
tomcat-3.2.4. Obviously there are problems over the Ajp12 communication that 
never happen when we go over the port 8080. Unfortunately some customers can 
use only the port 80. What is the best to do for us to fix those problems? 
Update to 4.0.x?

Zsolt
-- 
Zsolt Koppany

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




Re: How to force Tomcat to compile?

2002-02-05 Thread Marcelo Demestri

Define a context (in your server.xml configuration file) to your web
app. like:

Context path=/myapp docBase=myapp debug=0 reloadable=true

The reloadable=true is what do you need.
Chau chau.

Marcelo

P.S.:  To enforce TC to re-compile, you can delete all the code generated by
TC 4.0 in the %CATALINA_HOME%/work directory.

- Original Message -
From: Anja Falkner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 10:24 AM
Subject: How to force Tomcat to compile?


Hi,

is there a method, which forces Tomcat (4.0) to compile all my class-files
in WEB-INF/classes?

It is a little bit troublesome to rename the classes every time I have
changed it...

Anja


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




RE: apache + mod_SSL + tomcat

2002-02-05 Thread Charles N. Harvey III

Dom,
Do you think you could give some of us a few pointers on how you
got mod_SSL and tomcat to work?  That would be awesome.  Thanks.

Charlie

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 12:38 PM
To: Tomcat Users List
Subject: apache + mod_SSL + tomcat


Hi,
 
I've got apache + mod_SSL + tomcat working
(I don't deserve that much credit as mod_ssl worked
right out the box) but I wonder couldn't the security bypassed,
like for example accessing the page on port 8080 instead of port
443 ?
 
Dom


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




apache + mod_SSL + tomcat

2002-02-05 Thread Cressatti, Dominique

Hi,
 
I've got apache + mod_SSL + tomcat working
(I don't deserve that much credit as mod_ssl worked
right out the box) but I wonder couldn't the security bypassed,
like for example accessing the page on port 8080 instead of port
443 ?
 
Dom



RE: apache + mod_SSL + tomcat

2002-02-05 Thread Cressatti, Dominique

Well... like I said I deserve not credit
on that subject it worked straight out the
box.

Am using RH 7.2, I made sure I installed openSSL
and mod_SSL. I pointed my browser to https://localhost:443
and is worked (there was even a preconfigured certificat)

Like I said I deserve no credits.
Dom

-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 17:44
To: Tomcat Users List
Subject: RE: apache + mod_SSL + tomcat


Dom,
Do you think you could give some of us a few pointers on how you
got mod_SSL and tomcat to work?  That would be awesome.  Thanks.

Charlie

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 12:38 PM
To: Tomcat Users List
Subject: apache + mod_SSL + tomcat


Hi,
 
I've got apache + mod_SSL + tomcat working
(I don't deserve that much credit as mod_ssl worked
right out the box) but I wonder couldn't the security bypassed,
like for example accessing the page on port 8080 instead of port
443 ?
 
Dom


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


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




Re:Re: How to force Tomcat to compile?

2002-02-05 Thread Anja Falkner

Hi,

thanks for your advice for recompiling classes. I think I have to explain
the situation more exactly.

(To Reynir): The context reloadable is set to true.
(To Guido): I have tried to compile the classes in WEB-INF/classes with
javac. Then I get an ClassDefNotFoundError.
(To Marcelo): The compiled class-Files are not in the work-directory.

Now I'm at a loss.
Only if I rename my Java-Classes (a little bit of work), Tomcat notices
changes in the Class.

I were very grateful, if anyone can give me a hint...

Anja


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




RE: How to force Tomcat to compile?

2002-02-05 Thread Reynir Hübner

Hello Anja, 

This is strange, If I understand you correctly, you are really having
problems with compiling your classes with javac ?
I think the ClassDefNotFoundError is thrown if you're trying to run
your classes (with wrong name) with java, not with javac. 

which version of tomcat are you using, what system (linux, unix,
windows) and which jdk version ?

-reynir

 -Original Message-
 From: Anja Falkner [mailto:[EMAIL PROTECTED]]
 Sent: 5. febrúar 2002 19:30
 To: Tomcat Users List
 Subject: Re: How to force Tomcat to compile?
 
 
 Hi,
 
 thanks for your advice for recompiling classes. I think I 
 have to explain
 the situation more exactly.
 
 (To Reynir): The context reloadable is set to true.
 (To Guido): I have tried to compile the classes in 
 WEB-INF/classes with
 javac. Then I get an ClassDefNotFoundError.
 (To Marcelo): The compiled class-Files are not in the work-directory.
 
 Now I'm at a loss.
 Only if I rename my Java-Classes (a little bit of work), 
 Tomcat notices
 changes in the Class.
 
 I were very grateful, if anyone can give me a hint...
 
 Anja
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




Maximum url length

2002-02-05 Thread karkoma

Hi...

I'm trying to send a long uri to Tomcat 3.3 but it complains with error code 
414, (414 Request-URI Too Long). However Apache can handle the same url.

Is there a way to tell Tomcat to admit long uris / urls??
Something like this

 lynx -dump 
localhost:8080/ABC/myservlet?request=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0D%0A%3CGPPR%3E%0D%0A%09%3CFUNCION+type%3D%22UPDATE%22%3EcreateUser%3C%2FFUNCION%3E%0D%0A%09%3CAUTENTIFICATION%3E%0D%0A%09%09%3CCLIENT%3Ecesar%3C%2FCLIENT%3E%0D%0A%09%09%3CCLI_PASSWD%3Ecesar%3C%2FCLI_PASSWD%3E%0D%0A%09%09%3CUSER_LOGIN%3Ecesar%3C%2FUSER_LOGIN%3E%0D%0A%09%09%3CUSER_PASSWD%3Ecesar%3C%2FUSER_PASSWD%3E%0D%0A%09%3C%2FAUTENTIFICATION%3E%0D%0A%09%3CPARAMETERS+identype%3D%22MSISDN%22%3E%0D%0A%09%09%3CATTRIBUTE+name%3D%22USER%22+param%3D%22Y%22%3E%0D%0A%09%09%09%3COBJECT%3E%0D%0A%09%09%09%09%3CCLASS%3EUSER%3C%2FCLASS%3E%0D%0A%09%09%09%09%3CCONTENTS%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22TIMEOUTVALIDATE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%220%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MASTERLOC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATT!
RIBUTE+name%3D%22PUBLIC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22NAME%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22UserTest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MSISDN%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%2234686966458%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22USERDATA%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22Datos+de+Utest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22IDPROFILE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%221%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22VALIDATED%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22Y%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22DATEINS%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22%!
22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%3C%2FCONTENTS%3E%0D%0A%09%09%09%3C%2FOBJECT%3E%0D%0A%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%3C%2FPARAMETERS%3E%0D%0A%3C%2FGPPR%3E%0D%0A

Thanx.
Alberto

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




Re: How to force Tomcat to compile?

2002-02-05 Thread Anja Falkner

Hello Reynir,

my JSPs use some Java-Classes. This Java-Classes are positioned in
WEB-INF/classes.
Normally Tomcat compiles this classes by his own.
But if I do some changes in *.java, Tomcat doesn't check, that *.java has
changed and doesn't recompile.
That's the problem.

To found a solution, I have compiled the changed *.java with javac. The
compilation runs without problems.

Then, when I run my application I get a ClassDefNotFoundError. Tomcat don't
want my self-compiled *.class

Anja


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




Tomcat/Jakarta fee based support

2002-02-05 Thread Rittinger, Gary

We love your Tomcat product (Jakarta project). 

However, we have encountered resistance from our customers when we propose
using it with some of our projects as we were not able to find third party
support for the Tomcat software. Are there any companies (preferably US
based) that support the Tomcat software for an annual fee?


Thanks,

Gary Rittinger 
Software Engineering CTS Central Systems
Fax 703-802-8985 Ofc. 703-802-2100 ext 28
Cell 703-TOP-UNIX

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




RE: Maximum url length

2002-02-05 Thread Thanh Duong

Hi
I got this problem too with tomcat 3.3.
Now I am using tomcat 4 and This problem doesnt exist.

Thanh

-Original Message-
From: karkoma [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 5. Februar 2002 19:48
To: Tomcat Users List
Subject: Maximum url length


Hi...

I'm trying to send a long uri to Tomcat 3.3 but it complains with error code
414, (414 Request-URI Too Long). However Apache can handle the same url.

Is there a way to tell Tomcat to admit long uris / urls??
Something like this

 lynx -dump
localhost:8080/ABC/myservlet?request=%3C%3Fxml+version%3D%221.0%22+encoding
%3D%22UTF-8%22%3F%3E%0D%0A%3CGPPR%3E%0D%0A%09%3CFUNCION+type%3D%22UPDATE%22%
3EcreateUser%3C%2FFUNCION%3E%0D%0A%09%3CAUTENTIFICATION%3E%0D%0A%09%09%3CCLI
ENT%3Ecesar%3C%2FCLIENT%3E%0D%0A%09%09%3CCLI_PASSWD%3Ecesar%3C%2FCLI_PASSWD%
3E%0D%0A%09%09%3CUSER_LOGIN%3Ecesar%3C%2FUSER_LOGIN%3E%0D%0A%09%09%3CUSER_PA
SSWD%3Ecesar%3C%2FUSER_PASSWD%3E%0D%0A%09%3C%2FAUTENTIFICATION%3E%0D%0A%09%3
CPARAMETERS+identype%3D%22MSISDN%22%3E%0D%0A%09%09%3CATTRIBUTE+name%3D%22USE
R%22+param%3D%22Y%22%3E%0D%0A%09%09%09%3COBJECT%3E%0D%0A%09%09%09%09%3CCLASS
%3EUSER%3C%2FCLASS%3E%0D%0A%09%09%09%09%3CCONTENTS%3E%0D%0A%09%09%09%09%09%3
CATTRIBUTE+name%3D%22TIMEOUTVALIDATE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+val
%3D%220%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09
%3CATTRIBUTE+name%3D%22MASTERLOC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D
%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3C
ATT!
RIBUTE+name%3D%22PUBLIC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2
F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE
+name%3D%22NAME%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22UserTest%22%
2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUT
E+name%3D%22MSISDN%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22346869664
58%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CAT
TRIBUTE+name%3D%22USERDATA%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22D
atos+de+Utest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09
%09%09%3CATTRIBUTE+name%3D%22IDPROFILE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+v
al%3D%221%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%
09%3CATTRIBUTE+name%3D%22VALIDATED%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%
3D%22Y%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%
3CATTRIBUTE+name%3D%22DATEINS%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%
22%!
22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%3C%2FCONTE
NTS%3E%0D%0A%09%09%09%3C%2FOBJECT%3E%0D%0A%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%
3C%2FPARAMETERS%3E%0D%0A%3C%2FGPPR%3E%0D%0A

Thanx.
Alberto

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


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




Re: apache or tomcat

2002-02-05 Thread Shannon Chen

I am using tomcat under IIS. IIS takes care of all the
static html and tomcat is only a servlet container. It
runs good.

I think tomcat is not good for web server because of
performance. Apache with SSL is much better.

Shannon
--- Gang Wu [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm choosing between 2 solutions.
 1. Apache as web server with SSL config, tomcat as
 servlet container
 2. Tomcat as both web server and servlet container
 with SSL config.
 
 I do need some help to distiguish those 2 solutions.
 does tomcat as web =
 server have any obvious disadvantages?
 
 regards
 
 Gang
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: How to force Tomcat to compile?

2002-02-05 Thread YI,LI (HP-USA,ex1)

Hi Anja,

I had the same problem when I first start working with JSP.

The only working way I know is restart tomcat, I normally already have all
.java (my beans) copiled with javac first. 

Li

-Original Message-
From: Anja Falkner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 14:50
To: Tomcat Users List
Subject: Re: How to force Tomcat to compile?


Hello Reynir,

my JSPs use some Java-Classes. This Java-Classes are positioned in
WEB-INF/classes.
Normally Tomcat compiles this classes by his own.
But if I do some changes in *.java, Tomcat doesn't check, that *.java has
changed and doesn't recompile.
That's the problem.

To found a solution, I have compiled the changed *.java with javac. The
compilation runs without problems.

Then, when I run my application I get a ClassDefNotFoundError. Tomcat don't
want my self-compiled *.class

Anja


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

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




RE: Maximum url length

2002-02-05 Thread Deacon Marcus

Hi,
It's not a good idea. Try changing GET to POST. In case you don't know -
request uris are often cached, logged, etc, so sending any data, especially
passwords in them is a suicide or worse.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1
The HTTP protocol does not place any a priori limit on the length of a URI.
Servers MUST be able to handle the URI of any resource they serve, and
SHOULD be able to handle URIs of unbounded length if they provide GET-based
forms that could generate such URIs. A server SHOULD return 414 (Request-URI
Too Long) status if a URI is longer than the server can handle (see section
10.4.15).

  Note: Servers ought to be cautious about depending on URI lengths
  above 255 bytes, because some older client or proxy
  implementations might not properly support these lengths.

Greetings, deacon Marcus

 -Original Message-
 From: karkoma [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 7:48 PM
 To: Tomcat Users List
 Subject: Maximum url length


 Hi...

 I'm trying to send a long uri to Tomcat 3.3 but it complains with
 error code
 414, (414 Request-URI Too Long). However Apache can handle the same url.

 Is there a way to tell Tomcat to admit long uris / urls??
 Something like this

  lynx -dump
 localhost:8080/ABC/myservlet?request=%3C%3Fxml+version%3D%221.0%2
 2+encoding%3D%22UTF-8%22%3F%3E%0D%0A%3CGPPR%3E%0D%0A%09%3CFUNCION+
type%3D%22UPDATE%22%3EcreateUser%3C%2FFUNCION%3E%0D%0A%09%
3CAUTENTIFICATION%3E%0D%0A%09%09%3CCLIENT%3Ecesar%3C%2FCLIENT%3E%0
 D%0A%09%09%3CCLI_PASSWD%3Ecesar%3C%2FCLI_PASSWD%3E%0D%0A%09%09%3CU
SER_LOGIN%3Ecesar%3C%2FUSER_LOGIN%3E%0D%0A%09%09%3CUSER_PASSWD%3Ecesar%
3C%2FUSER_PASSWD%3E%0D%0A%09%3C%2FAUTENTIFICATION%3E%0D%0A%09%3CPA
 RAMETERS+identype%3D%22MSISDN%22%3E%0D%0A%09%09%3CATTRIBUTE+name%3
 D%22USER%22+param%3D%22Y%22%3E%0D%0A%09%09%09%3COBJECT%3E%0D%0A%09
 %09%09%09%3CCLASS%3EUSER%3C%2FCLASS%3E%0D%0A%09%09%09%09%3CCONTENT
 S%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22TIMEOUTVALIDATE%22
 %3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%220%22%2F%3E%0D%0A%09%09%
 09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3
 D%22MASTERLOC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2
 F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATT!
 RIBUTE+name%3D%22PUBLIC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3
 D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%
 09%09%09%3CATTRIBUTE+name%3D%22NAME%22%3E%0D%0A%09%09%09%09%09%09%
 3CSTRING+val%3D%22UserTest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTR
IBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MSISDN%22%3E%0D%0A%
09%09%09%09%09%09%3CSTRING+val%3D%2234686966458%22%2F%3E%0D%0A%09%
 09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+nam
 e%3D%22USERDATA%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22Da
tos+de+Utest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%
09%09%09%09%3CATTRIBUTE+name%3D%22IDPROFILE%22%3E%0D%0A%09%09%09%0
 9%09%09%3CINT+val%3D%221%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIB
UTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22VALIDATED%22%3E%0D%
0A%09%09%09%09%09%09%3CCHAR+val%3D%22Y%22%2F%3E%0D%0A%09%09%09%09%
 09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22DA
TEINS%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22%!
 22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%
 3C%2FCONTENTS%3E%0D%0A%09%09%09%3C%2FOBJECT%3E%0D%0A%09%09%3C%2FAT
TRIBUTE%3E%0D%0A%09%3C%2FPARAMETERS%3E%0D%0A%3C%2FGPPR%3E%0D%0A

 Thanx.
 Alberto

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




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




RE: How to force Tomcat to compile?

2002-02-05 Thread Shannon Chen

hi, Anja,

i don't think tomcat will recompile automatically. 

you can compile changed java file by yourself and put
the class file under WEB-INF/classes. it should work. 

one more thing, if you set ReloadInterceptor
fullReload=true, you don't need to restart tomcat.
it will reload both context and servlets
automatically.

hope it helps,

Shannon
--- YI,LI (HP-USA,ex1) [EMAIL PROTECTED] wrote:
 Hi Anja,
 
 I had the same problem when I first start working
 with JSP.
 
 The only working way I know is restart tomcat, I
 normally already have all
 .java (my beans) copiled with javac first. 
 
 Li
 
 -Original Message-
 From: Anja Falkner [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 14:50
 To: Tomcat Users List
 Subject: Re: How to force Tomcat to compile?
 
 
 Hello Reynir,
 
 my JSPs use some Java-Classes. This Java-Classes are
 positioned in
 WEB-INF/classes.
 Normally Tomcat compiles this classes by his own.
 But if I do some changes in *.java, Tomcat doesn't
 check, that *.java has
 changed and doesn't recompile.
 That's the problem.
 
 To found a solution, I have compiled the changed
 *.java with javac. The
 compilation runs without problems.
 
 Then, when I run my application I get a
 ClassDefNotFoundError. Tomcat don't
 want my self-compiled *.class
 
 Anja
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: How to force Tomcat to compile?

2002-02-05 Thread Reynir Hübner

Anja, 

I´ve never heard or used this auto-compiler feature in tomcat. 
I tried it by inserting a very simple heyworld.java servlet with in my
classes directory, and nothing happens, at least it definately does not
get compiled.

I always use javac to compile everything with in my classes folder, if
I'm using javabeans I usually pack'em up into a .jar file and put in the
/lib directory. The reloader always sees when a jar or a class file is
updated.

sorry I cant help.

-reynir



 -Original Message-
 From: Anja Falkner [mailto:[EMAIL PROTECTED]]
 Sent: 5. febrúar 2002 19:50
 To: Tomcat Users List
 Subject: Re: How to force Tomcat to compile?
 
 
 Hello Reynir,
 
 my JSPs use some Java-Classes. This Java-Classes are positioned in
 WEB-INF/classes.
 Normally Tomcat compiles this classes by his own.
 But if I do some changes in *.java, Tomcat doesn't check, 
 that *.java has
 changed and doesn't recompile.
 That's the problem.
 
 To found a solution, I have compiled the changed *.java with 
 javac. The
 compilation runs without problems.
 
 Then, when I run my application I get a 
 ClassDefNotFoundError. Tomcat don't
 want my self-compiled *.class
 
 Anja
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




RE: Maximum url length

2002-02-05 Thread Shannon Chen

Internet Explorer has a maximum uniform resource
locator (URL) length of 2,083 characters, with a
maximum path length of 2,048 characters. This limit
applies to both POST and GET request URLs. 

If you are using the GET method, you are limited to a
maximum of 2,048 characters (minus the number of
characters in the actual path, of course). 

POST, however, is not limited by the size of the URL
for submitting name/value pairs, because they are
transferred in the header and not the URL. 


--- Deacon Marcus [EMAIL PROTECTED] wrote:
 Hi,
 It's not a good idea. Try changing GET to POST. In
 case you don't know -
 request uris are often cached, logged, etc, so
 sending any data, especially
 passwords in them is a suicide or worse.
 

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1
 The HTTP protocol does not place any a priori limit
 on the length of a URI.
 Servers MUST be able to handle the URI of any
 resource they serve, and
 SHOULD be able to handle URIs of unbounded length if
 they provide GET-based
 forms that could generate such URIs. A server SHOULD
 return 414 (Request-URI
 Too Long) status if a URI is longer than the server
 can handle (see section
 10.4.15).
 
   Note: Servers ought to be cautious about
 depending on URI lengths
   above 255 bytes, because some older client or
 proxy
   implementations might not properly support
 these lengths.
 
 Greetings, deacon Marcus
 
  -Original Message-
  From: karkoma [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 05, 2002 7:48 PM
  To: Tomcat Users List
  Subject: Maximum url length
 
 
  Hi...
 
  I'm trying to send a long uri to Tomcat 3.3 but it
 complains with
  error code
  414, (414 Request-URI Too Long). However Apache
 can handle the same url.
 
  Is there a way to tell Tomcat to admit long uris /
 urls??
  Something like this
 
   lynx -dump
 

localhost:8080/ABC/myservlet?request=%3C%3Fxml+version%3D%221.0%2
 

2+encoding%3D%22UTF-8%22%3F%3E%0D%0A%3CGPPR%3E%0D%0A%09%3CFUNCION+

type%3D%22UPDATE%22%3EcreateUser%3C%2FFUNCION%3E%0D%0A%09%

3CAUTENTIFICATION%3E%0D%0A%09%09%3CCLIENT%3Ecesar%3C%2FCLIENT%3E%0
 

D%0A%09%09%3CCLI_PASSWD%3Ecesar%3C%2FCLI_PASSWD%3E%0D%0A%09%09%3CU

SER_LOGIN%3Ecesar%3C%2FUSER_LOGIN%3E%0D%0A%09%09%3CUSER_PASSWD%3Ecesar%

3C%2FUSER_PASSWD%3E%0D%0A%09%3C%2FAUTENTIFICATION%3E%0D%0A%09%3CPA
 

RAMETERS+identype%3D%22MSISDN%22%3E%0D%0A%09%09%3CATTRIBUTE+name%3
 

D%22USER%22+param%3D%22Y%22%3E%0D%0A%09%09%09%3COBJECT%3E%0D%0A%09
 

%09%09%09%3CCLASS%3EUSER%3C%2FCLASS%3E%0D%0A%09%09%09%09%3CCONTENT
 

S%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22TIMEOUTVALIDATE%22
 

%3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%220%22%2F%3E%0D%0A%09%09%
 

09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3
 

D%22MASTERLOC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2
 

F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATT!
 

RIBUTE+name%3D%22PUBLIC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3
 

D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%
 

09%09%09%3CATTRIBUTE+name%3D%22NAME%22%3E%0D%0A%09%09%09%09%09%09%
 

3CSTRING+val%3D%22UserTest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTR

IBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MSISDN%22%3E%0D%0A%

09%09%09%09%09%09%3CSTRING+val%3D%2234686966458%22%2F%3E%0D%0A%09%
 

09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+nam
 

e%3D%22USERDATA%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22Da

tos+de+Utest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%

09%09%09%09%3CATTRIBUTE+name%3D%22IDPROFILE%22%3E%0D%0A%09%09%09%0
 

9%09%09%3CINT+val%3D%221%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIB

UTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22VALIDATED%22%3E%0D%

0A%09%09%09%09%09%09%3CCHAR+val%3D%22Y%22%2F%3E%0D%0A%09%09%09%09%
 

09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22DA

TEINS%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22%!
 

22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%
 

3C%2FCONTENTS%3E%0D%0A%09%09%09%3C%2FOBJECT%3E%0D%0A%09%09%3C%2FAT

TRIBUTE%3E%0D%0A%09%3C%2FPARAMETERS%3E%0D%0A%3C%2FGPPR%3E%0D%0A
 
  Thanx.
  Alberto
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: How to force Tomcat to compile?

2002-02-05 Thread Anja Falkner

Hi all,

thanks for your help. Now I'm going to try some things. 

I hope, that self-compiling and restarting Tomcat will do it.

Anja


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




Re: Apache w/ mod_jk and Tomcat 3.2.1 not handling URL rewriting

2002-02-05 Thread Robert Wille

Actually, Apache does know how to hand servlet requests to Tomcat, just not
for URL's that have been rewritten. The first request sets a cookie and the
page contains URL's which have been rewritten (Tomcat does not yet know if
the browser supports cookies, so it must rewrite these URL's). When I follow
a link on that page, I'm following a rewritten URL. I get an error 404
because Apache/Tomcat is not handling the rewritten URL properly. After
getting the error, everything works, because subsequent requests contain the
cookie and therefore the URL's are not rewritten. Presumably, if the browser
did not support cookies, the error would continue to occur.

Therefore, every request is properly handled, including the static content,
except for the second request (which has the ;jsessionid=x in it, since
the servlet container does not yet know if the browser supports cookies or
not).

One other interesting thing. If I kill Tomcat, and then follow the link that
has been rewritten, I get a server error rather than a 404. Presumably
Apache is passing the request on to Tomcat, but has mangled it such that
Tomcat cannot resolve the URI.

I believe that my mod_jk.conf is correct, as my applications work correctly
after the cookie has been set and Tomcat is aware that my browser has
accepted the cookie. For what its worth, I have the following in my
mod_jk.conf:

JkMount /webapp/* ajp13

- Original Message -
From: Robert Wille [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 04, 2002 9:54 PM
Subject: Re: Apache w/ mod_jk and Tomcat 3.2.1 not handling URL rewriting


 Actually, Apache does know how to hand servlet requests to Tomcat, just
not
 for URL's that have been rewritten. The first request sets a cookie and
the
 page contains URL's which have been rewritten (Tomcat does not yet know if
 the browser supports cookies, so it must rewrite these URL's). When I
follow
 a link on that page, I'm following a rewritten URL. I get an error 404
 because Apache/Tomcat is not handling the rewritten URL properly. After
 getting the error, everything works, because subsequent requests contain
the
 cookie and therefore the URL's are not rewritten. Presumably, if the
browser
 did not support cookies, the error would continue to occur.

 Therefore, every request is properly handled, including the static
content,
 except for the second request (which has the ;jsessionid=x in it,
since
 the servlet container does not yet know if the browser supports cookies or
 not).

 One other interesting thing. If I kill Tomcat, and then follow the link
that
 has been rewritten, I get a server error rather than a 404. Presumably
 Apache is passing the request on to Tomcat, but has mangled it such that
 Tomcat cannot resolve the URI.

 I believe that my mod_jk.conf is correct, as my applications work
correctly
 after the cookie has been set and Tomcat is aware that my browser has
 accepted the cookie. For what its worth, I have the following in my
 mod_jk.conf:

 JkMount /webapp/* ajp13

 - Original Message -
 From: John Moore [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, February 04, 2002 7:31 PM
 Subject: RE: Apache w/ mod_jk and Tomcat 3.2.1 not handling URL rewriting


 
  It sounds like apache is not configured to hand .jsp or /servlet
requests
  back to tomcat.  From Tomcat 3.3 (sorry it's all I have around right
now).
  If you mistakenly encoded your gif/.js references you will need to do a
  rewrite of the URL so apache can pass by it.  I say it only because we
did
  it once and having mod_rewrite enabled on Apache was a god-send!  Make
 sure
  that you have the Include in your apache httpd.conf (e.g. Include
  /opt/jakarta-tomcat-3.3/conf/auto/mod_jk.conf ).
 
 
  { partial from mod_jk.conf for one application}
 
  JkMount /webstaff/*.jsp ajp13
  JkMount /webstaff/servlet/* ajp13
 
  Alias /webstaff /opt/jakarta-tomcat-3.3/webapps/webstaff
  Directory /opt/jakarta-tomcat-3.3/webapps/webstaff
 AllowOverride All
 Options Indexes FollowSymLinks
 Order allow,deny
 Allow from all
  /Directory
 
  Location /webstaff/WEB-INF
AllowOverride None
deny from all
  /Location
 
  Location /webstaff/META-INF
AllowOverride None
deny from all
  /Location
 
  John Moore
 
  -Original Message-
  From: Robert Wille [mailto:[EMAIL PROTECTED]]
  Sent: Monday, February 04, 2002 3:35 PM
  To: [EMAIL PROTECTED]
  Subject: Apache w/ mod_jk and Tomcat 3.2.1 not handling URL rewriting
 
 
  I have a standalone Tomcat 3.2.1 installation I am trying to make work
  through Apache with mod_jk and ajp13. Rewritten URL's (ones with
  ;jsessionid= in them) give me a 404 error. Even when the browser has
 cookies
  enabled, there is still a problem with the second request. Tomcat
doesn't
  know whether the browser will accept cookies, so it sets the cookie and
  rewrites the URL and I get the error. Any help would be greatly
 appreciated
 



--
To 

tomcat as HTTP server config question

2002-02-05 Thread Lloyd H. Meinholz

For a couple of reasons, we have decided to use tomcat as a http server
as well as our application server. In our current setup with a web
server and an application server, in my web server config there is a
directory of reusable graphics that I refer to as /images which is an
alias to /my/server/dir/images. The directory contains only static
content (graphics). I would like all of my web applications to be able
to refer to files in this dir as /images/my_logo.jpg. Is there a smarter
way to do this than setting up images as a web application via Context?
What I have is:

Context path=/images docBase=/my/server/dir/images debug=0/

It just seems weird and wasteful to have this as a web application.
Thanks for any pointers,

Lloyd

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




Re: Maximum url length

2002-02-05 Thread Chinni . Venkateswara


One way  I can see is... use hidden html INPUT tags for your params and
use POST instead of GET.

Hope this helps.

gOOd day.
-Chinni




   

karkoma

abambala@genTo: Tomcat Users List 

asys.es [EMAIL PROTECTED]  

 cc:   

02/05/02 Subject: Maximum url length   

12:47 PM   

Please 

respond to 

Tomcat Users   

List   

   

   





Hi...

I'm trying to send a long uri to Tomcat 3.3 but it complains with error
code
414, (414 Request-URI Too Long). However Apache can handle the same url.

Is there a way to tell Tomcat to admit long uris / urls??
Something like this

 lynx -dump
localhost:8080/ABC/myservlet?request
=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0D%0A%3CGPPR%3E%0D%0A%09%3CFUNCION+type%3D%22UPDATE%22%3EcreateUser%3C%2FFUNCION%3E%0D%0A%09%3CAUTENTIFICATION%3E%0D%0A%09%09%3CCLIENT%3Ecesar%3C%2FCLIENT%3E%0D%0A%09%09%3CCLI_PASSWD%3Ecesar%3C%2FCLI_PASSWD%3E%0D%0A%09%09%3CUSER_LOGIN%3Ecesar%3C%2FUSER_LOGIN%3E%0D%0A%09%09%3CUSER_PASSWD%3Ecesar%3C%2FUSER_PASSWD%3E%0D%0A%09%3C%2FAUTENTIFICATION%3E%0D%0A%09%3CPARAMETERS+identype%3D%22MSISDN%22%3E%0D%0A%09%09%3CATTRIBUTE+name%3D%22USER%22+param%3D%22Y%22%3E%0D%0A%09%09%09%3COBJECT%3E%0D%0A%09%09%09%09%3CCLASS%3EUSER%3C%2FCLASS%3E%0D%0A%09%09%09%09%3CCONTENTS%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22TIMEOUTVALIDATE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%220%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MASTERLOC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATT!

RIBUTE+name%3D%22PUBLIC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22NAME%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22UserTest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MSISDN%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%2234686966458%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22USERDATA%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22Datos+de+Utest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22IDPROFILE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%221%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22VALIDATED%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22Y%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22DATEINS%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22%!

22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%3C%2FCONTENTS%3E%0D%0A%09%09%09%3C%2FOBJECT%3E%0D%0A%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%3C%2FPARAMETERS%3E%0D%0A%3C%2FGPPR%3E%0D%0A


Thanx.
Alberto

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






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




Tomcat Test Environment v3.3x?

2002-02-05 Thread Knutsen Jeffrey S

Has anyone experience with the WebSphere Tomcat Test Envrionment?  I have
found some doc at
http://www7.software.ibm.com/vad.nsf/FrameData/Master?OpenDocumentTitle=Ove
rviewFSet=1Doc3=4556Doc4=4567 which gives instructions to install and run
a Tomcat Test Environment in VisualAge for Java v3.5.3.  

I searched IBM, but found no reference to Tomcat 3.3x.  I have checked the
user mail list archive, again with no luck.  Can someone please inform me if
I am just missing something obvious?  I tried replacing the Tomcat directory
structure which was installed into VAJava with the one which is extracted by
the v3.3a zip file, but the TTE failed to start (not unexpectedly actually).

Can someone inform me if it is possible, and possibly point me to some
reference, to upgrade the TTE to run version 3.3a?  

Thanks very much.

-- Jeff



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




Tomcat Test Environment v3.3x? (improved question)

2002-02-05 Thread Knutsen Jeffrey S

Has anyone experience with the WebSphere Tomcat Test Envrionment for use
within VisualAge for Java?  I have found some doc at
http://www7.software.ibm.com/vad.nsf/FrameData/Master?OpenDocumentTitle=Ove
rviewFSet=1Doc3=4556Doc4=4567 which gives instructions to install and run
a Tomcat Test Environment version 3.2.1 in VisualAge for Java v3.5.3.  What
I would like to do is run Tomcat v3.3x inside of VAJava.

I searched IBM, but found no reference to Tomcat 3.3x.  I have checked the
user mail list archive, again with no luck.  Can someone please inform me if
I am just missing something obvious?  I tried replacing the Tomcat directory
structure which was installed into VAJava with the one which is extracted by
the v3.3a zip file, but the TTE failed to start (not unexpectedly actually).

Can someone inform me if it is possible, and possibly point me to some
reference, to upgrade the TTE to run version 3.3a?  

Thanks very much.

-- Jeff



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




Re: Maximum url length

2002-02-05 Thread karkoma

El Mar 05 Feb 2002 20:12, escribiste:
 Hi,
 It's not a good idea. Try changing GET to POST. In case you don't know -
 request uris are often cached, logged, etc, so sending any data, especially
 passwords in them is a suicide or worse.


I compound the uri internally in my servlet, encode it and do a POST. In fact 
tomcat shows me the doPost.
The question is: I KNOW that I'm using method POST and I know the generated 
uri is very long. Have you ever try to send so long uris? How to treat them? 
Can tomcat be configured to handle longer uris?

Thank you again.
Alberto


 http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1
 The HTTP protocol does not place any a priori limit on the length of a
 URI. Servers MUST be able to handle the URI of any resource they serve, and
 SHOULD be able to handle URIs of unbounded length if they provide GET-based
 forms that could generate such URIs. A server SHOULD return 414
 (Request-URI Too Long) status if a URI is longer than the server can handle
 (see section 10.4.15).

   Note: Servers ought to be cautious about depending on URI lengths
   above 255 bytes, because some older client or proxy
   implementations might not properly support these lengths.

 Greetings, deacon Marcus

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




Re: apache + mod_SSL + tomcat

2002-02-05 Thread Dean Hiller

I thought tomcat was on 8443 by default.  Are you sure you are pointing at tomcat, or 
do you have another webserver running on port 443, since that is the default that most 
webservers use when starting up.  tomcat is the exception running on 8443
thanks,
Dean


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




session and dtd questions for tomcat 4.0.1

2002-02-05 Thread Zhiyong Li

I have two problems with using tomcat 4.0.1 release build.

1. I have a xml file and its dtd in the same directory, I tried to use
the following approach in my xml file to refer to the dtd:
!DOCTYPE iBioObjectAction SYSTEM 'navigate.dtd'

But I get the following exception:

[Fatal Error] :2:-1: Relative URI navigate.dtd; can not be resolved
without a document URI.
org.xml.sax.SAXParseException: Relative URI navigate.dtd; can not be
resolved without a document URI.

2. I am trying to use isNew() method on session to detect whether a
session is newly created or not. For example, 

HttpSession session = request.getSession();

if (session.isNew()) {
// do something
}

However, session.isNew() always returns false. I tried several other
combinations such as: request.getSession(true) and I got the same
result.

Are these two known problems or anything I am missing?

Thanks,
Zhiyong Li
Analytical Solutions, SAS Institute
(919) 653-2746
[EMAIL PROTECTED]



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




Re: How to force Tomcat to compile?

2002-02-05 Thread Micael Padraig Og mac Grene

Anja.  Your compilation cannot be the problem, Anja.  I use only 
self-compiled classes.  I don't even put my source code into Tomcat.  Use 
the manager app to stop and restart your web application, is my suggestion, 
after you compile.  Or, you can stop and start Tomcat.  Micael

At 07:49 PM 2/5/02 +, you wrote:
Hello Reynir,

my JSPs use some Java-Classes. This Java-Classes are positioned in
WEB-INF/classes.
Normally Tomcat compiles this classes by his own.
But if I do some changes in *.java, Tomcat doesn't check, that *.java has
changed and doesn't recompile.
That's the problem.

To found a solution, I have compiled the changed *.java with javac. The
compilation runs without problems.

Then, when I run my application I get a ClassDefNotFoundError. Tomcat don't
want my self-compiled *.class

Anja


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



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




Re: apache or tomcat

2002-02-05 Thread Micael Padraig Og mac Grene

Do you have some measurements on this, Chen?

At 10:56 AM 2/5/02 -0800, you wrote:
I am using tomcat under IIS. IIS takes care of all the
static html and tomcat is only a servlet container. It
runs good.

I think tomcat is not good for web server because of
performance. Apache with SSL is much better.

Shannon
--- Gang Wu [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm choosing between 2 solutions.
  1. Apache as web server with SSL config, tomcat as
  servlet container
  2. Tomcat as both web server and servlet container
  with SSL config.
 
  I do need some help to distiguish those 2 solutions.
  does tomcat as web =
  server have any obvious disadvantages?
 
  regards
 
  Gang
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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



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




RE: Tomcat Test Environment v3.3x? (improved question)

2002-02-05 Thread Larry Isaacs

This should be doable, but as you have found, isn't going to work
by just replacing the installation directory.  The startup class
is different along with other minor changes in startup.  This will
require some configuration differences to work.  Unfortunately,
the directions you cite simply say run setup.exe and I have no
idea what configuration this does.  Since I don't have VAJava,
I can't say what needs to be done.  Perhaps someone else can
supply details about what needs to be configured.

Larry

 -Original Message-
 From: Knutsen Jeffrey S [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 2:44 PM
 To: 'Tomcat Users List'
 Subject: Tomcat Test Environment v3.3x? (improved question)
 
 
 Has anyone experience with the WebSphere Tomcat Test 
 Envrionment for use
 within VisualAge for Java?  I have found some doc at
 http://www7.software.ibm.com/vad.nsf/FrameData/Master?OpenDocu
mentTitle=Ove
rviewFSet=1Doc3=4556Doc4=4567 which gives instructions to install and run
a Tomcat Test Environment version 3.2.1 in VisualAge for Java v3.5.3.  What
I would like to do is run Tomcat v3.3x inside of VAJava.

I searched IBM, but found no reference to Tomcat 3.3x.  I have checked the
user mail list archive, again with no luck.  Can someone please inform me if
I am just missing something obvious?  I tried replacing the Tomcat directory
structure which was installed into VAJava with the one which is extracted by
the v3.3a zip file, but the TTE failed to start (not unexpectedly actually).

Can someone inform me if it is possible, and possibly point me to some
reference, to upgrade the TTE to run version 3.3a?  

Thanks very much.

-- Jeff



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

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




RE: Session Binding with IIS (Is it Possible?)

2002-02-05 Thread Pavel Brun

I am assuming from the lack of response that session binding between IIS and
Tomcat is not possible? This is in reference to having Tomcat keep the IIS 
session active when Tomcat is processing its Web Application. 

Thanks
Paul

-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 5:41 PM
To: Tomcat User
Subject: Session Binding with IIS (Is it Possible?)


I am not sure if this is possible, but what possibilities are out there to
bind the IIS session with Tomcat's Session Management and vice versa?

Thanks
Paul






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



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




Re: session and dtd questions for tomcat 4.0.1

2002-02-05 Thread Mark

At 02:55 PM 2/5/2002 -0500, you wrote:
I have two problems with using tomcat 4.0.1 release build.

1. I have a xml file and its dtd in the same directory, I tried to use
the following approach in my xml file to refer to the dtd:
!DOCTYPE iBioObjectAction SYSTEM 'navigate.dtd'

But I get the following exception:

[Fatal Error] :2:-1: Relative URI navigate.dtd; can not be resolved
without a document URI.
org.xml.sax.SAXParseException: Relative URI navigate.dtd; can not be
resolved without a document URI.

2. I am trying to use isNew() method on session to detect whether a
session is newly created or not. For example, 

   HttpSession session = request.getSession();
   
   if (session.isNew()) {
   // do something
   }

However, session.isNew() always returns false. I tried several other
combinations such as: request.getSession(true) and I got the same
result.

Are these two known problems or anything I am missing?

Thanks,
Zhiyong Li
Analytical Solutions, SAS Institute
(919) 653-2746
[EMAIL PROTECTED]



I'm using SAX parser validation with a DTD and xml in the same directory
(WEB-INF) and not having any problems under Tomcat 4.0.1. My DOCTYPE syntax
is basically the same as yours.

Mark

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




Is it a BUG? (Tomcat Web Server v3.2 (final))

2002-02-05 Thread Igor Fedulov


Hello All:

I'm new to this list, so please forgive me if I post something which was
posted before. I tried to search
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ and come up
with nothing.

Environment:
1. Netbeans 3.3.1 with built in Tomcat 3.2 server
2. web.xml fragment:
security-constraint
web-resource-collection
web-resource-nameSecurePages/web-resource-name
descriptionSecurity constraint for resources in
the secure directory/description
url-pattern/secure/*/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
/web-resource-collection

auth-constraint
descriptiononly let the system user login
/description
role-nameadmin/role-name
/auth-constraint

user-data-constraint
descriptionSSL not required/description
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/LoginForm.html/form-login-page

form-error-page/LoginError.html/form-error-page
/form-login-config
/login-config
security-role
descriptionAdmin ROLE/description
role-nameadmin/role-name
/security-role
3. Problem:

a. request such as http://localhost:8080/secure getting routed to
/LoginForm.html as described in web.xml which is cool and what I want.
b. request such as http://localhost:8080//secure returns directory
listing of secure directory without auth...

If this is fixed or known bug please let me know.

Thanks!

-- 
Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : [EMAIL PROTECTED]
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935




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




RE: Is it a BUG? (Tomcat Web Server v3.2 (final))

2002-02-05 Thread Larry Isaacs

This is a known bug in 3.2 and 3.2.1.  I think it was fixed
in Tomcat 3.2.2.  It is not a problem in Tomcat 3.3 and
Tomcat 4.x versions as well.

Cheers,
Larry

 -Original Message-
 From: Igor Fedulov [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 3:31 PM
 To: [EMAIL PROTECTED]
 Subject: Is it a BUG? (Tomcat Web Server v3.2 (final))
 
 
 
 Hello All:
 
 I'm new to this list, so please forgive me if I post 
 something which was
 posted before. I tried to search
 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ 
 and come up
 with nothing.
 
 Environment:
 1. Netbeans 3.3.1 with built in Tomcat 3.2 server
 2. web.xml fragment:
   security-constraint
   web-resource-collection
   
 web-resource-nameSecurePages/web-resource-name
   descriptionSecurity constraint for 
 resources in
 the secure directory/description
   url-pattern/secure/*/url-pattern
   http-methodPOST/http-method
   http-methodGET/http-method
   /web-resource-collection
 
   auth-constraint
   descriptiononly let the system user login
 /description
   role-nameadmin/role-name
   /auth-constraint
 
   user-data-constraint
   descriptionSSL not required/description
   transport-guaranteeNONE/transport-guarantee
   /user-data-constraint
   /security-constraint
   login-config
   auth-methodFORM/auth-method
   form-login-config
   
 form-login-page/LoginForm.html/form-login-page
 
 form-error-page/LoginError.html/form-error-page
   /form-login-config
   /login-config
   security-role
   descriptionAdmin ROLE/description
   role-nameadmin/role-name
   /security-role
 3. Problem:
 
 a. request such as http://localhost:8080/secure getting routed to
 /LoginForm.html as described in web.xml which is cool and what I want.
 b. request such as http://localhost:8080//secure returns directory
 listing of secure directory without auth...
 
 If this is fixed or known bug please let me know.
 
 Thanks!
 
 -- 
 Best regards,
 --
 HTTP is a stateless protocol, and the Internet is a stateless 
 development
 environment
 --
 Igor Fedulov
 E-mail : [EMAIL PROTECTED]
 Work Ph: 773.775.1595
 Home Ph: 773.281.8938
 Cell Ph: 773.580.5935
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Is it a BUG? (Tomcat Web Server v3.2 (final))

2002-02-05 Thread Igor Fedulov


 This is a known bug in 3.2 and 3.2.1.  I think it was fixed
 in Tomcat 3.2.2.  It is not a problem in Tomcat 3.3 and
 Tomcat 4.x versions as well.

Thanks! Now I have to find out if it's possible to upgrade built in tomcat
in Netbeans to 3.3...


  -Original Message-
  From: Igor Fedulov [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 05, 2002 3:31 PM
  To: [EMAIL PROTECTED]
  Subject: Is it a BUG? (Tomcat Web Server v3.2 (final))
 
 
 
  Hello All:
 
  I'm new to this list, so please forgive me if I post
  something which was
  posted before. I tried to search
  http://www.mail-archive.com/tomcat-user@jakarta.apache.org/
  and come up
  with nothing.
 
  Environment:
  1. Netbeans 3.3.1 with built in Tomcat 3.2 server
  2. web.xml fragment:
  security-constraint
  web-resource-collection
 
  web-resource-nameSecurePages/web-resource-name
  descriptionSecurity constraint for
  resources in
  the secure directory/description
  url-pattern/secure/*/url-pattern
  http-methodPOST/http-method
  http-methodGET/http-method
  /web-resource-collection
 
  auth-constraint
  descriptiononly let the system user login
  /description
  role-nameadmin/role-name
  /auth-constraint
 
  user-data-constraint
  descriptionSSL not required/description
  transport-guaranteeNONE/transport-guarantee
  /user-data-constraint
  /security-constraint
  login-config
  auth-methodFORM/auth-method
  form-login-config
 
  form-login-page/LoginForm.html/form-login-page
 
  form-error-page/LoginError.html/form-error-page
  /form-login-config
  /login-config
  security-role
  descriptionAdmin ROLE/description
  role-nameadmin/role-name
  /security-role
  3. Problem:
 
  a. request such as http://localhost:8080/secure getting routed to
  /LoginForm.html as described in web.xml which is cool and what I want.
  b. request such as http://localhost:8080//secure returns directory
  listing of secure directory without auth...
 
  If this is fixed or known bug please let me know.
 
  Thanks!
 
  --
  Best regards,
  --
  HTTP is a stateless protocol, and the Internet is a stateless
  development
  environment
  --
  Igor Fedulov
  E-mail : [EMAIL PROTECTED]
  Work Ph: 773.775.1595
  Home Ph: 773.281.8938
  Cell Ph: 773.580.5935
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

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



-- 
Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : [EMAIL PROTECTED]
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935




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




problem with SSL

2002-02-05 Thread Daniel Thomas

Sorry if you have just recieved this, I am new!!

help,

I have been trying to set up the security option of tomcat but I can't work
out what is going wrong here. I have set it up exactly how it says in the
docs, but I seem to be having a problem with my policy. I have included the
command line args,the stack trace and the policy below. Has anybody got any
ideas, am I seting up the policy right.

%JAVA_HOME%\bin\java
%TOMCAT_OPTS% -Djava.security.manager -Djava.security.policy==%TOMCAT_HOME%
/conf/tomcat.policy -Dtomcat.home=%TOMCAT_HOME%
org.apache.tomcat.startup.Tomcat %3 %4 %5 %6 %7 %8 %9

java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\bugrat\WEB-INF\classes read)
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:
399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:564)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at
org.gjt.bugrat.servlet.BugRatServlet.init(BugRatServlet.java:5266)
at org.gjt.bugrat.servlet.BugRatLogin.init(BugRatLogin.java:35)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: BugRatLogin
java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\bugrat\WEB-INF\classes read)
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:
399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:564)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at
org.gjt.bugrat.servlet.BugRatServlet.init(BugRatServlet.java:5266)
at org.gjt.bugrat.servlet.BugRatAdmin.init(BugRatAdmin.java:72)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: BugRatAdmin
java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\bugrat\WEB-INF\classes read)
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:
399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:564)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at
org.gjt.bugrat.servlet.BugRatServlet.init(BugRatServlet.java:5266)
at org.gjt.bugrat.servlet.BugRatReport.init(BugRatReport.java:71)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
at

Easy Install Tomcat with NT IIS?

2002-02-05 Thread Clifford Helsel

First the questions, then the background... Does anyone know how to
automate the install of the redirector filter DLL in IIS.  Second, about
Java support, will Tomcat work with just a JRE and is there any way to
automate its installation?

We have a program that requires a servlet engine.  Tomcat has been my
number one recommendation for NT.  However, on the Windows platform,
people are accustomed to double-clicking a setup.exe and everything
works... 

It is not quite so easy with Tomcat, you need a JDK, you need to install
Tomcat, set up the environment variables, download the ISAPI DLL, set up
the registry, etc...

From what I can tell with the Apache license, we should be able to
distribute an already configured Tomcat, with our webapps, etc.  We can
even automate the registry entries for the filter DLL.  However, two
other steps I'd like to automate are installing the JDK/JRE and
installing the filter DLL.

Thanks for any ideas.

Clifford Helsel
Product Manager
[EMAIL PROTECTED]
http://www.thesolutioncafe.com/jspell.html




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




iPlanet 5.0 Directory with JNDIRealm

2002-02-05 Thread Lloyd H. Meinholz

Has anyone successfully used iPlanet Directory Server 5.0 with
JNDIRealm? If so, could you please give me some pointer on the ldap
structure you used for JNDIRealm args? Thanks,

Lloyd

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




Tomcat 4, IOExceptions, error-page

2002-02-05 Thread Christopher K. St. John


 Tomcat 4 throws away servlet generated IOExceptions. For 
example:

 public void doGet(HttpServletRequest req,
   HttpServletResponse rsp)
throws IOException, ServletException
  {
PrintWriter pwrt = rsp.getWriter();
pwrt.println(HELLO);
throw new IOException(my very own io exception);
  }

 In Tomcat 4 will produce a 200 OK response with a body
of HELLO. Tomcat 3 and Jetty both send back an HTTP
error response. From my reading of SRV.9.9.2 Jetty and
3 are right, 4 is wrong. But...

 Tomcat 4's behavior appears to be on purpose. There
is a catch(IOException) in StandardWrapperValve.invoke()
that has the comments:

   ;   // No reporting to the response
   ;   // No change in availability status

 I thought I had seen a discussion of this before, but
either I was hallucinating or I'm using the wrong set
of search terms when I check the list archives (and
bugzilla and google).

 So, anyway, is this a bug or a feature? 

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




RE: Easy Install Tomcat with NT IIS?

2002-02-05 Thread Ignacio J. Ortega

 De: Clifford Helsel [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 5 de febrero de 2002 22:06

 First the questions, then the background... Does anyone know how to
 automate the install of the redirector filter DLL in IIS.  

Look at
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/jk/native/iis/i
sapi_install.vbs?rev=1.2content-type=text/vnd.viewcvs-markup tweaking
this script to suit your needs , can do the job..

Saludos ,
Ignacio J. Ortega



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




Re: TC Tomcat 4, IOExceptions, error-page

2002-02-05 Thread Christopher K. St. John

Kirby Vandivort wrote:
 
 I brought this up back in early january...
 

 It's close, it's a similiar issue, but it's not the same
issue. What I'm saying is that Tomcat 4 will never match:

  error-page
exception-type java.io.IOException /exception-type
location /ioexception.html /location
  /error-page

 because all servlet-generated IOExceptions are silently
swallowed up by StandardWrapperValve before they get a
chance to be handled by the error-page mechanism.

 This strikes me as bad, but there are comments in the
Catalina code that indicate it's intentional... 


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




CSV File

2002-02-05 Thread Jason Webber

I want the browser to download the file and not display a CSV file that
I have created.  Right now I issue the following commands, but it
doesn't seem to work.. Any ideas are appreciated.


String file;
...

response.setHeader(Content-length,file.length());
response.setHeader(Content-type,application/octetstream);
response.setHeader(Content-disposition,inline;
filename=\report.csv\);
out.print(file);


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




Tomcat 4.01 war not extracting

2002-02-05 Thread Clifford Helsel

I put a .war into the webapps folder, restarted Tomcat 4.01, but it
didn't extract it... any ideas?

Cliff Helsel
[EMAIL PROTECTED]



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




Re: Tomcat 4.01 war not extracting

2002-02-05 Thread Igor Fedulov


 I put a .war into the webapps folder, restarted Tomcat 4.01, but it
 didn't extract it... any ideas?

File permissions maybe? webapps folder permissions? Ownership? Who as
server is running?

Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : [EMAIL PROTECTED]
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935




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




RE: Tomcat 4.01 war not extracting

2002-02-05 Thread Clifford Helsel

It's an NT FAT system... the .war extracts fine under Tomcat 3.2.4... is
there anything 'special' that has to be inside the .war file for Tomcat
4.01?


-Original Message-
From: Igor Fedulov [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 05, 2002 7:10 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.01 war not extracting


 I put a .war into the webapps folder, restarted Tomcat 4.01, but it
 didn't extract it... any ideas?

File permissions maybe? webapps folder permissions? Ownership? Who as
server is running?

Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless
development
environment
--
Igor Fedulov
E-mail : [EMAIL PROTECTED]
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935




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



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




How do I pass parameter to jikes when jikes used as jsp compiler

2002-02-05 Thread Antony Stace
Hi 

Can someone please tell me how to pass the parameter

-encoding "SJIS"

to jikes when it is used to compile jsp files.  How do I change this section of the 
web.xml to do this?



servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
init-param
param-namejspCompilerPath/param-name
param-value/usr/bin/jikes/param-value
/init-param
init-param
param-namejspCompilerPlugin/param-name
param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param
load-on-startup3/load-on-startup
/servlet


-- 


Cheers

Tony$B!#(B
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Re: Problem displaying Shift-JIS Japanese in Tomcat 4

2002-02-05 Thread Galbayar
%@ page language="java" contentType="text/html" %
html
head
meta http-equiv="Content-Type" content="text/html; charset=Shift-JIS"
/head
body
/body
/html


- Original Message -
From: "Joel Rees" [EMAIL PROTECTED]
To: "Tomcat Users List" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 17:34
Subject: Re: Problem displaying Shift-JIS Japanese in Tomcat 4


 We're using Tomcat 3.2 and 3.3 with no problems. (Java SDK
 1.3/MSW2k.pfleugh) I don't recall doing anything special in the setup, but
 I'll check it.

 Are you sure it's not your browser? Some older browsers did not recognize
 Shift_JIS, but did sort of recognize x-sjis.

 Other issues --

 The old 8th bit problem should not occur if you are using localhost, I
 think. If you are ftp-ing to a remote host, do you have ftp set to force
 binary so your files arrive intact? What about your text editor? Is it
 saving your files in something else, say, UNICODE?

 HTH

 Joel Rees

 - Original Message -
 From: "Antony Stace" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 05, 2002 4:57 PM
 Subject: Problem displaying Shift-JIS Japanese in Tomcat 4


  Hi
 
  I have a very simply jsp page.  It has
 
  $B$3$s$K$A$O(B
 
  in shift-jis format in it.  However when I display this page I get
garbage
 where
  $B$3$s$$$A$O(B is.  Is there any configuration that I need to do to enable
 Japanese
  characters to be displayed.  At the top of the file I have
 
  contentType="text/html; charset=Shift_JIS"
 
 
  --
 
 
  Cheers
 
  Tony$B!#(B
  -
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



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






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


urgent: Help (error in mod_jk.log)

2002-02-05 Thread unplug



unplug wrote:
 
 Hi all,
 
   I have configured to running tomcat3.3 with apache under Linux7.2.
 I found the following error in the mod_jk.log when they are working
 together.
 
 [jk_ajp13_worker.c (381)]: Error ajp13_process_callback - write failed
 
   The error appears very often.  Can anyone tell me what's wrong with it
 and
 how to solve it?
 
 Thanks,
 unplug
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




Re: Problem displaying Shift-JIS Japanese in Tomcat 4

2002-02-05 Thread Antony Stace
On Wed, 6 Feb 2002 09:37:30 +0800
"Galbayar" [EMAIL PROTECTED] wrote:

 %@ page language="java" contentType="text/html" %
 html
 head
 meta http-equiv="Content-Type" content="text/html; charset=Shift-JIS"
 /head
 body
 /body
 /html
 

I have 

%@ page contentType="text/html; charset=Shift_JIS" %(I am using Struts)

in all my jsp files.  When I change the compiler for the jsp files
in the tomcat configuration file from 

/usr/java/j2sdk1.4.0/bin/javac

to

/usr/bin/jikes

the problem occurs.  Which leads me to think it is jikes causing the problem.


Cheers

Tony





 
 - Original Message -
 From: "Joel Rees" [EMAIL PROTECTED]
 To: "Tomcat Users List" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, February 05, 2002 17:34
 Subject: Re: Problem displaying Shift-JIS Japanese in Tomcat 4
 
 
  We're using Tomcat 3.2 and 3.3 with no problems. (Java SDK
  1.3/MSW2k.pfleugh) I don't recall doing anything special in the setup, but
  I'll check it.
 
  Are you sure it's not your browser? Some older browsers did not recognize
  Shift_JIS, but did sort of recognize x-sjis.
 
  Other issues --
 
  The old 8th bit problem should not occur if you are using localhost, I
  think. If you are ftp-ing to a remote host, do you have ftp set to force
  binary so your files arrive intact? What about your text editor? Is it
  saving your files in something else, say, UNICODE?
 
  HTH
 
  Joel Rees
 
  - Original Message -
  From: "Antony Stace" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, February 05, 2002 4:57 PM
  Subject: Problem displaying Shift-JIS Japanese in Tomcat 4
 
 
   Hi
  
   I have a very simply jsp page.  It has
  
   $B$3$s$K$A$O(B
  
   in shift-jis format in it.  However when I display this page I get
 garbage
  where
   $B$3$s$$$A$O(B is.  Is there any configuration that I need to do to enable
  Japanese
   characters to be displayed.  At the top of the file I have
  
   contentType="text/html; charset=Shift_JIS"
  
  
   --
  
  
   Cheers
  
   Tony$B!#(B
   -
  
  
   _
   Do You Yahoo!?
   Get your free @yahoo.com address at http://mail.yahoo.com
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


-- 


Cheers

Tony$B!#(B
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Override Error page

2002-02-05 Thread Galbayar

How to change Tomcat Error page, same Apache ErrorDocument directive




Re: Are spaces allowed in Servlet Context names?

2002-02-05 Thread Craig R. McClanahan



On Mon, 4 Feb 2002, David M Johnson wrote:

 Date: Mon, 04 Feb 2002 15:08:18 -0500
 From: David M Johnson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Are spaces allowed in Servlet Context names?

 Should I file a bug, or have you already done that?


No I haven't.  Could you please do so?

Thanks,
Craig


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




Re: Errorpage

2002-02-05 Thread Craig R. McClanahan



On Mon, 4 Feb 2002, Volker Turau wrote:

 Date: Mon, 4 Feb 2002 16:30:12 +0100 (MET)
 From: Volker Turau [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: tomcat user-list [EMAIL PROTECTED]
 Subject: Errorpage

 Hi,

 in section SRV.9.9.2 of the Servlet Spec. Version 2.3 a list of request
 attributes is given (e.g. javax.servlet.error.exception). These request
 attributes must be set by the container. However using Tomcat 4.0.1 the
 attributes are not available for an errorpage specified in the page
 directive. They are only available, if the errorpage is specified in
 web.xml. Feature or bug?


The page directive is JSP specific, and tells Tomcat that you want the
JSP way of handling these exceptions, rather than the servlet way.  If
you want to handle JSP page exceptions and see the request attributes, I
suggest that you dispense with the page directives and just declare your
error pages in web.xml.


 Thanks a lot!

 volker turau
 FH Wiesbaden Fachbereich Informatik
 Tel.: +49-611-9495-205 FAX +49-611-9495-210
 http://www.informatik.fh-wiesbaden.de/~turau/jsp


Craig


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




  1   2   >