Re: Diagnosing Tomcat Hang

2005-08-12 Thread Lintang JP
have U check your Connector settings, maxAcceptConnection part ? this 
settings describe maximum connection will be accepted by tomcat, if it's 
reached, then tomcat will put the rest connection request in hold, waiting 
for other connection untill they finished. By that time, the tomcat looks 
"hang". 

hope it helps.

On 8/13/05, Kenneth Litwak <[EMAIL PROTECTED]> wrote:
> 
> I have a Java web app running on tomcat on Linux Red hat on an Intel
> box with 2 GR of RAM. We're having trouble because the application
> intermittently hangs. The threads never go anywhere near the max. The
> CPU usage never goes above 2%. The memory does not get used up.
> Nevertheless, the tomcat server hangs. Obviously this could be a
> deadlock. Or, it could be connected to the fact that the application
> uses a third-party tool, which requires a JDBC connection to a
> middleware network program on the database server, called Omnidex. What
> I need to know is how I can go about figuring out what's going wrong.
> In the short term if there's something I can do in tomcat logging or
> tracing, I'd like to know. Also, I'm interested in suggestions for
> software to purchase that can do a better job of analyzing what is going
> on in the JVM to track down what is going on. The problem appears and
> then goes way and then reappears. It is clearly linked to number of
> users, but the problem appears with only 18 users at a time. So I know
> that none of you can tell me what's wrong. I'm looking for where to
> start doing diagnostics. I have a whole book on Tomcat development and
> it has not a single section on tomcat problem solving. Thanks.
> 
> 
> 
> Ken
> 
> 
> 
> 
> 


-- 
---
http://www.psychotazkia.or.id


Re: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Wendy Smoak

From: "Hassan Schroeder" <[EMAIL PROTECTED]>


:snips from: 

So it seems the HTML specification *does* require the parts be sent
in particular (source) order.


Thanks!  I was using the wrong search terms-- 'parameter' instead of 
'control name' and so I never found that.  At which point I assumed the 
specification was silent on the matter and I could do whatever I pleased. :) 
So I stand corrected on the browser behavior part.



But it has nothing to say about what *processing agents* do with 'em.
And if the servlet spec *doesn't* demand that the parts be stored and
made available in that same order...


Assuming enough people can be convinced that this is broken, there's where 
the "fix" needs to be applied.  Until the Servlet specification says that 
the order of request parameters must be preserved, Tomcat is free to do 
whatever it wants with them.


Greg Murray (the Servlet specification lead) has asked for input on what 
we'd all like to see in the next version, so here's a chance to comment:

   http://weblogs.java.net/blog/gmurray71/archive/2005/07/got_servlets.html

You can also get involved with the JCP:  http://www.jcp.org/en/home/index

--
Wendy Smoak 




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



Re: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Hassan Schroeder

Wendy Smoak wrote:

You are depending on arbitrary browser behavior.  As far as I can tell, 
there's nothing preventing me from writing a browser that, say, 
alphabetizes the request parameters before sending them to the server.


well.

:snips from: 

application/x-www-form-urlencoded
...
   2. The control names/values are listed in the order they appear in 
the document.

...

multipart/form-data
...
A "multipart/form-data" message contains a series of parts, each 
representing a successful control. The parts are sent to the processing 
agent in the same order the corresponding controls appear in the 
document stream.

...

So it seems the HTML specification *does* require the parts be sent
in particular (source) order.

But it has nothing to say about what *processing agents* do with 'em.
And if the servlet spec *doesn't* demand that the parts be stored and
made available in that same order...

It's never even occurred to me to expect form variables in any order,
though. For one thing, only "successful" controls are sent at all, so
what arrives is intrinsically somewhat arbitrary, eh?  :-)

As always, YMMV!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: data push

2005-08-12 Thread Darryl L. Miles

Patrick Thomas wrote:


Your remark about POJOs being part of the API prompted me to chime in
-- William pretty much gave you the general answer, that Tomcat
doesn't seem to be the best way to go for this (because everything is
passed via http).

Maybe HTTP is the transport protocol for a messaging framework that runs 
on top.  I don't know enough about all the different intra-JVM 
mechanisms I've head of CORBA, RMI over IIOP, EJB Remote, XML-RPC, and a 
dozen more related protocols.  Some are too raw or not a framework, some 
cover multiple levels of the same problem.  A more featureful 
Application Server (like JBoss) can already do EJB Local/Remote call 
design patterns out of the box, I don't (think I) need JBoss and 
everything it is.  I suppose what throwing in the air is the question:


Is there a web resource that details each of the common intra-JVM 
communication mechanisms thats in place for their pro's con's, 
everything from memory consumption, runtime speed, security policies, 
programming interface, easy of setting up how to future proof remotable 
API usage so it remains compatible and extensible at the same time.  
Then what contracts does each of these mechanisms provide to the 
applications that use them.


HTTP could be a big part of a push or pull data mechanism or it maybe 
implemented outside of HTTP with raw sockets and another wire protocol, 
in this case it would be a JAR file that sides outside of tomcat itself 
and my application which is running in the same JVM as TC would use it 
independatly of TC.


Your serializing objects idea is a little too raw for my use, I'm 
looking for something with a more reliable contract and wider community 
testing than a roll your own TCPIP stack approach.



--
Darryl L. Miles



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



RE: NumberFormatException After Logging In To Admin Webapp

2005-08-12 Thread David Litterine-Kaufman
I forgot to mention that this is on an old imac.  I don't believe that Sun
has put out a JDK or JRE for the powerpc architecture.  I might be wrong
about that, but I don't see anything on their download page or in the Debian
package list.

--dlk

> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 12, 2005 5:52 PM
> To: Tomcat Users List
> Subject: RE: NumberFormatException After Logging In To Admin Webapp
> 
> > From: David Litterine-Kaufman [mailto:[EMAIL PROTECTED]
> > Subject: NumberFormatException After Logging In To Admin Webapp
> >
> > I'm running Tomcat 4.1, sablevm 1.11.3, and struts 1.1 on
> > Debian Sarge.
> 
> Have you tried this with a Sun 1.4 JDK or 5.0 JRE?
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: Diagnosing Tomcat Hang

2005-08-12 Thread Radek Wierzbicki
Hi Kenneth,

you will have to check your DB connection code and for possible
bottlenecks. Does your DB accept enough connections? Any other clues in
tomcat log files (also standard output)?

--Radek W.

Kenneth Litwak wrote:
> Hi Radek,
> 
> Below I'm pasting what is at the bottom.  I don't see any "deadlock"
> string in the thread dump.  I do see a bunch of threads waiting to get a
> pooled JDBC connection.  We are using the apache commons JDBC connection
> pool code.  This has been working okay until recently when the volume of
> users went up.  However, we don't need to have a big volume when tomcat
> hangs.  It takes several users about 6-7 minutes of using the
> application to cause it to hang.  I don't know what to make of that.
> Thanks.
> 
> Ken
> 
> http-8081-Processor2" daemon prio=1 tid=0x083de8c0 nid=0x7d00 waiting
> for monitor entry [8d878000..8d879ccc]
>   at java.sql.DriverManager.getConnection(DriverManager.java:187)
>   - waiting to lock <0xaf54d798> (a java.lang.Class)
>   at
> edu.apu.db.DBConnectionFactory.getPooledConnection(DBConnectionFactory.j
> ava:459)
>   at
> edu.apu.directory.APUPersonDAO.runPersonQuery(APUPersonDAO.java:56)
>   at
> edu.apu.directory.APUPersonDAO.findAPUPerson(APUPersonDAO.java:27)
>   at
> edu.apu.gradreg.servlet.RegistrationServlet.doValidateView(RegistrationS
> ervlet.java:248)
>   at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
> edu.apu.servlet.http.BaseServlet.runControlMethod(BaseServlet.java:513)
>   at edu.apu.servlet.http.BaseServlet.doView(BaseServlet.java:279)
>   at edu.apu.servlet.http.BaseServlet.doPost(BaseServlet.java:241)
>   at edu.apu.servlet.http.BaseServlet.doGet(BaseServlet.java:187)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>   at
> edu.apu.servlet.http.BaseServlet.service(BaseServlet.java:158)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>   at


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



RE: Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
Hi Radek,

Below I'm pasting what is at the bottom.  I don't see any "deadlock"
string in the thread dump.  I do see a bunch of threads waiting to get a
pooled JDBC connection.  We are using the apache commons JDBC connection
pool code.  This has been working okay until recently when the volume of
users went up.  However, we don't need to have a big volume when tomcat
hangs.  It takes several users about 6-7 minutes of using the
application to cause it to hang.  I don't know what to make of that.
Thanks.

Ken

http-8081-Processor2" daemon prio=1 tid=0x083de8c0 nid=0x7d00 waiting
for monitor entry [8d878000..8d879ccc]
at java.sql.DriverManager.getConnection(DriverManager.java:187)
- waiting to lock <0xaf54d798> (a java.lang.Class)
at
edu.apu.db.DBConnectionFactory.getPooledConnection(DBConnectionFactory.j
ava:459)
at
edu.apu.directory.APUPersonDAO.runPersonQuery(APUPersonDAO.java:56)
at
edu.apu.directory.APUPersonDAO.findAPUPerson(APUPersonDAO.java:27)
at
edu.apu.gradreg.servlet.RegistrationServlet.doValidateView(RegistrationS
ervlet.java:248)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
edu.apu.servlet.http.BaseServlet.runControlMethod(BaseServlet.java:513)
at edu.apu.servlet.http.BaseServlet.doView(BaseServlet.java:279)
at edu.apu.servlet.http.BaseServlet.doPost(BaseServlet.java:241)
at edu.apu.servlet.http.BaseServlet.doGet(BaseServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
edu.apu.servlet.http.BaseServlet.service(BaseServlet.java:158)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
edu.apu.gradreg.servlet.filter.ClosedFilter.doFilter(ClosedFilter.java:4
3)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
edu.apu.gradreg.servlet.filter.RegFilter.doFilter(RegFilter.java:79)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor

RE: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Jeff Grangier
Hello Wendy,

Is there anything we can do? I have worked with the MS DNA, .NET, SunOne,
IBM Websphere frameworks and they all behave the same way by ordering the
request parameters (first in first out). I know for sure that I am not the
first one and neither the last one to have trouble with this kind of
behavior using Tomcat. Even if the specification does not contain any
direction on how to properly handle the request, Tomcat expected/ordered
behavior would save hours of work to developers worldwide. I sure hope this
issue is not an Open Source wake up call!

Thanks for all your help,
Jeff 
 

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 4:07 PM
To: Tomcat Users List
Subject: Re: Tomcat and the HttpServletRequest Object

From: "Bhupinder Dhillon" <[EMAIL PROTECTED]>

>I have the same bloody problem.  The application is a generic form handler 
>that e-mails the form values.  Most (all) of the clients expect the values 
>to be in the same order as the form itself.

You are depending on arbitrary browser behavior.  As far as I can tell, 
there's nothing preventing me from writing a browser that, say, alphabetizes

the request parameters before sending them to the server.

Yes, most browsers send them in the order they appear in the HTML source, 
but unless/until some statement about request parameter order makes it into 
the relevant specification, you depend on that behavior at your own risk.

This isn't something that can be handled by the container-- even if Tomcat 
stops rearranging the request params, you have no control over the browser 
implementation.

-- 
Wendy Smoak 


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



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



Re: serving japanese file problem

2005-08-12 Thread Hiroshi Iwatani
Check whether EVERYTHING is UTF8 including file names on your OS
file system, JSP/servlet sourcfile encoding, request and response.

Arun Prasad R wrote:
> thanks Hiroshi,
> 
> I set -Dfile.encoding=UTF-8 while starting tomcat and my platform support 
> UTF-8 creation.
> 
> servlet is same as what u have specifed
> 
> but i get broken image(ie file not found)
> 
> arun
> 
> On 8/12/05, Hiroshi Iwatani <[EMAIL PROTECTED]> wrote:
> 
>>Your tomcat isn't running with UTF-8 and/or your platform doesn't use
>>UTF-8 for file name.
>>
>>On my Linux Fedora Core 3:
>>echo $LANG == ja_JP.UTF-8
>>means text file(including .java) and file name on OS file system
>>are created with UTF8 encoding.
>>
>>on our servlet:
>>String contType = "text/html;charset=UTF-8";
>>request.setCharacterEncoding("UTF8");
>>response.setContentType(contType);
>>//or, response.setCharacterEncoding("UTF8");
>>out.println(""); //text is a UTF8 String
>>
>>
>>Arun Prasad R wrote:
>>
>>>i have a ウェブ.jpg (japanese filename) in images directory.
>>>while requesting that file url encode to %E3%82%A6%E3%82%A7%E3%83%96.jpg
>>>
>>>but tomcat doesn't serve ウェブ.jpg instead it says file not found.
>>>
>>>my question is how to make tomcat to decode
>>>%E3%82%A6%E3%82%A7%E3%83%96.jpg as ウェブ.jpg
>>>
>>
>>--
>>Hiroshi Iwatani
>>
>>*stop cruelty* Annual number of institutionally euthanized cats and dogs
>>including kittens and puppies: US 5 million, JP 500 thousand. How about
>>your country? *for our better karma*
>>-
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
Hiroshi Iwatani

*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about
your country? *for our better karma*
-

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



Re: Diagnosing Tomcat Hang

2005-08-12 Thread Radek Wierzbicki
Hi Kenneth,

the threads below are the actual http-processors - threads that answer
requests and they will always show some socket code.

Some of the processors from your listing have a status 'locked' - they
are waiting for some other objects to release some resource.

Were there any more messages below?

In the thread dump you have to look for deadlocks (listed at the bottom)
and processors that are busy with the code of your web application
(maybe some JDBC code) - check the status of those.

Here is a document from Sun about analyzing java stack traces:
http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/index.html

--Radek W.


Kenneth Litwak wrote:
> Sorry Radek for the last message.  Okay, I've got a thread dump. I'm not
> sure what the meaning is of what I'm looking at, however.  Below is the
> beginning of the thread dump.  I'd appreciate help in understanding what
> I'm looking at or knowing what else in the dump I need to examine.
> About fifteen lines down is stuff about sockets. I wonder if that's of
> importance.  Does this beginning part of the dump show where the actual
> hang is taking place?  Thanks.
> 
> Ken 
> 
> "http-8081-Processor50" daemon prio=1 tid=0x085fdaa8 nid=0x7edc in
> Object.wait() [8c56e000..8c56eccc]
>   at java.lang.Object.wait(Native Method)
>   - waiting on <0x9096e798> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Object.wait(Object.java:429)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:655)
>   - locked <0x9096e798> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Thread.run(Thread.java:534)
> 
> "http-8081-Processor49" daemon prio=1 tid=0x083d54f8 nid=0x7edb runnable
> [8c5af000..8c5afccc]
>   at java.net.PlainSocketImpl.socketAccept(Native Method)
>   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
>   - locked <0x915a59f0> (a java.net.PlainSocketImpl)
>   at java.net.ServerSocket.implAccept(ServerSocket.java:448)
>   at java.net.ServerSocket.accept(ServerSocket.java:419)
>   at
> org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(Defau
> ltServerSocketFactory.java:60)
>   at
> org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
> java:368)
>   at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:54
> 9)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:683)
>   at java.lang.Thread.run(Thread.java:534)
> 
> "http-8081-Processor48" daemon prio=1 tid=0x083d4330 nid=0x7eda in
> Object.wait() [8c5f..8c5f0ccc]
>   at java.lang.Object.wait(Native Method)
>   - waiting on <0x9096e1e8> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Object.wait(Object.java:429)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:655)
>   - locked <0x9096e1e8> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Thread.run(Thread.java:534)
> 
> "http-8081-Processor47" daemon prio=1 tid=0x083d3180 nid=0x7ed9 in
> Object.wait() [8c631000..8c631ccc]
>   at java.lang.Object.wait(Native Method)
>   - waiting on <0x9096dd00> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Object.wait(Object.java:429)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:655)
>   - locked <0x9096dd00> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Thread.run(Thread.java:534)
> 
> "http-8081-Processor46" daemon prio=1 tid=0x08166c30 nid=0x7ed8 in
> Object.wait() [8ca28000..8ca28ccc]
>   at java.lang.Object.wait(Native Method)
>   - waiting on <0x9096da28> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Object.wait(Object.java:429)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:655)
>   - locked <0x9096da28> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Thread.run(Thread.java:534)
> 
> "http-8081-Processor45" daemon prio=1 tid=0x08165f38 nid=0x7ed7 in
> Object.wait() [8ca69000..8ca69ccc]
>   at java.lang.Object.wait(Native Method)
>   - waiting on <0x9096d750> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Object.wait(Object.java:429)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:655)
>   - locked <0x9096d750> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>   at java.lang.Thread.run(Thread.java:534)
> 
> "http-8081-Processor44" daemon prio=1 tid=0x08164d70 nid=0x7ed6 in
> Object.wait() [8caaa000..8caaaccc]
>   at java.lang.Object.wait(Native Method)
>   - waiting on <0x9096d478> (a
> org.apache.tomcat.util.t

Re: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Wendy Smoak

From: "Bhupinder Dhillon" <[EMAIL PROTECTED]>

I have the same bloody problem.  The application is a generic form handler 
that e-mails the form values.  Most (all) of the clients expect the values 
to be in the same order as the form itself.


You are depending on arbitrary browser behavior.  As far as I can tell, 
there's nothing preventing me from writing a browser that, say, alphabetizes 
the request parameters before sending them to the server.


Yes, most browsers send them in the order they appear in the HTML source, 
but unless/until some statement about request parameter order makes it into 
the relevant specification, you depend on that behavior at your own risk.


This isn't something that can be handled by the container-- even if Tomcat 
stops rearranging the request params, you have no control over the browser 
implementation.


--
Wendy Smoak 



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



RE: NumberFormatException After Logging In To Admin Webapp

2005-08-12 Thread Caldarale, Charles R
> From: David Litterine-Kaufman [mailto:[EMAIL PROTECTED] 
> Subject: NumberFormatException After Logging In To Admin Webapp
> 
> I'm running Tomcat 4.1, sablevm 1.11.3, and struts 1.1 on 
> Debian Sarge.

Have you tried this with a Sun 1.4 JDK or 5.0 JRE?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



DeltaManager: calculation of deltas

2005-08-12 Thread Ryan Heaton
I'm trying to understand how the DeltaManager determines the deltas of a
session.  From what I could find out by browsing the source code, there is no
way to know whether a session attribute is dirty unless is it "set" again, e.g.
HttpSession.setAttribute(Object obj).  In other words, if the following piece of
servlet code were serviced within the context of a DeltaManager, I could not
expect the Count object to be broadcast to the cluster as a delta:

Count count = (Count) request.getSession().getAttribute("count");
count.value++;

I would have to ensure that the following code were executed in order to
broadcast the "count" attribute as a delta:

request.getSession().setAttribute("count", count);

1. Are my findings correct?
2. If my findings are correct, where is the justification for this logic?  Is
there some specification or other official documentation that acknowledges that
this is acceptable?

Regards,

-Ryan Heaton

--
This message may contain confidential information, and is
intended only for the use of the individual(s) to whom it
is addressed.
--


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



NumberFormatException After Logging In To Admin Webapp

2005-08-12 Thread David Litterine-Kaufman
Hi Tomcat Users:

I've googled for several days with no luck on this one.  I'm not sure if
this is rightly a Tomcat question or a Debian question, so I apologize if
this is the wrong forum.  I'm running Tomcat 4.1, sablevm 1.11.3, and struts
1.1 on Debian Sarge.  Sablevm, Tomcat, struts, and the admin webapp were all
installed from their respective stable Debian packages. 

When I log into the admin webapp, both the top and left frames show up as
HTTP Status 500 and I get the following (abridged) stack trace in the
application log:

2005-08-12 17:18:35 StandardWrapperValve[action]: Allocate exception for
servlet action
javax.servlet.ServletException: Servlet.init() for servlet action threw
exception
   at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:916)
   at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:621)
   at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:163)
...
- Root Cause -
java.lang.NumberFormatException
   at java.lang.Integer.parseInt (Integer.java:602)
   at java.lang.Integer.parseInt (Integer.java:231)
   at java.util.Properties.load (Properties.java:306)
   at java.util.PropertyResourceBundle.PropertyResourceBundle
(PropertyResourceBundle.java:109)
   at java.util.ResourceBundle.tryBundle (ResourceBundle.java:491)
   at java.util.ResourceBundle.tryBundle (ResourceBundle.java:559)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:401)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:242)
   at org.apache.webapp.admin.ApplicationLocales.ApplicationLocales
(ApplicationLocales.java:60)
...

The manager webapp seems to be working fine.  Probably something obvious, as
it always is when I can't find any google info about a problem, but I'm at
my wit's end.  Any help would be appreciated.

--dlk


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



Re: Security Questions Regarding Tomcat

2005-08-12 Thread Hassan Schroeder

Leandro Meiners wrote:


Where can I find documentation regarding limting HTTP methods using
security-constraints?


The Security section of the Servlet 2.4 Spec (SRV.12) has some good
examples -- highly recommended  :-)

FWIW!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



RE: Tomcat and the HttpServletRequest Object

2005-08-12 Thread GB Developer
 
The recognition (and so far, little acceptance) that form fields will not be
sent in a guaranteed order by a browser, and never mind that, because even
if your browser does,  the container doesn't guarantee an order either... is
from "Beginner's Servlets". But maybe I only think that because the vast
majority of my time in servlet/jsp development has not been spent with a
container that has this nice "enhancement". 

If you *output* the fields in a determined order, then it seems clear that
you could also do something like name="<%= index %>_restOfName". Hackish,
brutish and "stupid" as it might seem, to those that have not drunk the
koolaid, I think it (or something like it) is a time-honoured tradition for
most people that already understood this (the aforementioned koolaid
drinkers).  
 
This is almost as good as realizing in late 2005 that "referrer" is not a
reliable header. GAH.


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



Re: Security Questions Regarding Tomcat

2005-08-12 Thread Leandro Meiners
Tim, list:

Where can I find documentation regarding limting HTTP methods using
security-constraints?
All I was able to do was requiere authentication in order to use some HTTP
methods but I would like to limit them like it can be donde with the
directive "Limit" in Apache.

I will also appreciate any pointers to documentation regarding Tomcat
Security, especially about hardening.

Regards,

Leandro.


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



RE: Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
Sorry Radek for the last message.  Okay, I've got a thread dump. I'm not
sure what the meaning is of what I'm looking at, however.  Below is the
beginning of the thread dump.  I'd appreciate help in understanding what
I'm looking at or knowing what else in the dump I need to examine.
About fifteen lines down is stuff about sockets. I wonder if that's of
importance.  Does this beginning part of the dump show where the actual
hang is taking place?  Thanks.

Ken 

"http-8081-Processor50" daemon prio=1 tid=0x085fdaa8 nid=0x7edc in
Object.wait() [8c56e000..8c56eccc]
at java.lang.Object.wait(Native Method)
- waiting on <0x9096e798> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked <0x9096e798> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor49" daemon prio=1 tid=0x083d54f8 nid=0x7edb runnable
[8c5af000..8c5afccc]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked <0x915a59f0> (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(Defau
ltServerSocketFactory.java:60)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:368)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:54
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor48" daemon prio=1 tid=0x083d4330 nid=0x7eda in
Object.wait() [8c5f..8c5f0ccc]
at java.lang.Object.wait(Native Method)
- waiting on <0x9096e1e8> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked <0x9096e1e8> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor47" daemon prio=1 tid=0x083d3180 nid=0x7ed9 in
Object.wait() [8c631000..8c631ccc]
at java.lang.Object.wait(Native Method)
- waiting on <0x9096dd00> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked <0x9096dd00> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor46" daemon prio=1 tid=0x08166c30 nid=0x7ed8 in
Object.wait() [8ca28000..8ca28ccc]
at java.lang.Object.wait(Native Method)
- waiting on <0x9096da28> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked <0x9096da28> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor45" daemon prio=1 tid=0x08165f38 nid=0x7ed7 in
Object.wait() [8ca69000..8ca69ccc]
at java.lang.Object.wait(Native Method)
- waiting on <0x9096d750> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked <0x9096d750> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor44" daemon prio=1 tid=0x08164d70 nid=0x7ed6 in
Object.wait() [8caaa000..8caaaccc]
at java.lang.Object.wait(Native Method)
- waiting on <0x9096d478> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked <0x9096d478> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"http-8081-Processor43" daemon prio=1 tid=0x08473910 nid=0x7ed5 in
Object.wait() [8caeb000..8caebccc]
at java.lang.Object.wait(Native Method)
- waiting on <0x9096d1a0> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked <0x9096d1a0> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunna

RE: Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
Hi Radek,

  Does this produce a stack trace from Tomcat to Catalina.out or does
the thread trace go to the operating system's standard out? Thanks.

Ken


-Original Message-
From: Radek Wierzbicki [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 12:42 PM
To: Tomcat Users List
Subject: Re: Diagnosing Tomcat Hang

Hi.

Did you try sending a JVM process a QUIT signal (kill -3)? That will
produce a thread dump on a standart output. Do that when your
application hangs. From the thread dump you can deduct which thread
causes a problem.

--Radek W.

Kenneth Litwak wrote:
>   I have a Java web app running on tomcat on Linux Red hat on an Intel
> box with 2 GR of RAM.  We're having trouble because the application
> intermittently hangs.  The threads never go anywhere near the max.
The
> CPU usage never goes above 2%.  The memory does not get used up.
> Nevertheless, the tomcat server hangs.Obviously this could be a
> deadlock. Or, it could be connected to the fact that the application
> uses a third-party tool, which requires a JDBC connection to a
> middleware network program on the database server, called Omnidex.
What
> I need to know is how I can go about figuring out what's going wrong.
> In the short term if there's something I can do in tomcat logging or
> tracing, I'd like to know.  Also, I'm interested in suggestions for
> software to purchase that can do a better job of analyzing what is
going
> on in the JVM to track down what is going on.  The problem appears and
> then goes way and then reappears.  It is clearly linked to number of
> users, but the problem appears with only 18 users at a time.  So I
know
> that none of you can tell me what's wrong.  I'm looking for where to
> start doing diagnostics.  I have a whole book on Tomcat development
and
> it has not a single section on tomcat problem solving.  Thanks.
> 
>  
> 
> Ken
> 
>  
> 
> 


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


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



Re: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Bhupinder Dhillon
I have the same bloody problem.  The application is a generic form handler that 
e-mails the form values.  Most (all) of the clients expect the values to be in 
the same order as the form itself.


I question the requirement to improve performance on request parameters.  Vast 
majority of the requests have less than 50 parameters and I fail to see how 
changing a collection would improve performance.  It might improve performance a 
little bit when there's hundreds or thousands of parameters but not when it's 
less than 50.


I noticed that SunOne 6.0 web server had the same problem when they embedded 
Catalina in it.  But they at least fixed the problem in subsequent releases (6.1 
and above) when we complained about it.  It makes you wonder - if Sun can fix 
the problem even though performance requirements on SunOne servers are 
significantly higher than tomcat because they are selling the product for 
profit, why tomcat community would not do the same and make life easier for us 
developers.


--
Bhupinder

On 12/08/2005 11:22 AM, Jeff Grangier wrote:
 


Hello,

 


I have migrated my application from iPlanet to Tomcat 5.5 (latest build as
of today) and getting weird results with the HttpServletRequest object:

 


Each Element out the getParameterNames enumeration used to be ordered based
on the html form layout posting the data (using iPLanet). But, after the
migration the fields are coming in random order when I try to loop through
the fields dynamically. . .

 

Here is a snapshot of the code: 

 


Enumeration paramNames = req.getParameterNames();

 

while(paramNames.hasMoreElements()) 


{

paramName = (String)paramNames.nextElement();

.

.

.

 


Has anyone encountered this issue before? Is there a work around?

 


Thank you in advance for your help,

Jeff

 

 





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



Re: Diagnosing Tomcat Hang

2005-08-12 Thread Radek Wierzbicki
Hi.

Did you try sending a JVM process a QUIT signal (kill -3)? That will
produce a thread dump on a standart output. Do that when your
application hangs. From the thread dump you can deduct which thread
causes a problem.

--Radek W.

Kenneth Litwak wrote:
>   I have a Java web app running on tomcat on Linux Red hat on an Intel
> box with 2 GR of RAM.  We're having trouble because the application
> intermittently hangs.  The threads never go anywhere near the max.  The
> CPU usage never goes above 2%.  The memory does not get used up.
> Nevertheless, the tomcat server hangs.Obviously this could be a
> deadlock. Or, it could be connected to the fact that the application
> uses a third-party tool, which requires a JDBC connection to a
> middleware network program on the database server, called Omnidex.  What
> I need to know is how I can go about figuring out what's going wrong.
> In the short term if there's something I can do in tomcat logging or
> tracing, I'd like to know.  Also, I'm interested in suggestions for
> software to purchase that can do a better job of analyzing what is going
> on in the JVM to track down what is going on.  The problem appears and
> then goes way and then reappears.  It is clearly linked to number of
> users, but the problem appears with only 18 users at a time.  So I know
> that none of you can tell me what's wrong.  I'm looking for where to
> start doing diagnostics.  I have a whole book on Tomcat development and
> it has not a single section on tomcat problem solving.  Thanks.
> 
>  
> 
> Ken
> 
>  
> 
> 


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



Re: Diagnosing Tomcat Hang

2005-08-12 Thread Martin Wood

i was recently recommended these 2 tools by the good people here

http://www.quest.com/jprobe/

http://jakarta.apache.org/jmeter/

but id like to hear if there are other tools and techniques people 
recommend for debugging and monitoring.


thanks

martin

Kenneth Litwak wrote:

  I have a Java web app running on tomcat on Linux Red hat on an Intel
box with 2 GR of RAM.  We're having trouble because the application
intermittently hangs.  The threads never go anywhere near the max.  The
CPU usage never goes above 2%.  The memory does not get used up.
Nevertheless, the tomcat server hangs.Obviously this could be a
deadlock. Or, it could be connected to the fact that the application
uses a third-party tool, which requires a JDBC connection to a
middleware network program on the database server, called Omnidex.  What
I need to know is how I can go about figuring out what's going wrong.
In the short term if there's something I can do in tomcat logging or
tracing, I'd like to know.  Also, I'm interested in suggestions for
software to purchase that can do a better job of analyzing what is going
on in the JVM to track down what is going on.  The problem appears and
then goes way and then reappears.  It is clearly linked to number of
users, but the problem appears with only 18 users at a time.  So I know
that none of you can tell me what's wrong.  I'm looking for where to
start doing diagnostics.  I have a whole book on Tomcat development and
it has not a single section on tomcat problem solving.  Thanks.

 


Ken

 





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



Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
  I have a Java web app running on tomcat on Linux Red hat on an Intel
box with 2 GR of RAM.  We're having trouble because the application
intermittently hangs.  The threads never go anywhere near the max.  The
CPU usage never goes above 2%.  The memory does not get used up.
Nevertheless, the tomcat server hangs.Obviously this could be a
deadlock. Or, it could be connected to the fact that the application
uses a third-party tool, which requires a JDBC connection to a
middleware network program on the database server, called Omnidex.  What
I need to know is how I can go about figuring out what's going wrong.
In the short term if there's something I can do in tomcat logging or
tracing, I'd like to know.  Also, I'm interested in suggestions for
software to purchase that can do a better job of analyzing what is going
on in the JVM to track down what is going on.  The problem appears and
then goes way and then reappears.  It is clearly linked to number of
users, but the problem appears with only 18 users at a time.  So I know
that none of you can tell me what's wrong.  I'm looking for where to
start doing diagnostics.  I have a whole book on Tomcat development and
it has not a single section on tomcat problem solving.  Thanks.

 

Ken

 



Loadbalancer in Tomcat 5.5

2005-08-12 Thread samuel cheung
Hi,

Can I use the LoadBalancer webapp to load balance requests to a number
of tomcat server in round-robin fashion?  I know there is an example
of the Loadbalancer in the documentation, but that is different from
what I want.

And how can the load balancer make sure the same session (based on the
session id) handles  by the SAME tomcat server?

Thank you.
Sam

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



RE: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Jeff Grangier
Hey Dude,

I was certainly not trying to be arbitrary . . . If Iplanet is more "robust"
in this area don't take it personally. As far as your sour memory in DB
development, please leave me out of it. This was a simple question that
makes a lot of sense when you are building any web applications. If there is
a problem with the specification, then it should be changed to accommodate
the user. Tomcat or any other software of that sort are loaded with
functions/features that sacrifice performance with functionality, this is
what you call "an option".

Jeff Grangier
 
-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 1:46 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat and the HttpServletRequest Object

Even if I were to write this as an enhancement, I can tell you from past
experience it would be rejected out of hand by the committers.

In your particular case, the tool you were using before used something like
a Vector or ArrayList to hold the parameter name/value pairs. Tomcat is
almost certainly using a HashMap of some sort. Any deterministic
implementation is going to be slower than the current random access
implementation. Committers will savage any submission that appears slower
and the person submitting it. No thanks, I'm not going there.

Even if Tomcat were to work in the manner desired, there's nothing that says
that every browser is going to submit the form elements in their order of
definition. You really need to abandon this idea and make your application
more robust.

You remind me of people who do SQL database development. They don't specify
an ORDER BY clause on their statements, but it always came back in the order
they wanted. Then one day, they upgraded versions of the database or the
query optimizer decided to take a different path, and all of a sudden the
results are coming out of order. Much wailing and attempted reporting of
bugs ensues... The truth is in SQL, that if you don't specify an ORDER BY
clause, the database can return the results in any order it likes.

Taking advantage of an implementation specific behavior is natural, but it
can lead (as you have found out) to non-portable code. The final arbiter is
the specification, and if the specification doesn't describe the behavior,
you can't say anything about it.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Jeff Grangier [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 12, 2005 12:19 PM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat and the HttpServletRequest Object
> 
> Hello George,
> 
> I will consider it an ehancement if it is not in the 
> specification. Adding a
> logical order to the list makes it much easier to manage dynamically.
> Otherwize, any programmer will have to create their own 
> proprietary indexing
> and ordering logic for it.
> 
> Let me know if I can help in this upgrade? 
> 
> Thanks,
> Jeff
> 
> 
> -Original Message-
> From: George Sexton [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 12, 2005 12:40 PM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat and the HttpServletRequest Object
> 
> I see nothing in the specification that specifies the order 
> of the elements
> returned in the enumeration.
> 
> Why do you think this is a bug?
> 
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>   
> 
> > -Original Message-
> > From: Jeff Grangier [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, August 12, 2005 11:22 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat and the HttpServletRequest Object
> > 
> >  
> > 
> > Hello,
> > 
> >  
> > 
> > I have migrated my application from iPlanet to Tomcat 5.5 
> > (latest build as
> > of today) and getting weird results with the 
> > HttpServletRequest object:
> > 
> >  
> > 
> > Each Element out the getParameterNames enumeration used to be 
> > ordered based
> > on the html form layout posting the data (using iPLanet). 
> > But, after the
> > migration the fields are coming in random order when I try to 
> > loop through
> > the fields dynamically. . .
> > 
> >  
> > 
> > Here is a snapshot of the code: 
> > 
> >  
> > 
> > Enumeration paramNames = req.getParameterNames();
> > 
> >  
> > 
> > while(paramNames.hasMoreElements()) 
> > 
> > {
> > 
> > paramName = (String)paramNames.nextElement();
> > 
> > .
> > 
> > .
> > 
> > .
> > 
> >  
> > 
> > Has anyone encountered this issue before? Is there a work around?
> > 
> >  
> > 
> > Thank you in advance for your help,
> > 
> > Jeff
> > 
> >  
> > 
> >  
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --

security-constraint not working, help please...

2005-08-12 Thread Trey Ethridge
Hello all,

I'm ready to pull my hair out getting the security constraint to work.  
Basically, I need to forward all traffic except one directory to the https 
port.  I've got it to work if I use the url-pattern of "/*".  However, when I 
specify the patterns to accomplish the task, nothing matches and I can access 
any page through the http port.

Here is what I'm using: 

In web.xml:


Automatic SLL Forwarding
/Temp/*
/temp/*
/pictures/*
/resources/*
/admin/*
/web/*
/Operator/*
/operator/*
/soap/*
/webtools/*


  
CONFIDENTIAL
  



In server.xml:

  
  




  
  
  


  

  


Is there a way to specify everything except a directory using some kind of NOT 
operator?

Why won't what I'm using above forward me to the correct https port?

Thanks in advance.


___
Try Juno Platinum for Free! Then, only $9.95/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.juno.com/value to sign up today!


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



Re: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Wendy Smoak

From: "Jeff Grangier" <[EMAIL PROTECTED]>

Each Element out the getParameterNames enumeration used to be ordered 
based

on the html form layout posting the data (using iPLanet). But, after the
migration the fields are coming in random order when I try to loop through
the fields dynamically. . .


AFAIK, there's nothing in the HTTP spec that says what order the browser 
must send the parameters in.  Most browsers send them in the order they 
appear in the HTML source... but that's not guaranteed.  And then there's 
nothing in the Servlet spec that says the container must keep them in the 
same order that the browser sent them.


What are you doing that depends on the order of the request params?

--
Wendy Smoak



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



RE: Tomcat and the HttpServletRequest Object

2005-08-12 Thread George Sexton
Even if I were to write this as an enhancement, I can tell you from past
experience it would be rejected out of hand by the committers.

In your particular case, the tool you were using before used something like
a Vector or ArrayList to hold the parameter name/value pairs. Tomcat is
almost certainly using a HashMap of some sort. Any deterministic
implementation is going to be slower than the current random access
implementation. Committers will savage any submission that appears slower
and the person submitting it. No thanks, I'm not going there.

Even if Tomcat were to work in the manner desired, there's nothing that says
that every browser is going to submit the form elements in their order of
definition. You really need to abandon this idea and make your application
more robust.

You remind me of people who do SQL database development. They don't specify
an ORDER BY clause on their statements, but it always came back in the order
they wanted. Then one day, they upgraded versions of the database or the
query optimizer decided to take a different path, and all of a sudden the
results are coming out of order. Much wailing and attempted reporting of
bugs ensues... The truth is in SQL, that if you don't specify an ORDER BY
clause, the database can return the results in any order it likes.

Taking advantage of an implementation specific behavior is natural, but it
can lead (as you have found out) to non-portable code. The final arbiter is
the specification, and if the specification doesn't describe the behavior,
you can't say anything about it.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Jeff Grangier [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 12, 2005 12:19 PM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat and the HttpServletRequest Object
> 
> Hello George,
> 
> I will consider it an ehancement if it is not in the 
> specification. Adding a
> logical order to the list makes it much easier to manage dynamically.
> Otherwize, any programmer will have to create their own 
> proprietary indexing
> and ordering logic for it.
> 
> Let me know if I can help in this upgrade? 
> 
> Thanks,
> Jeff
> 
> 
> -Original Message-
> From: George Sexton [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 12, 2005 12:40 PM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat and the HttpServletRequest Object
> 
> I see nothing in the specification that specifies the order 
> of the elements
> returned in the enumeration.
> 
> Why do you think this is a bug?
> 
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>   
> 
> > -Original Message-
> > From: Jeff Grangier [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, August 12, 2005 11:22 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat and the HttpServletRequest Object
> > 
> >  
> > 
> > Hello,
> > 
> >  
> > 
> > I have migrated my application from iPlanet to Tomcat 5.5 
> > (latest build as
> > of today) and getting weird results with the 
> > HttpServletRequest object:
> > 
> >  
> > 
> > Each Element out the getParameterNames enumeration used to be 
> > ordered based
> > on the html form layout posting the data (using iPLanet). 
> > But, after the
> > migration the fields are coming in random order when I try to 
> > loop through
> > the fields dynamically. . .
> > 
> >  
> > 
> > Here is a snapshot of the code: 
> > 
> >  
> > 
> > Enumeration paramNames = req.getParameterNames();
> > 
> >  
> > 
> > while(paramNames.hasMoreElements()) 
> > 
> > {
> > 
> > paramName = (String)paramNames.nextElement();
> > 
> > .
> > 
> > .
> > 
> > .
> > 
> >  
> > 
> > Has anyone encountered this issue before? Is there a work around?
> > 
> >  
> > 
> > Thank you in advance for your help,
> > 
> > Jeff
> > 
> >  
> > 
> >  
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: Tomcat and the HttpServletRequest Object

2005-08-12 Thread Jeff Grangier
Hello George,

I will consider it an ehancement if it is not in the specification. Adding a
logical order to the list makes it much easier to manage dynamically.
Otherwize, any programmer will have to create their own proprietary indexing
and ordering logic for it.

Let me know if I can help in this upgrade? 

Thanks,
Jeff


-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 12:40 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat and the HttpServletRequest Object

I see nothing in the specification that specifies the order of the elements
returned in the enumeration.

Why do you think this is a bug?


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Jeff Grangier [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 12, 2005 11:22 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat and the HttpServletRequest Object
> 
>  
> 
> Hello,
> 
>  
> 
> I have migrated my application from iPlanet to Tomcat 5.5 
> (latest build as
> of today) and getting weird results with the 
> HttpServletRequest object:
> 
>  
> 
> Each Element out the getParameterNames enumeration used to be 
> ordered based
> on the html form layout posting the data (using iPLanet). 
> But, after the
> migration the fields are coming in random order when I try to 
> loop through
> the fields dynamically. . .
> 
>  
> 
> Here is a snapshot of the code: 
> 
>  
> 
> Enumeration paramNames = req.getParameterNames();
> 
>  
> 
> while(paramNames.hasMoreElements()) 
> 
> {
> 
> paramName = (String)paramNames.nextElement();
> 
> .
> 
> .
> 
> .
> 
>  
> 
> Has anyone encountered this issue before? Is there a work around?
> 
>  
> 
> Thank you in advance for your help,
> 
> Jeff
> 
>  
> 
>  
> 
> 


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



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



Autodeploy strangeness

2005-08-12 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
I am getting some strange behavior when trying to autodeploy.

I am running tomcat5.5.7 and the instance has several apps running in it.

The contexts are contained within 
$CATALINA_HOME/conf/Catalina/localhost/whatevercontext.xml

There are several different contexts in this path.

However when a .war file is dropped into the webapps directory sometimes it 
will deploy properly, other times it will delete the war file and the xml 
context associated with it.  This is a dev instance and I have set the 
privilages so our developers can drop war files into the webapps directory so 
that I dont have to be involved everytime.

Has anyone else ran into this?  

==

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



RE: Tomcat and the HttpServletRequest Object

2005-08-12 Thread George Sexton
I see nothing in the specification that specifies the order of the elements
returned in the enumeration.

Why do you think this is a bug?


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Jeff Grangier [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 12, 2005 11:22 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat and the HttpServletRequest Object
> 
>  
> 
> Hello,
> 
>  
> 
> I have migrated my application from iPlanet to Tomcat 5.5 
> (latest build as
> of today) and getting weird results with the 
> HttpServletRequest object:
> 
>  
> 
> Each Element out the getParameterNames enumeration used to be 
> ordered based
> on the html form layout posting the data (using iPLanet). 
> But, after the
> migration the fields are coming in random order when I try to 
> loop through
> the fields dynamically. . .
> 
>  
> 
> Here is a snapshot of the code: 
> 
>  
> 
> Enumeration paramNames = req.getParameterNames();
> 
>  
> 
> while(paramNames.hasMoreElements()) 
> 
> {
> 
> paramName = (String)paramNames.nextElement();
> 
> .
> 
> .
> 
> .
> 
>  
> 
> Has anyone encountered this issue before? Is there a work around?
> 
>  
> 
> Thank you in advance for your help,
> 
> Jeff
> 
>  
> 
>  
> 
> 


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



Re: serving japanese file problem

2005-08-12 Thread Mark Thomas
Arun Prasad R wrote:
> i have a ウェブ.jpg (japanese filename) in images directory.
> while requesting that file url encode to %E3%82%A6%E3%82%A7%E3%83%96.jpg
> 
> but tomcat doesn't serve ウェブ.jpg instead it says file not found.
> 
> my question is how to make tomcat to decode
> %E3%82%A6%E3%82%A7%E3%83%96.jpg as ウェブ.jpg


You should set the URIEncoding paramter of the connector to UTF-8.

Mark


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



Re: ssl/tls - INTEGRAL/CONFIDENTIAL - question

2005-08-12 Thread Mark Thomas

[EMAIL PROTECTED] wrote:

Hello,

I'm having some trouble configuring secure connections. I have 2 webapps that I
deployed myself. One in /dspace and another one in /odin. I have set the
transport-guarantuee for both to INTEGRAL. I did this in their own
web.xml-files. In both cases I used / as url-pattern.
I have set the transport-guarantuee for /manager to CONFIDENTIAL.

I have set ciphers to (shortened) NULL_SHA and two others with encryption and
authentication.

When I browse the /dspace- and /odin-pages I het authentication and encryption,
while I only would like to have authentication.

Can anyone tell me/help me why I also get encryption in these cases?


As far as I recall, the JSSE implementation has an order of preference 
for the ciphers and NULL_SHA is very likely to be below the others.


Mark


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



Re: Does Tomcat 5 support mod_JK?

2005-08-12 Thread Mark Thomas

Try reading:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/ajp.html for 
the Tomcat end and 
http://jakarta.apache.org/tomcat/connectors-doc/config/apache.html for 
the Apache httpd end.


Mark

g1 Sunkersett wrote:

Hi,

I am trying load balancing with Tomcat 5, fornted with Apache's mod_jk 
connector.


It is always the local one that serves my request. Cannot get my remote 
Tomcat to serve any.

http://localhost/jkstatus also gives a error page
Have workers.properties and all configured but ...

Doing a search on google found Tomcat + mod_JK documentation take me to

Tomcat 4.0.1 docs 
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html)
Tomcat 5 docs has almost nothing on mod_JK (The page 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/jk.html is NON 
existant)


Am I trying in vain.
DOES TOMCAT 5.x.xx support mod_JK or vice versa.

I am using Tomcat 5.0.28 and mod_JK binary - mod_jk-1.2.14-apache-2.0.54.so
OS: Windows XP

any clues will be appreciated.

thx
g1

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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







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



Tomcat and the HttpServletRequest Object

2005-08-12 Thread Jeff Grangier
 

Hello,

 

I have migrated my application from iPlanet to Tomcat 5.5 (latest build as
of today) and getting weird results with the HttpServletRequest object:

 

Each Element out the getParameterNames enumeration used to be ordered based
on the html form layout posting the data (using iPLanet). But, after the
migration the fields are coming in random order when I try to loop through
the fields dynamically. . .

 

Here is a snapshot of the code: 

 

Enumeration paramNames = req.getParameterNames();

 

while(paramNames.hasMoreElements()) 

{

paramName = (String)paramNames.nextElement();

.

.

.

 

Has anyone encountered this issue before? Is there a work around?

 

Thank you in advance for your help,

Jeff

 

 



Re: "WEB-INF/lib/myjar.jar doesn't contain file xyz..."

2005-08-12 Thread t.n.a.
Allistair Crossley wrote:

>Can you post the full exception stack?
>  
>
Sorry, I'd love to but it...well...works now. Don't ask me why: tomcat
was acting fairly peculiar by the time I'd thrown everything I could
think of at it...maybe it was that. Then it stopped running both
applications (even the one that worked before), I went rowing for an
hour or two, came back and everything was all fine and well again. :)
Anyway, I thank everyone for the effort.

Tomislav

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



RE: Listening on multiple ips

2005-08-12 Thread David Erickson
I know, the problem is this is production environment and im still waiting
for my firewall guy to get back to me on opening those ports up to the
second ip, so really I couldn't have tested it, so I figured the next best
thing would be to run it by the list to see if anyone else had done
something like this.

If I have a hostname (or multiple hostnames) pointing to say the second ip
address, they will still be serviced by the host with the associated ip
address correct?

-David

> -Original Message-
> From: Allistair Crossley [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 12, 2005 10:26 AM
> To: Tomcat Users List
> Subject: RE: Listening on multiple ips
> 
> In the time it took you to write this email you could have tested this!!
> ;o) Looks reasonable so long as you want to connect direct to Tomcat on
> port 80 for each IP ... try it out and get back to us.
> 
> Allistair.
> 
> > -Original Message-
> > From: David Erickson [mailto:[EMAIL PROTECTED]
> > Sent: 12 August 2005 17:20
> > To: tomcat-user@jakarta.apache.org
> > Subject: Listening on multiple ips
> >
> >
> > Hi I was just wondering what the best way to setup tomcat to listen to
> > multiple ip addresses is?  I have a box with 1 nic that has 3
> > ip addresses,
> > the first address port 80 is in use by apache so I want it to
> > listen on the
> > 2nd and 3rd address.  I also need to have different webapps
> > be loaded for
> > each of the addresses it is listening on.  From looking at
> > the conf file I
> > was wondering if I can just create two connectors for each ip
> > address ie:
> >
> >  >maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >enableLookups="false" redirectPort="443"
> > acceptCount="100"
> >debug="0" connectionTimeout="2"
> >disableUploadTimeout="true" />
> >
> >  >maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >enableLookups="false" redirectPort="443"
> > acceptCount="100"
> >debug="0" connectionTimeout="2"
> >disableUploadTimeout="true" />
> >
> > And then in the engine create two Host elements:
> >
> >>unpackWARs="true" autoDeploy="true"
> >xmlValidation="false" xmlNamespaceAware="false">
> >
> >>unpackWARs="true" autoDeploy="true"
> >xmlValidation="false" xmlNamespaceAware="false">
> >
> >
> > Would this work?
> >
> > Thanks,
> > David
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.6/69 - Release Date: 8/11/2005
> 


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



Re: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Jon Wingfield
One major change between the 4.1.x branch and the 5.x.x branch is 
packages in generated servlets. In tc4.1.x all the jsps were in the 
org.apache.jsp package irrespective of the structure of the site.
From 5 onwards the jsp directory structure is also part of the package 
name. So, my guess is agent_report_all_in.jsp is in a different 
directory from the one that fails to compile. It works in 4.1 but needs 
to be imported in 5.x.x.



Allistair Crossley wrote:

Hi,

It doesn't really matter if you did the app or not, it's irrelevant to this 
conversation and you asked a question.

Anyway, yes an awful lot has changed between 4.1 and 5.5 including the Jasper 
compiler, see the change logs.

However, I have tested your declaration on 5.5.9 and do not get this error 
therefore I think we can rule out the Jasper compiler.

<%!
  static private org.apache.log4j.Logger logger = 
org.apache.log4j.Logger.getLogger(_5_jsp.class);

%>

Have you definately cross-checked the class filename in the 
tomcat_home/work/Catalina/localhost/_/org/apache/jsp location?

Allistair.



-Original Message-
From: Gary Zhu [mailto:[EMAIL PROTECTED]
Sent: 12 August 2005 17:08
To: Tomcat Users List
Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat
5.5.9


First of all, I am not the one who did this app.

Second, it is the case that the JSP file is called
"agent_report_all_in.jsp". 


The question is: Why it runs perfect on Tomcat 4.1.30, and has issues
with Tomcat 5.5.9? The JasperCompiler on Tomcat5.5.9 has 
introduced some

bugs that JasperCompiler on Tomcat 4.1.30 does not have?

Thanks.

Gary 


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: August 12, 2005 11:46 AM

To: Tomcat Users List
Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat
5.5.9

I think Jon maybe onto something ... to use
agent_report_all_in_jsp.class your JSP would need to be called

agent_report_all_in.jsp

Is that the case?

Allistair/



-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: 12 August 2005 16:44
To: Tomcat Users List
Subject: Re: Cannot compile jsp pages with log4j statements 


-- Tomcat


5.5.9


It doesn't like the agent_report_all_in_jsp classname.
I'm guessing that's supposed to be the name of the servlet class 
generated from the jsp. Are you sure it's correct? If it is 


then you 

may have to use a String argument instead of a class when 


calling the 


Logger factory method.

Gary Zhu wrote:


Thanks Allistair.

Below is the snippet of the code, I indicated line 39 as well.

<%@ page import="javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, 
 java.io.File,
 java.io.FileOutputStream,  
 java.io.IOException,

 java.io.BufferedReader,
 java.io.FileInputStream,
 java.util.StringTokenizer,
 java.util.ArrayList,
 java.io.InputStreamReader,
 java.io.InputStream,
 java.io.OutputStream,
 com.timeicr.sysco.web.bean.AgentBean,
 com.timeicr.util.web.session.*,
 org.apache.log4j.*" %>  


<%
 response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
 response.setHeader("Pragma","no-cache"); //HTTP 1.0
 response.setDateHeader("Expires", 0); //prevents caching


at the proxy


server
%>
 
(Line 39)<%!
 static private org.apache.log4j.Logger logger = 
org.apache.log4j.Logger.getLogger(agent_report_all_in_jsp.class);

%>

Gary



-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: August 12, 2005 11:20 AM
To: Tomcat Users List
Subject: RE: Cannot compile jsp pages with log4j statements


-- Tomcat


5.5.9

Can you post the JSP directives, and the scriplet that 


calls log4j?

Also, you have been given a line number 39 .. can you 


work out which



line this is in the work directory.

Allistair.




-Original Message-
From: Gary Zhu [mailto:[EMAIL PROTECTED]
Sent: 12 August 2005 16:17
To: Tomcat Users List
Subject: Cannot compile jsp pages with log4j statements -- Tomcat
5.5.9


Hi all,

I am having difficulties to figure out the solution for 


this issue. 


Jsp pages with log4j logging statements that worked perfect


on Tomcat

4.1.30 could not compile on Tomcat 5.5.9. I commented out 


the log4j 

statements for these problematic pages, then, tomcat 5.5.9 could 
compile them.


Except commenting out all the log4j statements for the 


jsp pages in 

order to run on Tomcat 5.5.9, does anyone have any other 


solutions?

Below is the JasperException message when attempting to 


compile JSP 


pages with log4j statements:


org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 39 in the jsp file:
/sysco/agent_report_all_in.jsp
Generated servlet error:
ag

RE: Listening on multiple ips

2005-08-12 Thread Allistair Crossley
In the time it took you to write this email you could have tested this!! ;o) 
Looks reasonable so long as you want to connect direct to Tomcat on port 80 for 
each IP ... try it out and get back to us.

Allistair.

> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 17:20
> To: tomcat-user@jakarta.apache.org
> Subject: Listening on multiple ips
> 
> 
> Hi I was just wondering what the best way to setup tomcat to listen to
> multiple ip addresses is?  I have a box with 1 nic that has 3 
> ip addresses,
> the first address port 80 is in use by apache so I want it to 
> listen on the
> 2nd and 3rd address.  I also need to have different webapps 
> be loaded for
> each of the addresses it is listening on.  From looking at 
> the conf file I
> was wondering if I can just create two connectors for each ip 
> address ie:
> 
> maxThreads="150" minSpareThreads="25" 
> maxSpareThreads="75"
>enableLookups="false" redirectPort="443" 
> acceptCount="100"
>debug="0" connectionTimeout="2" 
>disableUploadTimeout="true" />
> 
> maxThreads="150" minSpareThreads="25" 
> maxSpareThreads="75"
>enableLookups="false" redirectPort="443" 
> acceptCount="100"
>debug="0" connectionTimeout="2" 
>disableUploadTimeout="true" />
> 
> And then in the engine create two Host elements:
> 
>   unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
>   unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> 
> Would this work?
> 
> Thanks,
> David
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Listening on multiple ips

2005-08-12 Thread David Erickson
Hi I was just wondering what the best way to setup tomcat to listen to
multiple ip addresses is?  I have a box with 1 nic that has 3 ip addresses,
the first address port 80 is in use by apache so I want it to listen on the
2nd and 3rd address.  I also need to have different webapps be loaded for
each of the addresses it is listening on.  From looking at the conf file I
was wondering if I can just create two connectors for each ip address ie:





And then in the engine create two Host elements:

  

  


Would this work?

Thanks,
David


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



RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Allistair Crossley
Hi,

It doesn't really matter if you did the app or not, it's irrelevant to this 
conversation and you asked a question.

Anyway, yes an awful lot has changed between 4.1 and 5.5 including the Jasper 
compiler, see the change logs.

However, I have tested your declaration on 5.5.9 and do not get this error 
therefore I think we can rule out the Jasper compiler.

<%!
  static private org.apache.log4j.Logger logger = 
org.apache.log4j.Logger.getLogger(_5_jsp.class);
%>

Have you definately cross-checked the class filename in the 
tomcat_home/work/Catalina/localhost/_/org/apache/jsp location?

Allistair.

> -Original Message-
> From: Gary Zhu [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 17:08
> To: Tomcat Users List
> Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat
> 5.5.9
> 
> 
> First of all, I am not the one who did this app.
> 
> Second, it is the case that the JSP file is called
> "agent_report_all_in.jsp". 
> 
> The question is: Why it runs perfect on Tomcat 4.1.30, and has issues
> with Tomcat 5.5.9? The JasperCompiler on Tomcat5.5.9 has 
> introduced some
> bugs that JasperCompiler on Tomcat 4.1.30 does not have?
> 
> Thanks.
> 
> Gary 
> 
> -Original Message-
> From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> Sent: August 12, 2005 11:46 AM
> To: Tomcat Users List
> Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat
> 5.5.9
> 
> I think Jon maybe onto something ... to use
> agent_report_all_in_jsp.class your JSP would need to be called
> 
> agent_report_all_in.jsp
> 
> Is that the case?
> 
> Allistair/
> 
> > -Original Message-
> > From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> > Sent: 12 August 2005 16:44
> > To: Tomcat Users List
> > Subject: Re: Cannot compile jsp pages with log4j statements 
> -- Tomcat
> > 5.5.9
> > 
> > 
> > It doesn't like the agent_report_all_in_jsp classname.
> > I'm guessing that's supposed to be the name of the servlet class 
> > generated from the jsp. Are you sure it's correct? If it is 
> then you 
> > may have to use a String argument instead of a class when 
> calling the 
> > Logger factory method.
> > 
> > Gary Zhu wrote:
> > > Thanks Allistair.
> > > 
> > > Below is the snippet of the code, I indicated line 39 as well.
> > > 
> > >  <%@ page import="javax.servlet.http.HttpServletRequest,
> > >   javax.servlet.http.HttpServletResponse, 
> > >   java.io.File,
> > >   java.io.FileOutputStream,  
> > >   java.io.IOException,
> > >   java.io.BufferedReader,
> > >   java.io.FileInputStream,
> > >   java.util.StringTokenizer,
> > >   java.util.ArrayList,
> > >   java.io.InputStreamReader,
> > >   java.io.InputStream,
> > >   java.io.OutputStream,
> > >   com.timeicr.sysco.web.bean.AgentBean,
> > >   com.timeicr.util.web.session.*,
> > >   org.apache.log4j.*" %>  
> > > 
> > > <%
> > >   response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
> > >   response.setHeader("Pragma","no-cache"); //HTTP 1.0
> > >   response.setDateHeader("Expires", 0); //prevents caching
> > at the proxy
> > > server
> > > %>
> > >   
> > > (Line 39)<%!
> > >   static private org.apache.log4j.Logger logger = 
> > > org.apache.log4j.Logger.getLogger(agent_report_all_in_jsp.class);
> > > %>
> > > 
> > > Gary
> > > 
> > >  
> > > 
> > > -Original Message-
> > > From: Allistair Crossley [mailto:[EMAIL PROTECTED]
> > > Sent: August 12, 2005 11:20 AM
> > > To: Tomcat Users List
> > > Subject: RE: Cannot compile jsp pages with log4j statements
> > -- Tomcat
> > > 5.5.9
> > > 
> > > Can you post the JSP directives, and the scriplet that 
> calls log4j?
> > > Also, you have been given a line number 39 .. can you 
> work out which
> 
> > > line this is in the work directory.
> > > 
> > > Allistair.
> > > 
> > > 
> > >>-Original Message-
> > >>From: Gary Zhu [mailto:[EMAIL PROTECTED]
> > >>Sent: 12 August 2005 16:17
> > >>To: Tomcat Users List
> > >>Subject: Cannot compile jsp pages with log4j statements -- Tomcat
> > >>5.5.9
> > >>
> > >>
> > >>Hi all,
> > >> 
> > >>I am having difficulties to figure out the solution for 
> this issue. 
> > >>Jsp pages with log4j logging statements that worked perfect
> > on Tomcat
> > >>4.1.30 could not compile on Tomcat 5.5.9. I commented out 
> the log4j 
> > >>statements for these problematic pages, then, tomcat 5.5.9 could 
> > >>compile them.
> > >> 
> > >>Except commenting out all the log4j statements for the 
> jsp pages in 
> > >>order to run on Tomcat 5.5.9, does anyone have any other 
> solutions?
> > >> 
> > >>Below is the JasperException message when attempting to 
> compile JSP 
> > >>pages with log4j statements:
> > >> 
> > >> 
> > >>org.apache.jasper.JasperException: Unable to compile class for

RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Gary Zhu
First of all, I am not the one who did this app.

Second, it is the case that the JSP file is called
"agent_report_all_in.jsp". 

The question is: Why it runs perfect on Tomcat 4.1.30, and has issues
with Tomcat 5.5.9? The JasperCompiler on Tomcat5.5.9 has introduced some
bugs that JasperCompiler on Tomcat 4.1.30 does not have?

Thanks.

Gary 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: August 12, 2005 11:46 AM
To: Tomcat Users List
Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat
5.5.9

I think Jon maybe onto something ... to use
agent_report_all_in_jsp.class your JSP would need to be called

agent_report_all_in.jsp

Is that the case?

Allistair/

> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 16:44
> To: Tomcat Users List
> Subject: Re: Cannot compile jsp pages with log4j statements -- Tomcat
> 5.5.9
> 
> 
> It doesn't like the agent_report_all_in_jsp classname.
> I'm guessing that's supposed to be the name of the servlet class 
> generated from the jsp. Are you sure it's correct? If it is then you 
> may have to use a String argument instead of a class when calling the 
> Logger factory method.
> 
> Gary Zhu wrote:
> > Thanks Allistair.
> > 
> > Below is the snippet of the code, I indicated line 39 as well.
> > 
> >  <%@ page import="javax.servlet.http.HttpServletRequest,
> >   javax.servlet.http.HttpServletResponse, 
> >   java.io.File,
> >   java.io.FileOutputStream,  
> >   java.io.IOException,
> >   java.io.BufferedReader,
> >   java.io.FileInputStream,
> >   java.util.StringTokenizer,
> >   java.util.ArrayList,
> >   java.io.InputStreamReader,
> >   java.io.InputStream,
> >   java.io.OutputStream,
> >   com.timeicr.sysco.web.bean.AgentBean,
> >   com.timeicr.util.web.session.*,
> >   org.apache.log4j.*" %>  
> > 
> > <%
> >   response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
> >   response.setHeader("Pragma","no-cache"); //HTTP 1.0
> >   response.setDateHeader("Expires", 0); //prevents caching
> at the proxy
> > server
> > %>
> >   
> > (Line 39)<%!
> >   static private org.apache.log4j.Logger logger = 
> > org.apache.log4j.Logger.getLogger(agent_report_all_in_jsp.class);
> > %>
> > 
> > Gary
> > 
> >  
> > 
> > -Original Message-
> > From: Allistair Crossley [mailto:[EMAIL PROTECTED]
> > Sent: August 12, 2005 11:20 AM
> > To: Tomcat Users List
> > Subject: RE: Cannot compile jsp pages with log4j statements
> -- Tomcat
> > 5.5.9
> > 
> > Can you post the JSP directives, and the scriplet that calls log4j?
> > Also, you have been given a line number 39 .. can you work out which

> > line this is in the work directory.
> > 
> > Allistair.
> > 
> > 
> >>-Original Message-
> >>From: Gary Zhu [mailto:[EMAIL PROTECTED]
> >>Sent: 12 August 2005 16:17
> >>To: Tomcat Users List
> >>Subject: Cannot compile jsp pages with log4j statements -- Tomcat
> >>5.5.9
> >>
> >>
> >>Hi all,
> >> 
> >>I am having difficulties to figure out the solution for this issue. 
> >>Jsp pages with log4j logging statements that worked perfect
> on Tomcat
> >>4.1.30 could not compile on Tomcat 5.5.9. I commented out the log4j 
> >>statements for these problematic pages, then, tomcat 5.5.9 could 
> >>compile them.
> >> 
> >>Except commenting out all the log4j statements for the jsp pages in 
> >>order to run on Tomcat 5.5.9, does anyone have any other solutions?
> >> 
> >>Below is the JasperException message when attempting to compile JSP 
> >>pages with log4j statements:
> >> 
> >> 
> >>org.apache.jasper.JasperException: Unable to compile class for JSP
> >>
> >>An error occurred at line: 39 in the jsp file:
> >>/sysco/agent_report_all_in.jsp
> >>Generated servlet error:
> >>agent_report_all_in_jsp cannot be resolved or is not a type
> >>
> >>
> >>org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
> > 
> > ultErrorHa
> > 
> >>ndler.java:84)
> >>org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
> > 
> > patcher.ja
> > 
> >>va:328)
> >>org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompil
> > 
> > er.java:39
> > 
> >>7)
> >>org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
> >>org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
> >>org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
> >>org.apache.jasper.JspCompilationContext.compile(JspCompilation
> > 
> > Context.ja
> > 
> >>va:556)
> >>org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> > 
> > Wrapper.ja
> > 
> >>va:293)
> >>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > 
> > .java:291)
> > 
> >>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >>javax.servlet.

RE: Virtual Host Config Question

2005-08-12 Thread Scott Purcell
Thanks, I guess I will have to play with the configuration. But I am using 
straight Tomcat.

Thanks for all the help, I guess it is not an obvious problem, so I must have 
something stupid going on.

Sincerely
Scott

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Friday, August 12, 2005 10:51 AM
To: Tomcat Users List
Subject: RE: Virtual Host Config Question


Hi,

Not sure about this one. How are you routing requests to Tomcat? Are you using 
the JK connector with a mapping of /*.do? Do you allow image to be handled by 
Apache/IIS or is Tomcat doing it? 
You may need to ensure your static resource uris like images reference the 
context name, e.g src="/unique/images/pic.gif"

Allistair.

> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 15:43
> To: tomcat-user@jakarta.apache.org
> Subject: Virtual Host Config Question
> 
> 
> Hello,
> 
> I have configured two Hosts in my server.xml for two different sites.
> 
> The one I am having issues with is as follows:
>  unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> 
> It actuall works well, but I am running "struts" application 
> and with struts it includes the "context" which is "unique".
> 
> So behind the scenes, (in the URL) I am getting something like this:
> 
> http://www.theuniquepear.com/welcome.do
> which is really doing this
> http://www.theuniquepear.com/unique/welcome.do
> 
> And things of course are getting screwed up. 
> 
> Is there a way to get around that. I took off the /unique" 
> under "appBase" but then it showed the default Tomcat page.
> 
> Anyone been here before?
> 
> Thanks
> Scott
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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


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



RE: Virtual Host Config Question

2005-08-12 Thread Allistair Crossley
Hi,

Not sure about this one. How are you routing requests to Tomcat? Are you using 
the JK connector with a mapping of /*.do? Do you allow image to be handled by 
Apache/IIS or is Tomcat doing it? 
You may need to ensure your static resource uris like images reference the 
context name, e.g src="/unique/images/pic.gif"

Allistair.

> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 15:43
> To: tomcat-user@jakarta.apache.org
> Subject: Virtual Host Config Question
> 
> 
> Hello,
> 
> I have configured two Hosts in my server.xml for two different sites.
> 
> The one I am having issues with is as follows:
>  unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> 
> It actuall works well, but I am running "struts" application 
> and with struts it includes the "context" which is "unique".
> 
> So behind the scenes, (in the URL) I am getting something like this:
> 
> http://www.theuniquepear.com/welcome.do
> which is really doing this
> http://www.theuniquepear.com/unique/welcome.do
> 
> And things of course are getting screwed up. 
> 
> Is there a way to get around that. I took off the /unique" 
> under "appBase" but then it showed the default Tomcat page.
> 
> Anyone been here before?
> 
> Thanks
> Scott
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Allistair Crossley
I think Jon maybe onto something ... to use agent_report_all_in_jsp.class your 
JSP would need to be called

agent_report_all_in.jsp

Is that the case?

Allistair/

> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 16:44
> To: Tomcat Users List
> Subject: Re: Cannot compile jsp pages with log4j statements -- Tomcat
> 5.5.9
> 
> 
> It doesn't like the agent_report_all_in_jsp classname.
> I'm guessing that's supposed to be the name of the servlet class 
> generated from the jsp. Are you sure it's correct? If it is 
> then you may 
> have to use a String argument instead of a class when calling 
> the Logger 
> factory method.
> 
> Gary Zhu wrote:
> > Thanks Allistair.
> > 
> > Below is the snippet of the code, I indicated line 39 as well.
> > 
> >  <%@ page import="javax.servlet.http.HttpServletRequest,
> >   javax.servlet.http.HttpServletResponse, 
> >   java.io.File,
> >   java.io.FileOutputStream,  
> >   java.io.IOException,
> >   java.io.BufferedReader,
> >   java.io.FileInputStream,
> >   java.util.StringTokenizer,
> >   java.util.ArrayList,
> >   java.io.InputStreamReader,
> >   java.io.InputStream,
> >   java.io.OutputStream,
> >   com.timeicr.sysco.web.bean.AgentBean,
> >   com.timeicr.util.web.session.*,
> >   org.apache.log4j.*" %>  
> > 
> > <%
> >   response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
> >   response.setHeader("Pragma","no-cache"); //HTTP 1.0
> >   response.setDateHeader("Expires", 0); //prevents caching 
> at the proxy
> > server
> > %>
> >   
> > (Line 39)<%!
> >   static private org.apache.log4j.Logger logger =
> > org.apache.log4j.Logger.getLogger(agent_report_all_in_jsp.class);
> > %>
> > 
> > Gary
> > 
> >  
> > 
> > -Original Message-
> > From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> > Sent: August 12, 2005 11:20 AM
> > To: Tomcat Users List
> > Subject: RE: Cannot compile jsp pages with log4j statements 
> -- Tomcat
> > 5.5.9
> > 
> > Can you post the JSP directives, and the scriplet that calls log4j?
> > Also, you have been given a line number 39 .. can you work out which
> > line this is in the work directory.
> > 
> > Allistair.
> > 
> > 
> >>-Original Message-
> >>From: Gary Zhu [mailto:[EMAIL PROTECTED]
> >>Sent: 12 August 2005 16:17
> >>To: Tomcat Users List
> >>Subject: Cannot compile jsp pages with log4j statements -- Tomcat 
> >>5.5.9
> >>
> >>
> >>Hi all,
> >> 
> >>I am having difficulties to figure out the solution for this issue. 
> >>Jsp pages with log4j logging statements that worked perfect 
> on Tomcat 
> >>4.1.30 could not compile on Tomcat 5.5.9. I commented out the log4j 
> >>statements for these problematic pages, then, tomcat 5.5.9 could 
> >>compile them.
> >> 
> >>Except commenting out all the log4j statements for the jsp pages in 
> >>order to run on Tomcat 5.5.9, does anyone have any other solutions?
> >> 
> >>Below is the JasperException message when attempting to compile JSP 
> >>pages with log4j statements:
> >> 
> >> 
> >>org.apache.jasper.JasperException: Unable to compile class for JSP
> >>
> >>An error occurred at line: 39 in the jsp file:
> >>/sysco/agent_report_all_in.jsp
> >>Generated servlet error:
> >>agent_report_all_in_jsp cannot be resolved or is not a type
> >>
> >>
> >>org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
> > 
> > ultErrorHa
> > 
> >>ndler.java:84)
> >>org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
> > 
> > patcher.ja
> > 
> >>va:328)
> >>org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompil
> > 
> > er.java:39
> > 
> >>7)
> >>org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
> >>org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
> >>org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
> >>org.apache.jasper.JspCompilationContext.compile(JspCompilation
> > 
> > Context.ja
> > 
> >>va:556)
> >>org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> > 
> > Wrapper.ja
> > 
> >>va:293)
> >>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > 
> > .java:291)
> > 
> >>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >> 
> >>Thanks
> >> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-m

Re: Security Questions Regarding Tomcat

2005-08-12 Thread David Smith
I don't know -- I can see some value to the root only ports below 1024. 
It prevents non-privileged users from stealing trusted service ports in
a mainframe environment -- not that that's a reality anymore.  The best
way to handle this in a production environment is to use the
commons-daemon project at the Jakarta site.

--David

Paul Singleton wrote:

> Harrell, Ralph wrote:
>
>> I would like to be able to start TOMCAT as a non-root
>> user but am unable to as we are running SSL and use
>> port 443 and non-root users do not have the permission
>> to use ports under 1000.
>
>
> ...not in Linux and some (all?) Unix variants, anyway.
>
> (FWIW I think this root-only-below-1000 rule is an
> ill considered security kludge which has probably
> caused more trouble than it has circumvented)
>
> You could redirect port 443 to 8443 (and 80 to 8080)
> either in an external firewall/router or in iptables
> within your server, then start Tomcat as e.g. tomcat
> on its usual ports.
>
> Paul Singleton
>
>


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



Re: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Jon Wingfield

It doesn't like the agent_report_all_in_jsp classname.
I'm guessing that's supposed to be the name of the servlet class 
generated from the jsp. Are you sure it's correct? If it is then you may 
have to use a String argument instead of a class when calling the Logger 
factory method.


Gary Zhu wrote:

Thanks Allistair.

Below is the snippet of the code, I indicated line 39 as well.

 <%@ page import="javax.servlet.http.HttpServletRequest,
  javax.servlet.http.HttpServletResponse, 
  java.io.File,
  java.io.FileOutputStream,  
  java.io.IOException,

  java.io.BufferedReader,
  java.io.FileInputStream,
  java.util.StringTokenizer,
  java.util.ArrayList,
  java.io.InputStreamReader,
  java.io.InputStream,
  java.io.OutputStream,
  com.timeicr.sysco.web.bean.AgentBean,
  com.timeicr.util.web.session.*,
  org.apache.log4j.*" %>  


<%
  response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
  response.setHeader("Pragma","no-cache"); //HTTP 1.0
  response.setDateHeader("Expires", 0); //prevents caching at the proxy
server
%>
  
(Line 39)<%!

  static private org.apache.log4j.Logger logger =
org.apache.log4j.Logger.getLogger(agent_report_all_in_jsp.class);
%>

Gary

 


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: August 12, 2005 11:20 AM

To: Tomcat Users List
Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat
5.5.9

Can you post the JSP directives, and the scriplet that calls log4j?
Also, you have been given a line number 39 .. can you work out which
line this is in the work directory.

Allistair.



-Original Message-
From: Gary Zhu [mailto:[EMAIL PROTECTED]
Sent: 12 August 2005 16:17
To: Tomcat Users List
Subject: Cannot compile jsp pages with log4j statements -- Tomcat 
5.5.9



Hi all,

I am having difficulties to figure out the solution for this issue. 
Jsp pages with log4j logging statements that worked perfect on Tomcat 
4.1.30 could not compile on Tomcat 5.5.9. I commented out the log4j 
statements for these problematic pages, then, tomcat 5.5.9 could 
compile them.


Except commenting out all the log4j statements for the jsp pages in 
order to run on Tomcat 5.5.9, does anyone have any other solutions?


Below is the JasperException message when attempting to compile JSP 
pages with log4j statements:



org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 39 in the jsp file:
/sysco/agent_report_all_in.jsp
Generated servlet error:
agent_report_all_in_jsp cannot be resolved or is not a type


org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa


ultErrorHa


ndler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis


patcher.ja


va:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompil


er.java:39


7)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilation


Context.ja


va:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServlet


Wrapper.ja


va:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet


.java:291)


org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Thanks





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



Re: Security Questions Regarding Tomcat

2005-08-12 Thread David Smith
This sounds really fishy.  Tomcat does not by default have any
connectors configured for port 80.  There must be another service or
you've modified your server.xml somehow.

--David

Robert V. Coward/CTR/OSAGWI wrote:

>Having a similar issue to this with Tomcat 5.
>Apparently T5 comes with a port 80 proxy server a special servlet 
>container or something. Basically I have ipfilter running and only allow 
>access  to port 8080, but if you send a request to 80 tTomcat picks up and 
>does some sort of internal redirect to port 8080. According to a netstat 
>-a only port 808 is litening, but when I run nmap against it it show 80 
>and 8080. I'd like to have ipfileter take block all connections and 
>redirect packets bound for port 80 to 8080. Inother words I want to do 
>what the T5 server seems to be doing already. Anyone have any ideas? My 
>network admin is giving me much grief about allowing port 8080 access to 
>the web.
>
>Thanks
>
>
>
>
>
>Paul Singleton <[EMAIL PROTECTED]> 
>08/12/2005 10:08 AM
>Please respond to
>"Tomcat Users List" 
>
>
>To
>Tomcat Users List 
>cc
>Alon Belman <[EMAIL PROTECTED]>
>Subject
>Re: Security Questions Regarding Tomcat
>
>
>
>
>
>
>Harrell, Ralph wrote:
>
>  
>
>>I would like to be able to start TOMCAT as a non-root
>>user but am unable to as we are running SSL and use
>>port 443 and non-root users do not have the permission
>>to use ports under 1000.
>>
>>
>
>...not in Linux and some (all?) Unix variants, anyway.
>
>(FWIW I think this root-only-below-1000 rule is an
>ill considered security kludge which has probably
>caused more trouble than it has circumvented)
>
>You could redirect port 443 to 8443 (and 80 to 8080)
>either in an external firewall/router or in iptables
>within your server, then start Tomcat as e.g. tomcat
>on its usual ports.
>
>Paul Singleton
>
>
>  
>

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



RE: Problems with context

2005-08-12 Thread Fermin Jimenez Najar
This is the question (by example)
a) In my computer (where the tomcat is installed)
   1. I call this page who have the
sendRedirect("http://192.168.1.64/activation/secondpage.jsp";)
   http://192.168.1.64/activation/firstpage.jsp

   2. Works fine, in the browser of my machine appears:
http://192.168.1.64/activation/secondpage.jsp

b)But the ERROR happens when i try to access from another computer:
  1. I call this page who have the
sendRedirect("http://192.168.1.64/activation/secondpage.jsp";)
   http://192.168.1.64/activation/firstpage.jsp

2. I get this as URL in the browser:
http://localhost/secondpage.jsp

  and this error:
  "The page is not enabled" (or something like that, without error
number)

-Message d'origine-
De : Allistair Crossley [mailto:[EMAIL PROTECTED]
Envoyé : Viernes, 12 de Agosto de 2005 05:22 p.m.
À : Tomcat Users List
Objet : RE: Problems with context


And what is the error you are getting? 404? 500? Exception? What?

Allistair.

> -Original Message-
> From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 08:54
> To: Tomcat Users List
> Subject: Problems with context
>
>
> Hi. I just has beginning to use the Tomcat, for programming in JSP.
> I have the 5.0 version.
>
> I make a web app that uses, in some jsp's files, the command
> "response.sendRedirect".
>
> When i execute the pages locally in my computer, works fine,
> but, i if try
> to
> test the pages from another computer, i get an error.
>
> This is the way i was executed the sendRedirect for test in
> another machine,
> and always get an error:
> response.sendRedirect("http://localhost:8080/activation/obliga
> torios.jsp")
> response.sendRedirect("http://192.168.1.137:8080/activation/ob
> ligatorios.jsp
> ")
> response.sendRedirect("http://mycomputer:8080/activation/oblig
> atorios.jsp")
> response.sendRedirect("/obligatorios.jsp")
> response.sendRedirect("activation/obligatorios.jsp")
>
>
> I think that could be some context problems because, for make
> the webapp
> structure, i
> copied one example webapp that comes with the tomcat, then i
> deleted and
> renamed
> those files and directories that i dont use (off course, the
> web-inf still
> exist)
>
> What can i do ? Is there is some file where i must configure
> the context of
> the webapp ?
>
> Thanks !!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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


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



Re: Security Questions Regarding Tomcat

2005-08-12 Thread David Smith
See the Commons-Daemon project on the Jakarta site for starting tomcat
as a non-root answer.

--David

Harrell, Ralph wrote:

>I would like to be able to start TOMCAT as a non-root
>user but am unable to as we are running SSL and use
>port 443 and non-root users do not have the permission
>to use ports under 1000.
>
>Ralph B. Harrell
>UNC Charlotte
>Manager, Oracle Database Administration
>[EMAIL PROTECTED]
>(704) 687-2951
>-Original Message-
>From: Alon Belman [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, August 11, 2005 4:20 PM
>To: Tomcat Users List
>Subject: Re: Security Questions Regarding Tomcat
>
>copied "share" to meb/robo
>
>laters!
>
>On 8/11/05, LFM <[EMAIL PROTECTED]> wrote:
>  
>
>>Tim,
>>
>>Thanks for the reply, but I can't get in working:
>>
>>In conf/server.xml I added server="TEST", as shown:
>>
>>
>>>port="8180" minProcessors="5" maxProcessors="75"
>>enableLookups="true" acceptCount="10" debug="0"
>>connectionTimeout="2" useURIValidationHack="false" server="TEST"/>
>>
>>Stopped, started Tomcat. nc'ed to localhost, but still got the old
>>server header.
>>
>>$ nc localhost 8180
>>GET / HTTP/1.0
>>
>>HTTP/1.1 302 Moved Temporarily
>>Location: http://localhost.localdomain:8180/index.jsp
>>Content-Length: 0
>>Date: Thu, 11 Aug 2005 20:15:38 GMT
>>Server: Apache-Coyote/1.1
>>Connection: close
>>
>>What I'm I doing wrong?
>>
>>Thanks!
>>
>>Leandro
>>
>>
>>
>>On Thu, 2005-08-11 at 15:56 -0400, Tim Funk wrote:
>>
>>
>>>The Server header can be configured in the  declaration.
>>>
>>>server='Sun Solaris IIS/6.0'
>>>
>>>To limit the HTTP methods this can be done a few ways;
>>>1) Use a servlet filter
>>>2) Use web.xml and security constraints on those method types
>>>3) ???
>>>
>>>
>>>-Tim
>>>
>>>
>>>LFM wrote:
>>>  
>>>
Hi!

I'm hardening a Web Server running Tomcat for a client, but I'm


>having
>  
>
difficulty in finding information on how to accomplish the


>following
>  
>
tasks (bored of googling so I decided to ask here):
1. Remove/modify the banner presented by the coyote connector on


>the
>  
>
server header of an http reply.
2. Limit the HTTP methods available. (I wan't to disable trace,


>put,
>  
>
delete).



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


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



Re: Security Questions Regarding Tomcat

2005-08-12 Thread Hassan Schroeder

Robert V. Coward/CTR/OSAGWI wrote:

Apparently T5 comes with a port 80 proxy server a special servlet 
container or something. Basically I have ipfilter running and only allow 
access  to port 8080, but if you send a request to 80 tTomcat picks up and 
does some sort of internal redirect to port 8080.


Sorry, but that's simply not the case. The Connector definitions in
$CATALINA_HOME/conf/server.xml control what ports (and IPs) Tomcat
is listening on.

I'm not familiar with 'ipfilter', but there should be a way to list
the current rule set (equiv to `iptables -L`) to see what's going on.

FWIW!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



RE: Problems with context

2005-08-12 Thread Scott Purcell
Actually I am getting no errors. Basically some of the images and includes do 
not show up unless I take out the "unique" from the querystring. That is why I 
am confused.

Originally, while building the application, I did not have an entry in the 
"" element. I just used something like this:
http://localhost/unique/welcome.do
and all was good. But when I got my staticIP the other night, and entered the 
 information that is when things got out of wack.

Does that help?

Thanks,
Scott





-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Friday, August 12, 2005 10:22 AM
To: Tomcat Users List
Subject: RE: Problems with context


And what is the error you are getting? 404? 500? Exception? What?

Allistair.

> -Original Message-
> From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 08:54
> To: Tomcat Users List
> Subject: Problems with context
> 
> 
> Hi. I just has beginning to use the Tomcat, for programming in JSP.
> I have the 5.0 version.
> 
> I make a web app that uses, in some jsp's files, the command
> "response.sendRedirect".
> 
> When i execute the pages locally in my computer, works fine, 
> but, i if try
> to
> test the pages from another computer, i get an error.
> 
> This is the way i was executed the sendRedirect for test in 
> another machine,
> and always get an error:
> response.sendRedirect("http://localhost:8080/activation/obliga
> torios.jsp")
> response.sendRedirect("http://192.168.1.137:8080/activation/ob
> ligatorios.jsp
> ")
> response.sendRedirect("http://mycomputer:8080/activation/oblig
> atorios.jsp")
> response.sendRedirect("/obligatorios.jsp")
> response.sendRedirect("activation/obligatorios.jsp")
> 
> 
> I think that could be some context problems because, for make 
> the webapp
> structure, i
> copied one example webapp that comes with the tomcat, then i 
> deleted and
> renamed
> those files and directories that i dont use (off course, the 
> web-inf still
> exist)
> 
> What can i do ? Is there is some file where i must configure 
> the context of
> the webapp ?
> 
> Thanks !!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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


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



RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Gary Zhu
Thanks Allistair.

Below is the snippet of the code, I indicated line 39 as well.

 <%@ page import="javax.servlet.http.HttpServletRequest,
  javax.servlet.http.HttpServletResponse, 
  java.io.File,
  java.io.FileOutputStream,  
  java.io.IOException,
  java.io.BufferedReader,
  java.io.FileInputStream,
  java.util.StringTokenizer,
  java.util.ArrayList,
  java.io.InputStreamReader,
  java.io.InputStream,
  java.io.OutputStream,
  com.timeicr.sysco.web.bean.AgentBean,
  com.timeicr.util.web.session.*,
  org.apache.log4j.*" %>  

<%
  response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
  response.setHeader("Pragma","no-cache"); //HTTP 1.0
  response.setDateHeader("Expires", 0); //prevents caching at the proxy
server
%>
  
(Line 39)<%!
  static private org.apache.log4j.Logger logger =
org.apache.log4j.Logger.getLogger(agent_report_all_in_jsp.class);
%>

Gary

 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: August 12, 2005 11:20 AM
To: Tomcat Users List
Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat
5.5.9

Can you post the JSP directives, and the scriplet that calls log4j?
Also, you have been given a line number 39 .. can you work out which
line this is in the work directory.

Allistair.

> -Original Message-
> From: Gary Zhu [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 16:17
> To: Tomcat Users List
> Subject: Cannot compile jsp pages with log4j statements -- Tomcat 
> 5.5.9
> 
> 
> Hi all,
>  
> I am having difficulties to figure out the solution for this issue. 
> Jsp pages with log4j logging statements that worked perfect on Tomcat 
> 4.1.30 could not compile on Tomcat 5.5.9. I commented out the log4j 
> statements for these problematic pages, then, tomcat 5.5.9 could 
> compile them.
>  
> Except commenting out all the log4j statements for the jsp pages in 
> order to run on Tomcat 5.5.9, does anyone have any other solutions?
>  
> Below is the JasperException message when attempting to compile JSP 
> pages with log4j statements:
>  
>  
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 39 in the jsp file:
> /sysco/agent_report_all_in.jsp
> Generated servlet error:
> agent_report_all_in_jsp cannot be resolved or is not a type
> 
> 
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
ultErrorHa
> ndler.java:84)
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
patcher.ja
> va:328)
> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompil
er.java:39
> 7)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
> org.apache.jasper.JspCompilationContext.compile(JspCompilation
Context.ja
> va:556)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
Wrapper.ja
> va:293)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:291)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  
> Thanks
>  
> Gary
> 
>  
> 



---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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


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



Re: "WEB-INF/lib/myjar.jar doesn't contain file xyz..."

2005-08-12 Thread Brian Cook


When I get this it is usually either because I miss spelled the library 
I was calling or because the permissions on the jar file are too 
restrictive to allow Tomcat to open it.


i.e. I logged in and transfered the file as root and the tomcat user can 
not read it.  I actually have a script now that I run every time I 
upload new files that changes the owner and group of all the files in 
the webapps dir to the tomcat user and group.



t.n.a. wrote:

Tomcat (5.5) seems reluctant to load a .jar file from the WEB-INF/lib
directory.
Specifically, it seems to load tapestly.jar (as the error is displayed
in a tapestry exception page), but it doesn't seem to want anything to
do with cayenne.jar.
The reported error is that a file in cayenne.jar is missing, which is
plain wrong: when you unzip the .jar, it's there.
Also, I've got another application that also uses cayenne.jar - on the
same tomcat server - and it just works.

Am I missing something here?

Tia,
Tomislav

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





--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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

RE: Problems with context

2005-08-12 Thread Allistair Crossley
And what is the error you are getting? 404? 500? Exception? What?

Allistair.

> -Original Message-
> From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 08:54
> To: Tomcat Users List
> Subject: Problems with context
> 
> 
> Hi. I just has beginning to use the Tomcat, for programming in JSP.
> I have the 5.0 version.
> 
> I make a web app that uses, in some jsp's files, the command
> "response.sendRedirect".
> 
> When i execute the pages locally in my computer, works fine, 
> but, i if try
> to
> test the pages from another computer, i get an error.
> 
> This is the way i was executed the sendRedirect for test in 
> another machine,
> and always get an error:
> response.sendRedirect("http://localhost:8080/activation/obliga
> torios.jsp")
> response.sendRedirect("http://192.168.1.137:8080/activation/ob
> ligatorios.jsp
> ")
> response.sendRedirect("http://mycomputer:8080/activation/oblig
> atorios.jsp")
> response.sendRedirect("/obligatorios.jsp")
> response.sendRedirect("activation/obligatorios.jsp")
> 
> 
> I think that could be some context problems because, for make 
> the webapp
> structure, i
> copied one example webapp that comes with the tomcat, then i 
> deleted and
> renamed
> those files and directories that i dont use (off course, the 
> web-inf still
> exist)
> 
> What can i do ? Is there is some file where i must configure 
> the context of
> the webapp ?
> 
> Thanks !!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: "WEB-INF/lib/myjar.jar doesn't contain file xyz..."

2005-08-12 Thread Allistair Crossley
Can you post the full exception stack?

> -Original Message-
> From: t.n.a. [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 16:19
> To: tomcat-user@jakarta.apache.org
> Subject: "WEB-INF/lib/myjar.jar doesn't contain file xyz..."
> 
> 
> Tomcat (5.5) seems reluctant to load a .jar file from the WEB-INF/lib
> directory.
> Specifically, it seems to load tapestly.jar (as the error is displayed
> in a tapestry exception page), but it doesn't seem to want anything to
> do with cayenne.jar.
> The reported error is that a file in cayenne.jar is missing, which is
> plain wrong: when you unzip the .jar, it's there.
> Also, I've got another application that also uses cayenne.jar - on the
> same tomcat server - and it just works.
> 
> Am I missing something here?
> 
> Tia,
> Tomislav
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Allistair Crossley
Can you post the JSP directives, and the scriplet that calls log4j? Also, you 
have been given a line number 39 .. can you work out which line this is in the 
work directory.

Allistair.

> -Original Message-
> From: Gary Zhu [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 16:17
> To: Tomcat Users List
> Subject: Cannot compile jsp pages with log4j statements -- 
> Tomcat 5.5.9
> 
> 
> Hi all, 
>  
> I am having difficulties to figure out the solution for this 
> issue. Jsp
> pages with log4j logging statements that worked perfect on 
> Tomcat 4.1.30
> could not compile on Tomcat 5.5.9. I commented out the log4j 
> statements
> for these problematic pages, then, tomcat 5.5.9 could compile them.
>  
> Except commenting out all the log4j statements for the jsp pages in
> order to run on Tomcat 5.5.9, does anyone have any other solutions?
>  
> Below is the JasperException message when attempting to compile JSP
> pages with log4j statements:
>  
>  
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 39 in the jsp file:
> /sysco/agent_report_all_in.jsp
> Generated servlet error:
> agent_report_all_in_jsp cannot be resolved or is not a type
> 
> 
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
ultErrorHa
> ndler.java:84)
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
patcher.ja
> va:328)
> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompil
er.java:39
> 7)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
> org.apache.jasper.JspCompilationContext.compile(JspCompilation
Context.ja
> va:556)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
Wrapper.ja
> va:293)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:291)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  
> Thanks
>  
> Gary
> 
>  
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Gary Zhu
Hi all, 
 
I am having difficulties to figure out the solution for this issue. Jsp
pages with log4j logging statements that worked perfect on Tomcat 4.1.30
could not compile on Tomcat 5.5.9. I commented out the log4j statements
for these problematic pages, then, tomcat 5.5.9 could compile them.
 
Except commenting out all the log4j statements for the jsp pages in
order to run on Tomcat 5.5.9, does anyone have any other solutions?
 
Below is the JasperException message when attempting to compile JSP
pages with log4j statements:
 
 
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 39 in the jsp file:
/sysco/agent_report_all_in.jsp
Generated servlet error:
agent_report_all_in_jsp cannot be resolved or is not a type


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:39
7)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
Thanks
 
Gary

 


"WEB-INF/lib/myjar.jar doesn't contain file xyz..."

2005-08-12 Thread t.n.a.
Tomcat (5.5) seems reluctant to load a .jar file from the WEB-INF/lib
directory.
Specifically, it seems to load tapestly.jar (as the error is displayed
in a tapestry exception page), but it doesn't seem to want anything to
do with cayenne.jar.
The reported error is that a file in cayenne.jar is missing, which is
plain wrong: when you unzip the .jar, it's there.
Also, I've got another application that also uses cayenne.jar - on the
same tomcat server - and it just works.

Am I missing something here?

Tia,
Tomislav

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



RE: Out of memory

2005-08-12 Thread Allistair Crossley
You can also get OOME in development by causing restarts by copying class files 
or web.xml files into a running web application with reloadable="true" and 
depending on how good you are at cleaning out your appliacation this leaks 
until such a point you get the OOME usually with PermGen error.

> -Original Message-
> From: Brian Cook [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 15:48
> To: Tomcat Users List
> Subject: Re: Out of memory
> 
> 
> 
> You would probably be better served looking at what you can change in 
> the app so it does not require so much RAM.  It has been my 
> experience 
> that when I get an out of memory error it is because I was 
> forgetting to 
> close an object, or calling too many large objects globally, 
> or reading 
> in too much data into a result set.
> 
> Of all my web apps only one requires the heap size to be 
> raised to the 
> 512MB limit.  It loads multiple 1MB - 10MB overlays them on 
> one another 
> and then dynamically overlays a lot of font specific 
> anti-aliasing text.
> 
> Unless the application is doing similarly demanding you would 
> probably 
> be better severed by debugging the app to see what is using 
> so much RAM.
> 
> If you are making a development error like say forgetting to close an 
> object something everyone on the list has done it is always better to 
> learn of errors as early as possible so you do not carry it over to 
> other apps.
> 
> A lesson I have learned the hard way.
> 
> 
> Allistair Crossley wrote:
> > Oh yes :) 
> > 
> > 
> >>-Original Message-
> >>From: Wolfgang Hackl [mailto:[EMAIL PROTECTED]
> >>Sent: 12 August 2005 09:24
> >>To: Tomcat Users List
> >>Subject: RE: Out of memory
> >>
> >>
> >>
> >>
> >>>You can modify the memory settings for the windows service 
> >>
> >>also in the
> >>
> >>>service.bat file itself. I've been known to uninstall the 
> >>
> >>service, modify 
> >>
> >>>the bat file and then service install again. 
> >>
> >>Forget about a reinstall. Use regedit and go to 
> >>
> >>HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
> >>2.0\\Parameters\Java 
> >>
> >>and edit the JvmMx and JvmMs settings as your deployment requires.
> >>
> >>Kind regards
> >>Wolfgang
> >>
> >>-- 
> >>5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> >>+++ GMX - die erste Adresse für Mail, Message, More +++
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> > 
> >  
> > ---
> > QAS Ltd.
> > Registered in England: No 2582055
> > Registered in Australia: No 082 851 474
> > ---
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> Brian Cook
> Digital Services Analyst
> Print Time Inc.
> [EMAIL PROTECTED]
> 913.345.8900
> 
> 

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



Problems with context

2005-08-12 Thread Fermin Jimenez Najar
Hi. I just has beginning to use the Tomcat, for programming in JSP.
I have the 5.0 version.

I make a web app that uses, in some jsp's files, the command
"response.sendRedirect".

When i execute the pages locally in my computer, works fine, but, i if try
to
test the pages from another computer, i get an error.

This is the way i was executed the sendRedirect for test in another machine,
and always get an error:
response.sendRedirect("http://localhost:8080/activation/obligatorios.jsp";)
response.sendRedirect("http://192.168.1.137:8080/activation/obligatorios.jsp
")
response.sendRedirect("http://mycomputer:8080/activation/obligatorios.jsp";)
response.sendRedirect("/obligatorios.jsp")
response.sendRedirect("activation/obligatorios.jsp")


I think that could be some context problems because, for make the webapp
structure, i
copied one example webapp that comes with the tomcat, then i deleted and
renamed
those files and directories that i dont use (off course, the web-inf still
exist)

What can i do ? Is there is some file where i must configure the context of
the webapp ?

Thanks !!


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



Re: Out of memory

2005-08-12 Thread Brian Cook


You would probably be better served looking at what you can change in 
the app so it does not require so much RAM.  It has been my experience 
that when I get an out of memory error it is because I was forgetting to 
close an object, or calling too many large objects globally, or reading 
in too much data into a result set.


Of all my web apps only one requires the heap size to be raised to the 
512MB limit.  It loads multiple 1MB - 10MB overlays them on one another 
and then dynamically overlays a lot of font specific anti-aliasing text.


Unless the application is doing similarly demanding you would probably 
be better severed by debugging the app to see what is using so much RAM.


If you are making a development error like say forgetting to close an 
object something everyone on the list has done it is always better to 
learn of errors as early as possible so you do not carry it over to 
other apps.


A lesson I have learned the hard way.


Allistair Crossley wrote:
Oh yes :) 




-Original Message-
From: Wolfgang Hackl [mailto:[EMAIL PROTECTED]
Sent: 12 August 2005 09:24
To: Tomcat Users List
Subject: RE: Out of memory




You can modify the memory settings for the windows service 


also in the

service.bat file itself. I've been known to uninstall the 


service, modify 

the bat file and then service install again. 


Forget about a reinstall. Use regedit and go to 


HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
2.0\\Parameters\Java 


and edit the JvmMx and JvmMs settings as your deployment requires.

Kind regards
Wolfgang

--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

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






 
---

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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





--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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

Virtual Host Config Question

2005-08-12 Thread Scott Purcell
Hello,

I have configured two Hosts in my server.xml for two different sites.

The one I am having issues with is as follows:
 


It actuall works well, but I am running "struts" application and with struts it 
includes the "context" which is "unique".

So behind the scenes, (in the URL) I am getting something like this:

http://www.theuniquepear.com/welcome.do
which is really doing this
http://www.theuniquepear.com/unique/welcome.do

And things of course are getting screwed up. 

Is there a way to get around that. I took off the /unique" under "appBase" but 
then it showed the default Tomcat page.

Anyone been here before?

Thanks
Scott


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



Re: Security Questions Regarding Tomcat

2005-08-12 Thread Robert V. Coward/CTR/OSAGWI
Having a similar issue to this with Tomcat 5.
Apparently T5 comes with a port 80 proxy server a special servlet 
container or something. Basically I have ipfilter running and only allow 
access  to port 8080, but if you send a request to 80 tTomcat picks up and 
does some sort of internal redirect to port 8080. According to a netstat 
-a only port 808 is litening, but when I run nmap against it it show 80 
and 8080. I'd like to have ipfileter take block all connections and 
redirect packets bound for port 80 to 8080. Inother words I want to do 
what the T5 server seems to be doing already. Anyone have any ideas? My 
network admin is giving me much grief about allowing port 8080 access to 
the web.

Thanks





Paul Singleton <[EMAIL PROTECTED]> 
08/12/2005 10:08 AM
Please respond to
"Tomcat Users List" 


To
Tomcat Users List 
cc
Alon Belman <[EMAIL PROTECTED]>
Subject
Re: Security Questions Regarding Tomcat






Harrell, Ralph wrote:

> I would like to be able to start TOMCAT as a non-root
> user but am unable to as we are running SSL and use
> port 443 and non-root users do not have the permission
> to use ports under 1000.

...not in Linux and some (all?) Unix variants, anyway.

(FWIW I think this root-only-below-1000 rule is an
ill considered security kludge which has probably
caused more trouble than it has circumvented)

You could redirect port 443 to 8443 (and 80 to 8080)
either in an external firewall/router or in iptables
within your server, then start Tomcat as e.g. tomcat
on its usual ports.

Paul Singleton


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.7/70 - Release Date: 11/Aug/2005


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




RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
===
Tomcat 5.5.10 Virtual Host example setup with log4j logging per host
===

I hope this can be of some use to those who are confused about how to add 
logging to Virtual Hosts in Tomcat 5.5 Series since the disappearance of 
FileLogger.

You will need to be able to configure DNS resolution for this example.

In this example I setup 2 Virtual Hosts each with their own web applications. 
Each
host gets its own log.

I cause an exception in one of the Virtual Hosts to show that its logging is 
directed
into its log.

Virtual Host DNS Entries


Create 2 DNS entries to the Tomcat target machine

tomcata.qas.com
tomcatb.qas.com

Tomcat 5.5.10
-

Download and unzip somewhere.

Virtual Host Web Applications
-

Create directories for the vhost webapps

catalina_home/webapps-a
catalina_home/webapps-b

Copy ROOT and jsp-examples directories from catalina_home/webapps into both 
webapps-a and webapps-b

Setup the exception test


Enter webapps-b/jsp-examples
Create file test.jsp and add into it

<% throw new Exception(); %>

log4j.properties


Create file log4j.properties in catalina_home/common/classes and copy the 
following into it;

# Root
log4j.rootCategory=error, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:/jakarta-tomcat-5.5.10/logs/tomcat-root.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n

# VH A
log4j.appender.A=org.apache.log4j.RollingFileAppender
log4j.appender.A.File=c:/jakarta-tomcat-5.5.10/logs/tomcat-a.log
log4j.appender.A.MaxFileSize=1500KB
log4j.appender.A.MaxBackupIndex=1
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n

# VH B
log4j.appender.B=org.apache.log4j.RollingFileAppender
log4j.appender.B.File=c:/jakarta-tomcat-5.5.10/logs/tomcat-b.log
log4j.appender.B.MaxFileSize=1500KB
log4j.appender.B.MaxBackupIndex=1
log4j.appender.B.layout=org.apache.log4j.PatternLayout
log4j.appender.B.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG,
 R
log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=false

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[tomcata.qas.com]=DEBUG,
 A
log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[tomcata.qas.com]=false

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[tomcatb.qas.com]=DEBUG,
 B
log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[tomcatb.qas.com]=false

server.xml
--

After the localhost Host element, add the Virtual Hosts (here I also add per 
Host access logs)


   



   
  

logging jars


Download and copy log4j1.2.9.jar into catalina_home/common/lib
Download and copy commons-logging.jar into catalina_home/common/lib

Finish and Test
---

That's it. Start Tomcat and go into the logs directory. You should see all the 
new logs created with some default startup information. 

Now browse to 

http://tomcata.qas.com:8080/ (you should get the ROOT tomcat welcome page)
http://tomcatb.qas.com:8080/test.jsp (you should get an exception, check the 
tomcat-b.log

Summary
---

Note that this is virtual host logging, it is not webapp logging. For webapp 
logging you need to configure log4j within the web application itself which is 
another example.

-- end --

> -Original Message-
> From: Allistair Crossley 
> Sent: 12 August 2005 13:57
> To: tomcat-user@jakarta.apache.org
> Cc: Robert Abbate
> Subject: RE: Tomcat 5.5 upgrade + logging problems
> 
> 
> Hi Robert,
> 
> The fact is that followed precisely the instructions do work. 
> I *almost* guarantee this because I walked through it just 
> last week with a guy on a vanilla Tomcat 5.5.9 install and I 
> deal with Tomcat and logging daily.
> 
> The question is, what kind of logging do you want, because 
> there are 2 types. The old FileLogger was internal logging 
> mixed with webapp logging. Tomcat 5.5 aims to decouple itself 
> from a custom logging implementation and uses the Commons 
> Logging wrapper to allow developers to customise their 
> logging output in a more flexible and powerful way. 
> 
> Therefore the developers did not do a *bad thing* as you 
> describe, you are simply peeved off that you don't understand 
> the change. That's natural, noone likes change, but change is 
> inevitable if we are to do things better. Granted that 
> FileLogger was probably easier, but it was not as powerful or 
> flexible. And perhaps the logging page is not the most 
> straightforward but it do

Re: Security Questions Regarding Tomcat

2005-08-12 Thread Paul Singleton

Harrell, Ralph wrote:


I would like to be able to start TOMCAT as a non-root
user but am unable to as we are running SSL and use
port 443 and non-root users do not have the permission
to use ports under 1000.


...not in Linux and some (all?) Unix variants, anyway.

(FWIW I think this root-only-below-1000 rule is an
ill considered security kludge which has probably
caused more trouble than it has circumvented)

You could redirect port 443 to 8443 (and 80 to 8080)
either in an external firewall/router or in iptables
within your server, then start Tomcat as e.g. tomcat
on its usual ports.

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.7/70 - Release Date: 11/Aug/2005


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



RE: Security Questions Regarding Tomcat

2005-08-12 Thread Harrell, Ralph
I would like to be able to start TOMCAT as a non-root
user but am unable to as we are running SSL and use
port 443 and non-root users do not have the permission
to use ports under 1000.

Ralph B. Harrell
UNC Charlotte
Manager, Oracle Database Administration
[EMAIL PROTECTED]
(704) 687-2951
-Original Message-
From: Alon Belman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 4:20 PM
To: Tomcat Users List
Subject: Re: Security Questions Regarding Tomcat

copied "share" to meb/robo

laters!

On 8/11/05, LFM <[EMAIL PROTECTED]> wrote:
> Tim,
> 
> Thanks for the reply, but I can't get in working:
> 
> In conf/server.xml I added server="TEST", as shown:
> 
> 
>  port="8180" minProcessors="5" maxProcessors="75"
> enableLookups="true" acceptCount="10" debug="0"
> connectionTimeout="2" useURIValidationHack="false" server="TEST"/>
> 
> Stopped, started Tomcat. nc'ed to localhost, but still got the old
> server header.
> 
> $ nc localhost 8180
> GET / HTTP/1.0
> 
> HTTP/1.1 302 Moved Temporarily
> Location: http://localhost.localdomain:8180/index.jsp
> Content-Length: 0
> Date: Thu, 11 Aug 2005 20:15:38 GMT
> Server: Apache-Coyote/1.1
> Connection: close
> 
> What I'm I doing wrong?
> 
> Thanks!
> 
> Leandro
> 
> 
> 
> On Thu, 2005-08-11 at 15:56 -0400, Tim Funk wrote:
> > The Server header can be configured in the  declaration.
> >
> > server='Sun Solaris IIS/6.0'
> >
> > To limit the HTTP methods this can be done a few ways;
> > 1) Use a servlet filter
> > 2) Use web.xml and security constraints on those method types
> > 3) ???
> >
> >
> > -Tim
> >
> >
> > LFM wrote:
> > > Hi!
> > >
> > > I'm hardening a Web Server running Tomcat for a client, but I'm
having
> > > difficulty in finding information on how to accomplish the
following
> > > tasks (bored of googling so I decided to ask here):
> > > 1. Remove/modify the banner presented by the coyote connector on
the
> > > server header of an http reply.
> > > 2. Limit the HTTP methods available. (I wan't to disable trace,
put,
> > > delete).
> > >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>



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



RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
Hi Robert,

The fact is that followed precisely the instructions do work. I *almost* 
guarantee this because I walked through it just last week with a guy on a 
vanilla Tomcat 5.5.9 install and I deal with Tomcat and logging daily.

The question is, what kind of logging do you want, because there are 2 types. 
The old FileLogger was internal logging mixed with webapp logging. Tomcat 5.5 
aims to decouple itself from a custom logging implementation and uses the 
Commons Logging wrapper to allow developers to customise their logging output 
in a more flexible and powerful way. 

Therefore the developers did not do a *bad thing* as you describe, you are 
simply peeved off that you don't understand the change. That's natural, noone 
likes change, but change is inevitable if we are to do things better. Granted 
that FileLogger was probably easier, but it was not as powerful or flexible. 
And perhaps the logging page is not the most straightforward but it does work 
when followed.

So now, if you want Tomcat core classes logging, i.e internal Tomcat logging, 
then you need to have a log4j.properties file inside tomcat/common/classes and 
*both* the log4j jar *and* commons logging jar in tomcat/common/lib. This 
information in my view is not all that useful unless you're trying to get to 
the nitty gritty of what's happening. More than likely you are more interested 
in per-webapp logging.

If you want logging for a web application in particular, then you need a 
log4j.properties in the webapp's classes folder and log4j jar only in the lib.

History on this list shows us that logging configuration issues like these are 
almost always caused by something the user has misunderstood or done in their 
"customisation" or web application. 

As for the multiple virtual hosts with webapps;

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/yourwebappname]=DEBUG,
 R

You'll recognise localhost is a servername, so perhaps you could try using your 
virtual host name and let us know if that works.

Cheers, Allistair.

> -Original Message-
> From: Robert Abbate [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 01:37
> To: Allistair Crossley
> Subject: RE: Tomcat 5.5 upgrade + logging problems
> 
> 
> I appreciate your response, but I can assure you there are 
> many out there
> which are not able to get this going EVEN after following the scant
> instructions. I had consulted at least 5 other webhosting 
> companies that I
> am in contact with all having the same issue. There is 
> something wrong and
> not much help so far. Tomcat developers did a bad thing by 
> removing support
> for Logger element. They didn't have to do that since it worked fine.
> 
> Also, I see your site doesn't address a virtual /multiple host setup; I have
> not seen any help anywhere on this setup as we are requesting.
> 
> 
> -Original Message-
> From: Allistair Crossley [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 12, 2005 3:07 AM
> To: Tomcat Users List
> Subject: RE: Tomcat 5.5 upgrade + logging problems
> 
> 
> Really, this has been discussed to death on this mailing list. The 5.5
> logging page for a start gives you instructions for setting 
> logging up.
> Also, I have a blog at www.adcworks.com/blog that touches on 5.5
> configuration and logging.
> 
> Allistair.
> 
> > -Original Message-
> > From: Robert Abbate [mailto:[EMAIL PROTECTED]
> > Sent: 11 August 2005 15:43
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat 5.5 upgrade + logging problems
> >
> >
> > Hi. I have searched through archives and online for such
> > solutions for the
> > depreciated " > and requires
> > separate logs for each host. We have followed the
> > instructions such as this:
> >
> > jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
> >
> > we've put log4j.properties file in each host's
> > WEB-INF/classes folder, and
> > log4j1.2.8.jar into WEB-INF/lib in each host
> >
> > still, nothing seems to work. there must be something we 
> are missing.
> >
> >
> > CONFIGURATION:
> >
> > CATALINA_HOME="/var/tomcat5"
> > TOMCAT_USER="apache"
> > JAVA_HOME="/usr/java"
> > CATALINA_OPTS="-Xmx1228M -Djava.awt.headless=true"
> >  java= 1.5.0_03
> >
> > server.xml
> > CUT
> >  > appBase="/home/rondelli/html">
> >> pathname="/var/tomcat5/conf/tomcat-users/rondelli-t
> > omcat-users.xml"/>
> >   
> > www.domain.com
> >  > docBase="/var/tomcat5/server/webapps/manager"
> > debug="0" privileged="true"/>
> >   > prefix="domain.com_log." suffix=".txt" directo
> > ry="/home/rondelli" timestamp="true"/>
> > 
> >
> >  > appBase="/home/revisionten/html">
> >> pathname="/var/tomcat5/conf/tomcat-users/revisionte
> > n-tomcat-users.xml"/>
> >   
> > www.domain2.com
> >  > docBase="/var/tomcat5/server/webapps/manager"
> > debug="0" privileged="true"/>
> >   > prefix="domain2.com_log." suffix=".txt" dire
> > ctory="/home/revisionten" timestamp="true"/>
> > 
> > CUT.
> >
> >
> > /usr/java/bin/java
>

Re: Tomcat W3C Access Log

2005-08-12 Thread Tim Funk

See ...
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html


It can be declared at the host, context, or engine level.
-Tim

Björn Andersen wrote:


Hi,

We are hosting webapplications on IIS with an Tomcat-Backend connected via 
JK2.
We analyze the IIS-Logs to supply Webstats. Now, the ISAPI-calls to the JK2 
can not be analyzed.

We see that Tomcat has a Logger-Valve for a W3C format access log.
How can we configrue our Tomcatfarm to produce W3C-conform per-application 
accesslogs?

Preferably in server.xml, so we don't have to change the apps.
If you gotta build it manually in the applcations, how is that done?
 


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



RE: Tomcat W3C Access Log

2005-08-12 Thread Allistair Crossley
Hi,

Just use the Access Log Value with the pattern you need. You can see the 
built-in patterns or define your own one.

Check out the docs

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html

Cheers, Allistair.

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Björn Andersen
> Sent: 12 August 2005 11:24
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat W3C Access Log
> 
> 
> Hi,
> 
> We are hosting webapplications on IIS with an Tomcat-Backend 
> connected via 
> JK2.
> We analyze the IIS-Logs to supply Webstats. Now, the 
> ISAPI-calls to the JK2 
> can not be analyzed.
> We see that Tomcat has a Logger-Valve for a W3C format access log.
> How can we configrue our Tomcatfarm to produce W3C-conform 
> per-application 
> accesslogs?
> Preferably in server.xml, so we don't have to change the apps.
> If you gotta build it manually in the applcations, how is that done?
> 
> thanks fou your help.
> 
> Bjoern 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: serving japanese file problem

2005-08-12 Thread Arun Prasad R
thanks Hiroshi,

I set -Dfile.encoding=UTF-8 while starting tomcat and my platform support 
UTF-8 creation.

servlet is same as what u have specifed

but i get broken image(ie file not found)

arun

On 8/12/05, Hiroshi Iwatani <[EMAIL PROTECTED]> wrote:
> 
> Your tomcat isn't running with UTF-8 and/or your platform doesn't use
> UTF-8 for file name.
> 
> On my Linux Fedora Core 3:
> echo $LANG == ja_JP.UTF-8
> means text file(including .java) and file name on OS file system
> are created with UTF8 encoding.
> 
> on our servlet:
> String contType = "text/html;charset=UTF-8";
> request.setCharacterEncoding("UTF8");
> response.setContentType(contType);
> //or, response.setCharacterEncoding("UTF8");
> out.println(""); //text is a UTF8 String
> 
> 
> Arun Prasad R wrote:
> > i have a ウェブ.jpg (japanese filename) in images directory.
> > while requesting that file url encode to %E3%82%A6%E3%82%A7%E3%83%96.jpg
> >
> > but tomcat doesn't serve ウェブ.jpg instead it says file not found.
> >
> > my question is how to make tomcat to decode
> > %E3%82%A6%E3%82%A7%E3%83%96.jpg as ウェブ.jpg
> >
> 
> --
> Hiroshi Iwatani
> 
> *stop cruelty* Annual number of institutionally euthanized cats and dogs
> including kittens and puppies: US 5 million, JP 500 thousand. How about
> your country? *for our better karma*
> -
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Tomcat W3C Access Log

2005-08-12 Thread Bj�rn Andersen
Hi,

We are hosting webapplications on IIS with an Tomcat-Backend connected via 
JK2.
We analyze the IIS-Logs to supply Webstats. Now, the ISAPI-calls to the JK2 
can not be analyzed.
We see that Tomcat has a Logger-Valve for a W3C format access log.
How can we configrue our Tomcatfarm to produce W3C-conform per-application 
accesslogs?
Preferably in server.xml, so we don't have to change the apps.
If you gotta build it manually in the applcations, how is that done?

thanks fou your help.

Bjoern 




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



Tomcat 5.0.28 Character Encoding ISO-8859-9

2005-08-12 Thread Onur Kutlu GAGO
Hi,

I have character set problem with Tomcat 5.0.28! I had
the same problem with WAS6.0 and fixed it by setting 

-Dclient.encoding.override=ISO-8859-9

to the JVM parameters of WAS. 

Is there a setting where I can set the ENCODING?


__
Yahoo! kullanıyor musunuz?
İstenmeyen postadan bıktınız mı?  Yahoo! Posta'da piyasanın en iyi istenmeyen 
posta korunması var 
http://tr.mail.yahoo.com 

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



Re: ssl/tls - INTEGRAL/CONFIDENTIAL - question

2005-08-12 Thread Nikola Milutinovic

[EMAIL PROTECTED] wrote:


Hello,

I'm having some trouble configuring secure connections. I have 2 webapps that I
deployed myself. One in /dspace and another one in /odin. I have set the
transport-guarantuee for both to INTEGRAL. I did this in their own
web.xml-files. In both cases I used / as url-pattern.
I have set the transport-guarantuee for /manager to CONFIDENTIAL.

I have set ciphers to (shortened) NULL_SHA and two others with encryption and
authentication.

When I browse the /dspace- and /odin-pages I het authentication and encryption,
while I only would like to have authentication.

Can anyone tell me/help me why I also get encryption in these cases?
 



The answer is simple, with SSL/TLS, there is no other way to guarantee 
integrity of the transport, other than encrypting it. (All right, maybe 
there is, but current implementations of HTTPS work this way). As for 
authentication, it has got nothing to do with either INTEGRAL or 
CONFIDENTIAL transport. It is a separate thing.


Autehntication gives means to establishing the trusted identity of a 
user (checking if the ID given is authentic). It can be done via several 
mechanisms, some of which are:


- HTTP Basic (user/pass in Base64 encoding)
- HTTP Digest (MD5 digest auth)
- HTTP SPNEGO (supported by MS IIS and Apache+mod_auth_krb/mod_spnego)
- Certificate (if a user has a personal certificate, it can be trusted 
to have verified ID).


Nix.

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



Re: serving japanese file problem

2005-08-12 Thread Hiroshi Iwatani
Your tomcat isn't running with UTF-8 and/or your platform doesn't use
UTF-8 for file name.

On my Linux Fedora Core 3:
echo $LANG == ja_JP.UTF-8
means text file(including .java) and file name on OS file system
are created with UTF8 encoding.

on our servlet:
String contType = "text/html;charset=UTF-8";
request.setCharacterEncoding("UTF8");
response.setContentType(contType);
//or, response.setCharacterEncoding("UTF8");
out.println(""); //text is a UTF8 String


Arun Prasad R wrote:
> i have a ウェブ.jpg (japanese filename) in images directory.
> while requesting that file url encode to %E3%82%A6%E3%82%A7%E3%83%96.jpg
> 
> but tomcat doesn't serve ウェブ.jpg instead it says file not found.
> 
> my question is how to make tomcat to decode
> %E3%82%A6%E3%82%A7%E3%83%96.jpg as ウェブ.jpg
> 

-- 
Hiroshi Iwatani

*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about
your country? *for our better karma*
-

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



RE: Out of memory

2005-08-12 Thread Allistair Crossley
Oh yes :) 

> -Original Message-
> From: Wolfgang Hackl [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 09:24
> To: Tomcat Users List
> Subject: RE: Out of memory
> 
> 
> 
> > You can modify the memory settings for the windows service 
> also in the
> > service.bat file itself. I've been known to uninstall the 
> service, modify 
> > the bat file and then service install again. 
> 
> Forget about a reinstall. Use regedit and go to 
> 
> HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
> 2.0\\Parameters\Java 
> 
> and edit the JvmMx and JvmMs settings as your deployment requires.
> 
> Kind regards
> Wolfgang
> 
> -- 
> 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> +++ GMX - die erste Adresse für Mail, Message, More +++
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: Out of memory

2005-08-12 Thread Wolfgang Hackl

> You can modify the memory settings for the windows service also in the
> service.bat file itself. I've been known to uninstall the service, modify 
> the bat file and then service install again. 

Forget about a reinstall. Use regedit and go to 

HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
2.0\\Parameters\Java 

and edit the JvmMx and JvmMs settings as your deployment requires.

Kind regards
Wolfgang

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

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



RE: Out of memory

2005-08-12 Thread Allistair Crossley
Hi,

You can modify the memory settings for the windows service also in the 
service.bat file itself. I've been known to uninstall the service, modify the 
bat file and then service install again. I don't like using the binary version 
so that should work for you.

Secondly, OOMEs should be addressed by profiling (discussed lots on this list) 
not by throwing more memory at Tomcat (unless of course you have a valid need 
for all that RAM).

Allistair

> -Original Message-
> From: Yun Yang [mailto:[EMAIL PROTECTED]
> Sent: 11 August 2005 19:31
> To: Tomcat Users List
> Subject: Out of memory 
> 
> 
> 
> Hello,
> 
> I am using Tomcat5.0.28. When I try to run my web application, I got
> this message:
> 
> exception
>  
> javax.servlet.ServletException: Servlet execution threw an exception
> 
> root cause
> 
> java.lang.OutOfMemoryError
> 
>  
> How can I solve this problem? I tried to uninstall tomcat5 as service
> using "service.bat remove" and tried to reinstall it as service in
> Windows XP. How can I add option like "-xmx512M" into service.bat? Or
> How can I increase the heap size?
> 
> I added this statement into Catalina.bat "set JAVA_OPTS=-Xmx512m". It
> works. But When I run tomcat5.0 as server it still does not work.
> 
>  
> 
> Thanks,
> 
>  
> 
> Yun Yang
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
Really, this has been discussed to death on this mailing list. The 5.5 logging 
page for a start gives you instructions for setting logging up. Also, I have a 
blog at www.adcworks.com/blog that touches on 5.5 configuration and logging.

Allistair.

> -Original Message-
> From: Robert Abbate [mailto:[EMAIL PROTECTED]
> Sent: 11 August 2005 15:43
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 5.5 upgrade + logging problems
> 
> 
> Hi. I have searched through archives and online for such 
> solutions for the
> depreciated " and requires
> separate logs for each host. We have followed the 
> instructions such as this:
> 
> jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
> 
> we've put log4j.properties file in each host's 
> WEB-INF/classes folder, and
> log4j1.2.8.jar into WEB-INF/lib in each host
> 
> still, nothing seems to work. there must be something we are missing.
> 
> 
> CONFIGURATION:
> 
> CATALINA_HOME="/var/tomcat5"
> TOMCAT_USER="apache"
> JAVA_HOME="/usr/java"
> CATALINA_OPTS="-Xmx1228M -Djava.awt.headless=true"
>  java= 1.5.0_03
> 
> server.xml
> CUT
>  appBase="/home/rondelli/html">
>pathname="/var/tomcat5/conf/tomcat-users/rondelli-t
> omcat-users.xml"/>
>   
> www.domain.com
>  docBase="/var/tomcat5/server/webapps/manager"
> debug="0" privileged="true"/>
>   prefix="domain.com_log." suffix=".txt" directo
> ry="/home/rondelli" timestamp="true"/>
> 
> 
>  appBase="/home/revisionten/html">
>pathname="/var/tomcat5/conf/tomcat-users/revisionte
> n-tomcat-users.xml"/>
>   
> www.domain2.com
>  docBase="/var/tomcat5/server/webapps/manager"
> debug="0" privileged="true"/>
>   prefix="domain2.com_log." suffix=".txt" dire
> ctory="/home/revisionten" timestamp="true"/>
> 
> CUT.
> 
> 
> /usr/java/bin/java 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLo
> gManager -Xmx1228M -Djava.awt.headless=true 
> -Djava.endorsed.dirs=/var/tomcat
> 5/common/endorsed -classpath
> :/var/tomcat5/bin/bootstrap.jar:/var/tomcat5/bin/commons-loggi
> ng-api.jar:/us
> r/java/jre/lib/mysql-connector-java-3.0.15-ga-bin.jar:/var/tom
> cat5/common/li
> b/log4j-1.2.8.jar -Dcatalina.base=/var/tomcat5 
> -Dcatalina.home=/var/tomcat5 
> -Djava.io.tmpdir=/var/tomcat5/temp 
> org.apache.catalina.startup.Bootstrap
> start
> 
> Does anyone have a setup like this and can offer any clues? 
> If you need any
> further config details, please ask. I hope I gave all necessary.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



ssl/tls - INTEGRAL/CONFIDENTIAL - question

2005-08-12 Thread michel . brabants
Hello,

I'm having some trouble configuring secure connections. I have 2 webapps that I
deployed myself. One in /dspace and another one in /odin. I have set the
transport-guarantuee for both to INTEGRAL. I did this in their own
web.xml-files. In both cases I used / as url-pattern.
I have set the transport-guarantuee for /manager to CONFIDENTIAL.

I have set ciphers to (shortened) NULL_SHA and two others with encryption and
authentication.

When I browse the /dspace- and /odin-pages I het authentication and encryption,
while I only would like to have authentication.

Can anyone tell me/help me why I also get encryption in these cases?

thanks,

Michel Brabants

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



Need to touch config files for DB-connection

2005-08-12 Thread Hallvard Lid
Hi

I've got a wierd bug on my tomcat-servers - i have one webapp that uses
a different sql-server than the others. I've defined the connection
under conf/catalina/nameofapp.xml. The wierd part is that after
discovering this, i added a timeout to the config the first time i
touched it(thats how i discovered this), and this timeout gets read, i
notice the timechange on the timeout the next day when the app stops
responding. Other than that its like the xml-file(and the db-data) is
unavaliable to the webapp

Do i need to define the db-connection some other place for it to work
without touching?

The system is a w2003+apache+jk+2tomcats

Hallvard Lid


Re: Java 1.4.2_08 and up breaks Jstl

2005-08-12 Thread Christoph Kutzinski
It would probably help, if you would describe what you did (i.e. what is 
your source code, your environment, tomcat version , etc.) and what does 
mean "the bug happens" (i.e. error messages, stack traces, etc.)


Now we have just the analogue of "My car works on road a but not on road 
b. Do you know what is wrong?"


Christoph

Martyn Hiemstra wrote:

Hi



Do you have a link to a Sun Bugparade entry describing the problem?


No I don't.

I have performed a test of my own.

I have installed j2sdk 1.4.2_05 and j2sdk 1.4.2_08 and j2sdk 1.4.2_09.
I have installed these to the /opt directory. I have my JAVA_HOME pointed
to /opt/java.

First I point /opt/java to /opt/j2sdk1.4.2_09 and restart tomcat. The bug
happens again. I then point /opt/java to /opt/j2sdk1.4.2_08. I restart
tomcat and the same bug occures. I then point /opt/j2sdk1.4.2_05 to
/opt/java, restart tomcat and BINGO no bug. Apparently versions java 2 sdk
1.4.2_09 and java 2 sdk 1.4.2_08 cause the bug to occure just as in the
forum thread.

I have tried a different tomcat version but no luck.

Any ideas anybody? Maybe a configuration change that has occured in the
new java versions?

Martyn



Hi,

I'm not convinced by that forum thread.
It's very hard to believe that there is such a severe bug in Java
1.4.2_06 *that isn't fixed yet*

Do you have a link to a Sun Bugparade entry describing the problem?


Christoph

Martyn Hiemstra wrote:


Hi All

I have found a Bug in Java 1.4.2_08 and Java 1.4.2_09.

Goto this address to read about it:
http://forum.java.sun.com/thread.jspa?threadID=599301&tstart=0

The new versions will break your jstl code and create errors in the log
and create blank pages.

I have tried a new Tomcat version, no luck. I had it running on another
server but that server is running on Java 1.4.2_05.

So just a tip. Dont install Java 1.4.2_08 or higher. It will kill your
application if your using jstl.

Martyn


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




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







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




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



Re: adding mime-type

2005-08-12 Thread michel . brabants
Hello,

I checked it on an other computer yesterday en there it was shown as the
intended type (x509-certificate). I used konqueror. Konqueror still tells me it
is plain text. However, firefox shows it as a certificate. I tested konqueror on
other sites and there is shows the file as a certificate.

If someone would want to test it: The certificate is located at the following
url:
http://bib12.uhasselt.be/

greetings,

Michel


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