Is tc-5.5.9 as stable as 5.0.28?

2005-07-09 Thread Zsolt Koppany
Hi,

we ship our application with tc-5.0.28 and it is stable. Is 5.5.9 as stable
as 5.0.28? If yes we would like to move to that version.

We are happy with 5.0.28 and think to move to 5.5.9 because the built in
java compiler (eclipse).

Zsolt


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



AW: All threads (250) are currently busy

2005-04-20 Thread Zsolt Koppany
We had the same problem, but after configuring the apache connector
correctly the problem disappeared.

Zsolt

 -Ursprüngliche Nachricht-
 Von: Paul Grimwood [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 20. April 2005 06:07
 An: tomcat-user@jakarta.apache.org
 Betreff: All threads (250) are currently busy
 
 Tomcat hangs intermittently (1 to 10 days) with the following message in
 catalina.out
 
 20/04/2005 13:48:09 org.apache.tomcat.util.threads.ThreadPool logFull
 SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads
 (250) or check the servlet status
 
 
 We are running tomcat 5.5.7 on jdk1.5.0_02 under Redhat Linux Fedora Core
 2 against an Oracle9 DB.
 
 I have seen various posts to this with suggestions including setting Linux
 threads with LD_ASSUME_KERNEL (tried but problem still exists) and setting
 connection timeout in server.xml from 0 to 6 (but ours is set at 2
 already). And we have already upgraded to latest Tomcat and JRE to no
 avail. Despite reviewing the mailing list over the past 18 to 24 months, i
 am none the wiser.
 
 The problem started around the time we deployed the code onto a new server
 running a later Linux version but this could be a red herring and I
 suspect it is a database connection issue. Has anyone got any ideas?
 
 -
 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]



Why does this JkCoyoteHandler message appears?

2005-04-14 Thread Zsolt Koppany
Hi,

The message below appears very often. How can I fix it?

Apr 13, 2005 11:54:24 PM org.apache.jk.server.JkCoyoteHandler action
INFO: Response already commited

TC-5.0.27

Zsolt


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



Increasing number of threads with TC-5.0.27 on redhat EP-3

2005-04-10 Thread Zsolt Koppany
Hi,

Without heavy load the number of threads increases permanently with
TC-5.0.27 and JDK-1.4.2-06 on RedHat EP3 (kernel 2.4.21-4.ELsmp).

Until now we used export LD_ASSUME_KERNEL=2.2.5 before starting TC, right
now we use export LD_ASSUME_KERNEL=2.4.19 but that doesn't seem to help
either.

When I'm writing this email the number of threads in JVM is 139.

The connector is configured as below:
Connector
   port=8080
   maxThreads=60 minSpareThreads=25 maxSpareThreads=45
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /


Any ideas what to do?

Zsolt



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



Is jre-1.5 with tc-5.0.28 stable for production for Windows and Linux?

2005-04-05 Thread Zsolt Koppany
Hi,

We have been using tc-5.0.28 with jre-1.4.2-07 for months without any
problems. I heard that jre-1.5 should me much faster the 1.4 and now I
consider moving to that platform. Performance is always important but is tc
stable also with the environment?

Zsolt


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



Which tomcat 5.0 version to use?

2005-03-16 Thread Zsolt Koppany
Hi,

Right now we use tc-5.0.27 in production. There are some enhancements in
5.0.28 that are important for us such as collections-3.1.

I see that 5.0.29 and 30 are also available but they are beta.

Is 5.0.28 as stable as 5.0.20? Which version should I use?

Zsolt



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



How to get english messages on a German Windows-XP?

2005-02-07 Thread Zsolt Koppany
Hi,

This is probably a java and not a tc question, but I would like to know how
to get English java error messages when I start tc on a German windows XP
box.

Zsolt




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



RE: How to get english messages on a German Windows-XP?

2005-02-07 Thread Zsolt Koppany
Thank you for this interesting info but in javadoc for jvm-1.4.2 I found
only the follow system properties:


user.name   User's account name
user.home   User's home directory
user.dirUser's current working directory


Zsolt

 -Original Message-
 From: Mario Winterer [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 07, 2005 6:30 PM
 To: Tomcat Users List
 Subject: Re: How to get english messages on a German Windows-XP?
 
 I think Java uses the Locale from your operating system.
 So to switch to english, you should either:
 + switch the locale of your operating system
 + tell Java to use another locale via system.properties at tomcat
 startup (jvm-property):
 
 -Duser.language=language-code -Duser.country=country-code
 -Duser.variant=variant
 
 e.g.: -Duser.language=en -Duser.country=US
 
 Best regards,
   Tex
 
 Zsolt Koppany schrieb:
 
 Hi,
 
 This is probably a java and not a tc question, but I would like to know
 how
 to get English java error messages when I start tc on a German windows XP
 box.
 
 Zsolt
 
 
 
 
 -
 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: Does from a filter setCharacterEncoding work for tc-5.0.27?

2005-02-03 Thread Zsolt Koppany
Thank you, but we cannot move to 5.5.4. How can I do the same with
tc-5.0.27?

Zsolt

 -Original Message-
 From: A jie [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 03, 2005 2:44 AM
 To: tomcat-user@jakarta.apache.org
 Subject: RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
 
 
 
 
 
 --
  MSN:[EMAIL PROTECTED]
  QQ:29967409
 -
 
 
 
 
 From: Zsolt Koppany [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: Does from a filter setCharacterEncoding work for tc-5.0.27?
 Date: Wed, 2 Feb 2005 15:33:07 +0100
 
 Hi,
 
 Does setCharacterEncoding work under tc-5.0.27 with java-1.4.2-06? To get
 UTF-8 request parameter I need to do:
 
 String par = request.getParameter(filename);
 String filename = new String(par.getBytes(ISO8859-1), UTF-8);
 
 request.setCharacterEncoding(UTF-8) doesn't seem to help from a filter.
 
 Is it my mistake?
 
 
 Zsolt Koppany
 Phone: +49-711-722 1874
 --
 Intland Software GmbH, Schulze-Delitzsch-Strasse 16
 D-70565 Stuttgart, Germany
 Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED]
 Fax: +49-711-722 1835
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 it works success under tomcat5.5.4.you should conf a web.xml
 
 _
  MSN Messenger:  http://messenger.msn.com/cn
 
 
 -
 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: Does from a filter setCharacterEncoding work for tc-5.0.27?

2005-02-03 Thread Zsolt Koppany

Here is my code. It doesn't matter what the variable encoding contains. I
didn't write it in my previous email but I don't have problems with forms (I
use struts) but with links that contain parameters encoded in UTF8.


public void doFilter(ServletRequest request,
ServletResponse response, FilterChain chain)
throws IOException,ServletException
{
dump(request, response);
   }

protected void dump(ServletRequest request, ServletResponse
response)
{
try
{
String encoding = ISO8859-1;
encoding = UTF8;
request.setCharacterEncoding(encoding);
response.setCharacterEncoding(encoding);
}
catch (UnsupportedEncodingException e)
{
log.error(e);
}
for (Enumeration en = request.getParameterNames();
 en.hasMoreElements(); )
{
String pn = (String)en.nextElement();
String pv = request.getParameter(pn);
log.debug(Parameter  + pn +  value:  + pv +
);
}
}

 -Original Message-
 From: Guy Katz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 03, 2005 10:17 AM
 To: Tomcat Users List
 Subject: RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
 
 i used TC 5.0.19,0.25,0.27 0.30 with a UTF-8 encoding filter (setting
 request and response encoding) and i never had any problems :) (and of
 course i use a language that cannot be represented with latin-1).
 
 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 03, 2005 11:07 AM
 To: 'Tomcat Users List'
 Subject: RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
 
 
 Thank you, but we cannot move to 5.5.4. How can I do the same with
 tc-5.0.27?
 
 Zsolt
 
  -Original Message-
  From: A jie [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 03, 2005 2:44 AM
  To: tomcat-user@jakarta.apache.org
  Subject: RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
 
 
 
 
 
  --
   MSN:[EMAIL PROTECTED]
   QQ:29967409
  -
 
 
 
 
  From: Zsolt Koppany [EMAIL PROTECTED]
  Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
  To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
  Subject: Does from a filter setCharacterEncoding work for tc-5.0.27?
  Date: Wed, 2 Feb 2005 15:33:07 +0100
  
  Hi,
  
  Does setCharacterEncoding work under tc-5.0.27 with java-1.4.2-06? To
 get
  UTF-8 request parameter I need to do:
  
  String par = request.getParameter(filename);
  String filename = new String(par.getBytes(ISO8859-1), UTF-8);
  
  request.setCharacterEncoding(UTF-8) doesn't seem to help from a
 filter.
  
  Is it my mistake?
  
  
  Zsolt Koppany
  Phone: +49-711-722 1874
  --
  Intland Software GmbH, Schulze-Delitzsch-Strasse 16
  D-70565 Stuttgart, Germany
  Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED]
  Fax: +49-711-722 1835
  
  
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  it works success under tomcat5.5.4.you should conf a web.xml
 
  _
   MSN Messenger:  http://messenger.msn.com/cn
 
 
  -
  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]



Does from a filter setCharacterEncoding work for tc-5.0.27?

2005-02-02 Thread Zsolt Koppany
Hi,

Does setCharacterEncoding work under tc-5.0.27 with java-1.4.2-06? To get
UTF-8 request parameter I need to do:

String par = request.getParameter(filename);
String filename = new String(par.getBytes(ISO8859-1), UTF-8);

request.setCharacterEncoding(UTF-8) doesn't seem to help from a filter.

Is it my mistake?


Zsolt Koppany
Phone: +49-711-722 1874
--
Intland Software GmbH, Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart, Germany
Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED]
Fax: +49-711-722 1835

 




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



Do the Hotspot fixes in jvm-1.4.2_07-b05 affect tomcat-5.0.27

2005-01-31 Thread Zsolt Koppany
Hi,

At the url below you can see several fixes in jvm-1.4.2_07-b05. Do theses
problems affect also tomcat-5.0.27? Should we upgrade from 1.4.2_06-b03 to
1.4.2_07-b05?

http://java.sun.com/j2se/1.4.2/ReleaseNotes.html#bugparade

Zsolt



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



Strange memory behavior in tomcat-5.0.27

2004-12-15 Thread Zsolt Koppany
Hi,

Our application based on Tomcat has a strange memory behavior on Linux (SuSe
8.1 kernel: 2.4.20 #1 SMP). The utility top shows RSS between 132-160MB
but SIZE is increasing. After one or two weeks SIZE is approx. 180M and than
we get an OutOfMemory exception and SIZE drops to 159M.

I have tested the application with Borland's optimizeit but found no memory
leak. Any ideas?

TC: 5.0.27
Jre: build 1.4.2_06-b03 with the switches:

-Djava.awt.headless=true -Xmx75M -XX:MaxHeapFreeRatio=40
   -XX:MinHeapFreeRation=60

The script that starts java also contains:

export LD_ASSUME_KERNEL=2.2.5


Zsolt



Zsolt Koppany
Phone: +49-711-722 1874
--
Intland Software GmbH, Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart, Germany
Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED]
Fax: +49-711-722 1835

 




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



RE: Strange memory behavior in tomcat-5.0.27

2004-12-15 Thread Zsolt Koppany
How can I do a load test?

Zsolt

 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 15, 2004 1:01 PM
 To: Tomcat Users List
 Subject: Re: Strange memory behavior in tomcat-5.0.27
 
 On Wed, Dec 15, 2004 at 10:22:15AM +0100, Zsolt Koppany wrote:
 : Our application based on Tomcat has a strange memory behavior on Linux
 (SuSe
 : 8.1 kernel: 2.4.20 #1 SMP). The utility top shows RSS between 132-
 160MB
 : but SIZE is increasing. After one or two weeks SIZE is approx. 180M and
 than
 : we get an OutOfMemory exception and SIZE drops to 159M.
 :
 : I have tested the application with Borland's optimizeit but found no
 memory
 : leak. Any ideas?
 
 If there's no resource leak, then your app just needs more memory.  What
 happens if you increase the heap and do a load test?
 
 
 -QM
 
 --
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 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]



Which Java profiler for tomcat?

2004-12-15 Thread Zsolt Koppany
Hi,

which profiler should I take to test our tomcat (5.0.27) based application?

Zsolt




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



RE: Tomcat locking up, not responding to requests

2004-11-21 Thread Zsolt Koppany
Check release notes!

export LD_ASSUME_KERNEL=2.2.5
...
Start tomcat

Zsolt

 -Original Message-
 From: Ben Simon [mailto:[EMAIL PROTECTED]
 Sent: Sunday, November 21, 2004 3:48 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat locking up, not responding to requests
 
 Howdy All,
 
 I'm running Tomcat 5.0.28, on Linux (RedHat 9, kernel: 2.4.20-8smp) with
 java 1.4.2_06-b03 (from SUN) on a dual processor Intel box and seeing
 very odd behavior.  I'll start up tomcat, and use it to test/author a
 web application (struts based). At the end of the day, I'll leave the
 server running and go home. The next morning, I'll come in and try to
 hit the server, only to have any HTTP requests I make to it simply hang.
 They aren't rejected, timed out, or cause an exception. The requests
 just hang.
 
 The load on the server is low and there appears to be plenty of memory
 available (-Xms100M, -Xmx256M).  There aren't any messages in the
 logs. When I do a `kill -3' on the process I get a stack trace (included
 below) and all the threads seem to be waiting for a connection.  Yet, the
 server simply hangs.  The only way I have found to proceed is to kill -9
 the process and to start it up again.
 
 This is so odd. It appears as though simply leaving the machine alone
 (without any load or activity) eventually causes the server to lock up.
 
 It's also worth mentioning I've seen this behavior on at least two
 different machines, so I'm confident that the issue isn't just bad
 hardware.
 
 Anyone ever seen anything like this before?
 
 Thanks in advance,
 Ben Simon
 
 [Stack trace from a hung server]
 Full thread dump Java HotSpot(TM) Client VM (1.4.2_06-b03 mixed mode):
 
 NonBlockingPmapSerializer Worker: CampaignDaoFactory daemon prio=1
 tid=0x5b510d40 nid=0x7b3 in Object.wait() [5b9ff000..5b9ff198]
   at java.lang.Object.wait(Native Method)
   at com.amazingmedia.sync.Daemon.daemonSleep(Daemon.java:331)
   - locked 0x4651ba48 (a com.amazingmedia.sync.Daemon)
   at com.amazingmedia.sync.Daemon.access$6(Daemon.java)
   at com.amazingmedia.sync.Daemon$DaemonThread.run(Daemon.java:365)
 
 NonBlockingPmapSerializer Worker: DirectoryDaoFactory daemon prio=1
 tid=0x5b513cc0 nid=0x7b3 in Object.wait() [5b97f000..5b97f218]
   at java.lang.Object.wait(Native Method)
   at com.amazingmedia.sync.Daemon.daemonSleep(Daemon.java:331)
   - locked 0x4651bab8 (a com.amazingmedia.sync.Daemon)
   at com.amazingmedia.sync.Daemon.access$6(Daemon.java)
   at com.amazingmedia.sync.Daemon$DaemonThread.run(Daemon.java:365)
 
 NonBlockingPmapSerializer Worker: SimpleStorageService daemon prio=1
 tid=0x5b506ba8 nid=0x7b3 in Object.wait() [5b8ff000..5b8ff298]
   at java.lang.Object.wait(Native Method)
   at com.amazingmedia.sync.Daemon.daemonSleep(Daemon.java:331)
   - locked 0x464863e8 (a com.amazingmedia.sync.Daemon)
   at com.amazingmedia.sync.Daemon.access$6(Daemon.java)
   at com.amazingmedia.sync.Daemon$DaemonThread.run(Daemon.java:365)
 
 http-8453-Monitor prio=1 tid=0x0851ed88 nid=0x7b3 in Object.wait()
 [5b87f000..5b87f318]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x463fc900 (a
 org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
   at
 org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.j
 ava:559)
   - locked 0x463fc900 (a
 org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
   at java.lang.Thread.run(Thread.java:534)
 
 http-8453-Processor4 daemon prio=1 tid=0x086d01b0 nid=0x7b3 runnable
 [5b7ff000..5b7ff398]
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
   - locked 0x45d2f2d0 (a java.net.PlainSocketImpl)
   at java.net.ServerSocket.implAccept(ServerSocket.java:448)
   at
 com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(DashoA12275)
   at
 org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketF
 actory.java:110)
   at
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.ja
 va:368)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
 ava:683)
   at java.lang.Thread.run(Thread.java:534)
 
 http-8453-Processor3 daemon prio=1 tid=0x08523d28 nid=0x7b3 in
 Object.wait() [5b77f000..5b77f418]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x463fcaf0 (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.j
 ava:655)
   - locked 0x463fcaf0 (a
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Thread.run(Thread.java:534)
 
 http-8453-Processor2 daemon prio=1 tid=0x08522cb8 nid=0x7b3 in
 Object.wait() [5b6ff000..5b6ff498]
   at 

Is -Dsun.io.useCanonCaches still necessary?

2004-11-02 Thread Zsolt Koppany
Hi,

is still necessary to use -Dsun.io.useCanonCaches in the command line to
start tomcat-5.0.27? What is -Dsun.io.useCanonCaches for?

Zsolt




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



test, ignore it!

2004-10-23 Thread Zsolt Koppany
test

Zsolt



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



Strange Runtime maxMemory/totalMemory behavior under Red-Hat-8.0 and Suse-8.1

2004-10-18 Thread Zsolt Koppany
Hi,

I find it strange that when I start TC-5.0.27 (with our extensions) on
Red-Hat-8.0 and Suse-8.1 Rumtime.maxMemory() returns a value that is the
same as Rumtime.totalMemory() just after a couple of minutes and the
application doesn't do too much.

On Fedora-1 the same application (the application is just copied, thus no
compilation takes place) reports much less Rumtime.maxMemory() than
Rumtime.totalMemory() even after days.

Can somebody explain what the reason is?

jdk: 1.4.2-05

I start java with -Xmx100M.

Red-Hat-8.0:2.4.18-14
SuSe-8.1:   2.4.20 #1 SMP
FC-1:   2.4.22-1.2115.nptlsmp

Zsolt



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



HttpSessionListener- HttpSessionAttributeListener problems under TC-5.0.27,RedHat-7.2 and jdk-1.4.02_05?

2004-10-06 Thread Zsolt Koppany
Hi,

we have the impression that either sessionDestroyed or attributeRemoved
methods are not always called under RH-7.2. We are not sure but we think we
didn't have the problem until this server got a new kernel with 4
processors. Tomcat (except this issue) is absolute stable even after days.

Any ideas?

Platform: TC-5.0.27,RedHat-7.2 and jdk-1.4.02_05

Zsolt




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



RE: Help, Tomcat 4.1.30, Linux Stops responding after 24-48 hours

2004-09-15 Thread Zsolt Koppany
Have you tried:

export LD_ASSUME_KERNEL=2.2.5   # GLIBC 2.2 / Linux 2.4 (For example
SuSe-8.0)
export LD_ASSUME_KERNEL=2.4.1   # Red-Hat 9.0

We always use: export LD_ASSUME_KERNEL=2.2.5

Zsolt

 -Original Message-
 From: Tran, John [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 14, 2004 11:32 PM
 To: Tomcat Users List
 Subject: RE: Help, Tomcat 4.1.30, Linux Stops responding after 24-48
 hours


 Right, you don't need a lot of load to see this problem arise over time.
 Because the connections aren't cleaning themselves up, they're compiling
 over time.

 Do a 'netstat -an|grep your ajp13 port #|wc -l', and see if it only
 increases over time.  If it is not going down, than it most likely is
 the problem as described below.

 Since JK 1.2.0, cache_timeout and socket_timeout properties as been
 added to close connections after some time of inactivity, for more
 informations refer to Workers HowTo .

 -Original Message-
 From: John Gentilin [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 14, 2004 2:30 PM
 To: Tomcat Users List
 Subject: Re: Help, Tomcat 4.1.30, Linux Stops responding after 24-48
 hours

 The funny thing is there is no load on this server, maybe 100 hits/day
 go to the web application
 and maybe 10K hits/day to the Web server by itself.

 Another piece of the puzzle is that when Tomcat stops handling requests;

  I try to stop
 Tomcat with catalins.sh, it reports a success the first time, and no
 socket on subsequent tries
 as it should, but the process is still in my process list and needs to
 be removed with a kill -9

 After that if I run Tomcat again, without restarting anything else the
 system runs just fine


 Tran, John wrote:

 Are you using mod_jk?
 
 http://jakarta.apache.org/tomcat/connectors-doc/jk2/faq.html
 
 This *might* apply:
 
 Under heavy load, I've got many threads in Tomcat even if my Apache
 Web
 Server handle much of the load
 
 Under heavy load, Apache WebServer create many childs to handle the
 load, which will in turn create many connections to Tomcat to forward
 the requests they should handle. Apache WebServer will normally kill
 the
 childs/threads when the load decrease. But if the load is still there
 and even if only Apache handle the requests, ie static contents, the
 childs are kept and with them the ajp13 connections, even if they are
 no
 more used.
 
 Since JK 1.2.0, cache_timeout and socket_timeout properties as been
 added to close connections after some time of inactivity, for more
 informations refer to Workers HowTo .
 
 If so, I'm having the same problem.
 
 -Original Message-
 From: John Gentilin [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 14, 2004 1:22 PM
 To: Tomcat Users List
 Subject: Help, Tomcat 4.1.30, Linux Stops responding after 24-48 hours
 
 
 I have a fairly plain Tomcat install with one Web Application installed

 under RedHat 9.0.
 After about 24 - 48 hours, the whole Tomcat server stops responding and

 there are no errors
 in Catalina.out. It seems to of allocated VM ~ the size of physical
 memory, but none of the file
 report any VM memory errors. I have not yet  installed a debugger and
 run Tomcat in debug mode,
 tomcat is installed on a server that is a bit hard to get at the
 console. Also I am interested on how
 others would set out to diagnose a remote server problem like this.
 Any suggestions would be appreciated.
 
 Note: The same setup runs on a Windows / Tomcat server with out issue.
 
 tia
 John G
 
 



 -
 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]



Eclipse webdav plug-in with tomcat

2004-09-15 Thread Zsolt Koppany
Hi,

I tried to use the webdav plug-in of eclipse-3.0 with tomcat-5.0.27 but got
errors. Does the plug-in work with tomcat?

Zsolt



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



TC-5.0.27 and eclipse Java Compiler

2004-09-03 Thread Zsolt Koppany
Hi,

I have read that TC-5.5 can use the eclipse Java Compiler. Can I use this
compiler also with TC-5.0.27? If yes, how?

Zsolt




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



JNDI (password?) problem between Tomcat 5.0.27 and Lotus Domino LDAP (Version 5.0.12)

2004-08-25 Thread Zsolt Koppany
Hi,

we have a problem when we try to use the JNDI Realm from tomcat (5.0.27) to
access Lotus Domino LDAP (Version 5.0.12) server. According the logs the
user can be found but the binding is somehow not successful. We tried
binding and comparison modes. Unfortunately we cannot use anonymous binding.
Does anybody have an idea what we should do? We don't have any problems to
configure TC to use openldap or the SuSe Server but in this case we must use
the Domino server.

Zsolt

JNDIRealm[null]: lookupUser(sg40543) [http-8084-Processor23]
JNDIRealm[null]:   dn=uid=sg40543,o=SHG [http-8084-Processor23]
JNDIRealm[null]:   validating credentials by binding as the user
[http-8084-Processor23]
JNDIRealm[null]:   binding as uid=sg40543,o=SHG [http-8084-Processor23]
JNDIRealm[null]:   bind attempt failed [http-8084-Processor23]
JNDIRealm[null]: Username sg40543 NOT successfully authenticated
[http-8084-Processor23]

--
  parameter
  nameconnectionURL/name
  valueldap://BE-CCOPortal-LDAP.eu.lds.net:389/value
  /parameter

  parameter
  nameuserPattern/name
  valueuid={0},o=SHG/value
  /parameter

 parameter
  nameconnectionName/name
  valuecn=adminacnt,ou=BE,ou=USR,o=SHG/value
  /parameter

 parameter
  nameconnectionPassword/name
  valuemypassword/value
  /parameter
---





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



How to figure out the currently existing sessions?

2004-08-17 Thread Zsolt Koppany
Hi,

how can I figure out the currently existing sessions?

Zsolt



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



RealmBase NullPointerException from a filter

2004-07-20 Thread Zsolt Koppany
Hi,

from a Filter class I want to add a RealmBase object but I get the following
exception. From the source I think that I should set the container variable
of the Realm object but I don't know how I can figure out the correct
container.


ERROR catalina.realm.RealmBase - Can't register null
java.lang.NullPointerException
at org.apache.catalina.realm.RealmBase.init(RealmBase.java:1194)
at org.apache.catalina.realm.RealmBase.start(RealmBase.java:875)
at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:1564)
at cv.security.SecurityFilter.lookupRealm(SecurityFilter.java:267)
at cv.security.SecurityFilter.init(SecurityFilter.java:289)


Zsolt



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



Should I use jikes with tomcat-5.0.27?

2004-07-16 Thread Zsolt Koppany
Hi,

what are the experiences with jikes? Should I use it? What is the fastest
compiler? During development we modify a lot JSP files.

Zsolt



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



Editable double list boxes wanted

2004-06-30 Thread Zsolt Koppany
Hi,
this is probably not the best mailing list for my question but I need a 
dialog (very probably with javacript) where I can move items from one 
listbox into an other and backwards). Where can I find such an example?

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


Re: Editable double list boxes wanted

2004-06-30 Thread Zsolt Koppany
Thank you,
it looks very interesting.
Zsolt
Kunthar wrote:
Hi,
Go and check Matt Kruse lovely site: www.mattkruse.com
You'll find more tools then you want to. Calendar, sortable table, 
editable listboxes.
And if you enjoy to use the tools please donate to him.
Because the code is clean, well organized and very well explained.

btw; I don't know him personally :=)
Take care.
Gokhan
Zsolt Koppany wrote:
Hi,
this is probably not the best mailing list for my question but I need 
a dialog (very probably with javacript) where I can move items from 
one listbox into an other and backwards). Where can I find such an 
example?

Zsolt
-
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 Hung!!! Help needed

2004-05-25 Thread Zsolt Koppany
Did you try:

export LD_ASSUME_KERNEL=2.2.5

... start tomcat now

Zsolt

 -Original Message-
 From: Innovest Ken [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 25, 2004 6:08 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat Hung!!! Help needed
 
 
 hello all,
 
 Currently, I have Tomcat 4.1.30 running on Linux
 Redhat 9, using jdk 1.4.2_03. It is now running live
 and every day it will hang at least once. We are
 unable to see any error message in the log file. The
 site is having a hit of 20 request per second with
 most of the requests need the database connection.
 
 I did a thread dump before the tomcat hangs, but it is
 too big to be displayed here.
 
 I can post any more info upon request. Any help???
 Thanks
 
 Here is part of the server.xml:
 
 Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
 acceptCount=150 bufferSize=2048 compression=off
 connectionLinger=-1 connectionTimeout=2
 connectionUploadTimeout=30 debug=0
 disableUploadTimeout=true enableLookups=false
 maxKeepAliveRequests=100 maxProcessors=150
 minProcessors=50 port=80
 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
 proxyPort=0 redirectPort=8443 scheme=http
 secure=false serverSocketTimeout=0
 tcpNoDelay=true useURIValidationHack=false
   Factory
 className=org.apache.catalina.net.DefaultServerSocketFactory
 / 
   /Connector
 
 innovest
 
 
 
   
   
 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/ 
 
 -
 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 -install SERVICE-NAME problem with tomcat-5.0.19

2004-05-25 Thread Zsolt Koppany
Hi,

in tomcat-4.1.30, I could use tomcat -install (and -uninstall) SERVICE-NAME
to install/deinstall a service. The same command seems to do nothing with
tomcat-5.0.19. Has the syntax changed or what is the problem?

Zsolt



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



How to setup keystoreFile in server.xml for Tomcat-5.19

2004-05-24 Thread Zsolt Koppany
Hi,

I would like to define the path of keystoreFile in server.xml with a
relative path but the example below throws a FileNotFoundException. It does
work when I use absolute path (that I don't want to).

As far as I understand the documentation, if I use relative path it must be
relative to catalina.base.

What is my mistake?

I use tomcat-5.19 under Windows-XP

keystoreFile=webapps/srv/keystore
keystorePass=mypass

Zsolt



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



RE: IBM Java VS SUN Java

2004-04-14 Thread Zsolt Koppany
Hi,

sorry for the question but what does hyper-threaded mean?

Zsolt

 -Original Message-
 From: Nicholas Bernstein [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 8:55 PM
 To: Tomcat Users List
 Subject: RE: IBM Java VS SUN Java


 yes, dual hyper-threaded xeons.

 On Mon, 2004-04-12 at 12:02, Shapira, Yoav wrote:
  Hi,
  Was the linux box hyper-threaded?
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Nicholas Bernstein [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 12, 2004 2:50 PM
  To: Tomcat Users List
  Subject: IBM Java VS SUN Java
  
  Recently, we've been doing some load testing of apache (1.3.x) w/
  tomcat
  4.1.29  5.0.19 and were surprised at how slow it was responding on our
  redhat linux testbed system. We did some comparisons to a Win2k tomcat
  server, and the Win2k server *BLEW* it out of the water in terms of
  speed and load limits. After some mucking around, we narrowed down the
  difference to the java implementation. We switched over from sun's java
  jdk1.4.2_04 to IBMJava2-141 and saw some speed improvements and huge
  differences in load limits, i.e. it could scale much higher.
  
  I was wondering if anyone had experienced any problems due to switching
  to IBM's java, and if so what they were. Also, if anyone has any hints,
  links, or general advice on how to speed things up, be it tomcat
  tuning,
  or java, it would be very appreciated. The windows box, while not able
  to scale as well, does generally respond in 1/4 the time of the linux
  box.
  
  Thanks in Advance, any advice is appreciated.
  
  --
  +---+
  | Nicholas Bernstein| [EMAIL PROTECTED] |
  | UNIX Systems Administrator| http://www.docmagic.com   |
  | Document Systems Inc. |  |
  | gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3   |
  +---+
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  This e-mail, including any attachments, is a confidential
 business communication, and may contain information that is
 confidential, proprietary and/or privileged.  This e-mail is
 intended only for the individual(s) to whom it is addressed, and
 may not be saved, copied, printed, disclosed or used by anyone
 else.  If you are not the(an) intended recipient, please
 immediately delete this e-mail from your computer system and
 notify the sender.  Thank you.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 --
 +---+
 | Nicholas Bernstein| [EMAIL PROTECTED] |
 | UNIX Systems Administrator| http://www.docmagic.com   |
 | Document Systems Inc. | |
 | gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3  |
 +---+


 -
 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]



How to start a Realm from a servlet or a filter

2004-04-09 Thread Zsolt Koppany
Hi,

because of technical reasons I want to start a Realm class during run-time,
thus I cannot just configure Realm via Realm When I try to start
MemoryRealm I get a null pointer exception, because the container of Realm
is not set. The application does work (because I catch the exception) but I
would like to start Realm correctly.

What is wrong in my example?

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);

Object realm_instance = envCtx.lookup(realm/RealmFactory);
log.info(Realm class:  + realm_instance.getClass().getName());
Realm rlm = (Realm)realm_instance;
if (rlm instanceof Lifecycle)
{
try
{
// rlm.setContainer(...);   Is that the problem
((Lifecycle) rlm).start();
}
catch (Exception e)
{
log.error(LifecycleException (start):  + e.getMessage(), e);
}


Here is my web-application configuration file:


Context path=/cb docBase=cb debug=0 reloadable=true
Resources className=org.apache.naming.resources.FileDirContext
allowLinking=false /

Resource name=realm/RealmFactory auth=Container
type=org.apache.catalina.realm.MemoryRealm/
ResourceParams name=realm/RealmFactory
parameter
namefactory/name
valueorg.apache.naming.factory.BeanFactory/value
/parameter
parameter
namedebug/name
value99/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams

 /Context



Zsolt Koppany
Phone: +49-711-722 1874
--
Intland Software GmbH, Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart, Germany
Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED]
Fax: +49-711-722 1835





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



RE: How to start a Realm from a servlet or a filter

2004-04-09 Thread Zsolt Koppany
Hi Yoav,

 
 How authoritative and conclusive.  And wrong.  Realms and all other
 tomcat internals are accessible to any code you write.  You just have to
 mark your webapp as privileged and in some instances (depending on your
 code) place portions of your code in the common rather than your
 webapp's classloader.

And how can I access or start a Realm?

Zsolt

 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, and 
 may not be saved, copied, printed, disclosed or used by anyone 
 else.  If you are not the(an) intended recipient, please 
 immediately delete this e-mail from your computer system and 
 notify the sender.  Thank you.
 
 
 -
 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: How to start a Realm from a servlet or a filter

2004-04-09 Thread Zsolt Koppany
Yoav,

I have written this code, but srv is always an empty array.

I use tomcat-5.0.19

Server server = ServerFactory.getServer();
Service service = server.findService(Catalina);
Service[] srv = server.findServices();
for (int i = 0; i  srv.length; i++)
{
Service s = srv[i];
log.debug(SERVICE:  + s.getName());
}

Zsolt

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 09, 2004 7:00 PM
 To: Tomcat Users List
 Subject: RE: How to start a Realm from a servlet or a filter
 
 
 
 Hi,
 
 And how can I access or start a Realm?
 
 What is up with this list?  Do people don't know how to read JavaDocs,
 or do they simply not care?  Sigh...
 
 Server server = ServerFactory.getServer();
 Service service = server.findService(Catalina);
 Container serviceContainer = service.getContainer();
 Realm serviceRealm = serviceContainer.getRealm(); // May be null
 
 You would/can continue to drill down from the service using findChildren
 to locate Engine/Host/Context elements and their associated Realms, if
 any.
 
 As to how to start one: look at the tomcat startup code, that's why it's
 open-source.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, and 
 may not be saved, copied, printed, disclosed or used by anyone 
 else.  If you are not the(an) intended recipient, please 
 immediately delete this e-mail from your computer system and 
 notify the sender.  Thank you.
 
 
 -
 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]



How to find the Realm of my application?

2004-04-06 Thread Zsolt Koppany
Hi,

how can I find the Realm of my tomcat application from a servlet or a
filter? The reason is I want to call the authenticate method depending on
application logic.

I use tomcat-5.

Zsolt




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



RE: How to configure the default webapplication (ROOT)?

2004-04-05 Thread Zsolt Koppany
Hi Yoav,

I understand that, but my application must sometimes run in context path=
sometimes context path=/abc and I must refer images in
ApplicationResources.properties such as IMG SRC= ... and that depends
of course on context path.

I would prefer a solution that the applications always uses a context
path=/abc but the user just can enter an URL: http://localhost:8080

How can I solve that problem?

Zsolt

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 05, 2004 2:46 PM
 To: Tomcat Users List
 Subject: RE: How to configure the default webapplication (ROOT)?



 Hi,
 The default web application is the one whose context path= (the
 empty string).  ROOT is nothing special.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
 Sent: Sunday, April 04, 2004 5:31 AM
 To: Tomcat Users List
 Subject: How to configure the default webapplication (ROOT)?
 
 Hi,
 
 how can I configure tomcat (4,5) which application under (webapps) is
 the
 default one? I understand that is right now ROOT and I would like to
 modify that the user doesn't always have to enter the context path.
 
 Zsolt
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential
 business communication, and may contain information that is
 confidential, proprietary and/or privileged.  This e-mail is
 intended only for the individual(s) to whom it is addressed, and
 may not be saved, copied, printed, disclosed or used by anyone
 else.  If you are not the(an) intended recipient, please
 immediately delete this e-mail from your computer system and
 notify the sender.  Thank you.


 -
 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]



How to configure the default webapplication (ROOT)?

2004-04-04 Thread Zsolt Koppany
Hi,

how can I configure tomcat (4,5) which application under (webapps) is the
default one? I understand that is right now ROOT and I would like to
modify that the user doesn't always have to enter the context path.

Zsolt



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



Why URLConnection parameters are decoded incorrectly?

2004-01-15 Thread Zsolt Koppany
Hi,

from a java application I build an URL and encode the URL parameters with
URLEncoder.encode(str, UTF-8) and than I create a connection with:

URLConnection uconn = URL.openConnection();
InputStream inputStream = uconn.getInputStream();
...

In the tomcat (4.1.29) servlet I always call:
request.setCharacterEncoding(UTF-8)

but I still need:
new String(value.getBytes(ISO-8859-1), UTF-8);

to get the passed parameter correctly.

What is my mistake?


I use jdk-1.4.2_02 Windows-Xp.

Zsolt




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



RE: Problem....Hangs up

2003-12-26 Thread Zsolt Koppany
If you use Redhat-9 you might need

export LD_ASSUME_KERNEL=2.4.1

before you start tomcat.

Zsolt

 -Original Message-
 From: Chelisant Pavel [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 24, 2003 2:10 PM
 To: [EMAIL PROTECTED]
 Subject: ProblemHangs up


 Good day!
 Ive got Tomcat running as stand-alone web server + Java
 Tomcat configured with SSL connector on port 443.
 Its all ok.. and working properly..
 But after three - four days of working it quits process user
 requests.. and hangs-up..

 ---
 server.xml config file

 !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=443
minProcessors=5 maxProcessors=1
enableLookups=false compression=force
connectionLinger=3 connectionTimeout=12
acceptCount=2000 debug=0 scheme=https secure=true
useURIValidationHack=false disableUploadTimeout=false

Factory
 className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
clientAuth=false keystorePass=tomcat
 keystoreFile=/home/tomcat/keystore/.keystore protocol=
 TLS /
 /Connector

 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=1
enableLookups=false redirectPort=8443
acceptCount=2000 debug=0

 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 --




 Here the log files i got..


 its Linux top ( take notice of memory usage and size )

  11:24:28  up 27 days, 23:05,  1 user,  load average: 0.82, 0.44, 0.17
 1049 processes: 1048 sleeping, 1 running, 0 zombie, 0 stopped
 CPU states:   0.9% user  89.4% system   0.0% nice   0.0% iowait
 9.5% idle
 Mem:   516724k av,  511824k used,4900k free,   0k shrd,
 31640k buff
298968k active, 193000k inactive
 Swap: 1044216k av,  487764k used,  556452k free
  9448k cached


   PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
  10604 root  17   0  2392 2392   888 R90.2  0.4   5:22   0 top
  7757 root   9   0  558M 433M  352M S 0.0 85.8   3:30   0 java

 here netstat -a
 

 tcp0  0 update.registru.m:https 192.168.150.249:59726
   TIMA_WAIT
 . thousands of unclosed connections
 tcp0  0 update.registru.m:https 192.168.150.249:59780
   TIME_WAIT

 Why this connections are still open? But in that period i havent
 got users used my server...


  ---here
 logs--



   11:28:19  up 27 days, 23:09,  1 user,  load average: 0.89, 0.69, 0.33
  File: localhos~-23.txt  Col 0  21726 bytes
  0%
  2003-12-23 15:11:08 ApplicationDispatcher[] Servlet.service()
 for servlet jsp threw exception
  org.apache.jasper.JasperException: Connection has been shutdown:
 javax.net.ssl.SSLException: java.net.SocketExce
  ption: Broken pipe
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:248)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD
 ispatcher.java:684)
  at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(Applicati
 onDispatcher.java:575)
  at
 org.apache.catalina.core.ApplicationDispatcher.include(Application
 Dispatcher.java:498)
  at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibr
 ary.java:822)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:95)
  at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:204)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 pplicationFilterChain.java:247)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterChain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.java:260)
  at
 

Can large upload cause tomcat hanging?

2003-12-10 Thread Zsolt Koppany
Hi,

I uploaded a 70Mb file using struts-1.1. The JVM process (jre-1.2.4_02,
Linux, SuSe-8.1) got much larger and a couple of hours later tomcat didn't
react to the most of the events. What can be the reason?
Additionally I found strange the tomcat didn't create the localhost_log...
files since the last startup.

Here I are the data provided by top:

SIZE: 175M RSS: 165M SHARE: 38980 STAT: S N %CPU: 0.0% %MEM: 33.3 TIME 0:05

The machine has 512Mb.

Zsolt



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



Can large upload cause tomcat hanging?

2003-12-10 Thread Zsolt Koppany
Hi,

I uploaded a 70Mb file using struts-1.1. The JVM process (jre-1.2.4_02,
Linux, SuSe-8.1) got much larger and a couple of hours later tomcat didn't
react to the most of the events. What can be the reason?
Additionally I found strange the tomcat didn't create the localhost_log...
files since the last startup.

Here I are the data provided by top:

SIZE: 175M RSS: 165M SHARE: 38980 STAT: S N %CPU: 0.0% %MEM: 33.3 TIME 0:05

The machine has 512Mb.

Zsolt



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



RE: Tomcat-4.1.24 Hangs

2003-12-08 Thread Zsolt Koppany
Hi David,

the process itself is alive, because there are some log messages, the server
just cannot be connected neither by a browser nor by telnet.

Zsolt

 -Original Message-
 From: David Rees [mailto:[EMAIL PROTECTED]
 Sent: Sunday, December 07, 2003 8:23 PM
 To: Tomcat Users List
 Subject: Re: Tomcat-4.1.24 Hangs


 Zsolt Koppany wrote:
  after two days my tomcat-4.1.24 hangs. I cannot connect to the
 server not
  even with telnet localhost 8080. The Process (JVM) is not big, it is
  approx 100Mb.
 
  Any ideas why?
 
  TC is running under RedHat-9.0 with Sun Jre-1.4.2_02.

 Send the process a QUIT signal to see where it is hung.  Also try
 upgrading to 4.1.29, it fixes an issue where Tomcat can hang under high
 load patterns.

 -Dave

 -
 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-4.1.24 Hangs

2003-12-08 Thread Zsolt Koppany
Hi Ryan,

thank you. What is NPTL?

Zsolt

 -Original Message-
 From: Ryan Lissack [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 08, 2003 9:59 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat-4.1.24 Hangs
 
 
 Hi,
 
 Probably has to do with NPTL in RedHat 9.
 
 Try setting the following environment variable:
 LD_ASSUME_KERNEL=2.4.1
 
 That should stop the hanging.  Search the list for further details.
 
 Ryan
 
 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
 Sent: 07 December 2003 17:30
 To: Tomcat Users List
 Subject: Tomcat-4.1.24 Hangs
 
 
 Hi,
 
 after two days my tomcat-4.1.24 hangs. I cannot connect to the server not
 even with telnet localhost 8080. The Process (JVM) is not big, it is
 approx 100Mb.
 
 Any ideas why?
 
 TC is running under RedHat-9.0 with Sun Jre-1.4.2_02.
 
 Zsolt
 
 
 
 -
 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]



Tomcat-4.1.24 Hangs

2003-12-07 Thread Zsolt Koppany
Hi,

after two days my tomcat-4.1.24 hangs. I cannot connect to the server not
even with telnet localhost 8080. The Process (JVM) is not big, it is
approx 100Mb.

Any ideas why?

TC is running under RedHat-9.0 with Sun Jre-1.4.2_02.

Zsolt



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



Cannot connect to tomcat-5.0.16 via SSL

2003-12-06 Thread Zsolt Koppany
Hi,

I get an error message when I try to connect to tomcat-5.0.16 from mozilla
via SSL:

localhost has received an incorrect or unexpected message. Error
Code: -12229.

I don't have this problem with tc-4.1.24. How can I fix it?


I have modified server.xml as follows:

Connector port=8443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS

keystoreFile=C:\DOKUME~1\zk\EIGENE~1\CB\tomcat\cb\config\keystore
keystorePass=xxx/


Zsolt



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



What is jakarta-tomcat-5.0.16-embed.zip ?

2003-12-05 Thread Zsolt Koppany
Who should download jakarta-tomcat-5.0.16-embed.zip? What is the difference
compared to

Zsolt



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



Tomcat 5.0.16 is still Beta or final

2003-12-04 Thread Zsolt Koppany
Hi,

I wanted to download tomcat 5.0.16 but at
http://jakarta.apache.org/site/sourceindex.cgi I see 5.0.16 Beta zip. Is
5.0.16 still Beta or is it really stable?

Zsolt



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



How to send URL?

2003-12-04 Thread Zsolt Koppany
Hi,

I have modified the webdav servlet of tomcat-4.1.24 (I have the same problem
with 5.0.16) and everything seems to be fine. The only problem (as far as I
know) when I try to open a directory containing German Umlauts for example
hellö. The Windows XP webfolder client doesn't even send a request to tomcat
when I doubleclick on directory (to open it), it claims that the resource is
not valid any more (this my translation). From the servlet I send the
following URL and my question how I can fix the problem:


responsehrefhttp://localhost:8080/webfolder/jdiff/jdiff/hell%C3%B6//hre
f
propstatpropcreationdate2003-12-04T17:03:44Z/creationdate
displayname![CDATA[hellö]]/displayname
resourcetypecollection//resourcetype
/prop
statusHTTP/1.1 200 OK/status
/propstat
propstatpropname/parentname/href/ishidden/isreadonly/getconte
nttype/contentclass/getcontentlanguage/lastaccessed/getlastmodified/
getcontentlength/iscollection/isstructureddocument/defaultdocument/
isroot//prop
statusHTTP/1.1 404 Not Found/status
/propstat
/response

Zsolt



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



How to get the list of active sessions?

2003-11-13 Thread Zsolt Koppany
Hi,

I would like to know how is currently logged in, thus I need the list the
active sessions. How can I cet that?

Zsolt



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



Wanted API to handle user roles

2003-11-03 Thread Zsolt Koppany
Hi,

I'm searching for a Java library to implement Role based access in a Web
application. This API must support some kind of hierarchy. For example a
user might have all roles in a project (project administrator) but only
limited (or no) roles in an other project.

As far as I know, tomcat supports only user based roles, thus a user has a
role assigned to him everywhere.

Any suggestion?

Zsolt



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



Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Zsolt Koppany
Hi,

in a form where the user can upload a file and set some attributes with
checkbox (couple oh hundreds) I get an out of memory exception even when the
file is very small (300 bytes). After some testing I figured out that it is
caused by enctype=multipart/form-data. If I removed that I cannot upload
(this is clear) but JVM doesn't increase.

Any ideas?

Zsolt



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



RE: Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Zsolt Koppany
Chris,

I work with struts-1.1.

Zsolt

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: Out of memory with multipart/form-data and lot of
checkboxes


Zsolt,
 in a form where the user can upload a file and set some attributes with
 checkbox (couple oh hundreds) I get an out of memory exception even when
the
 file is very small (300 bytes). After some testing I figured out that it
is
 caused by enctype=multipart/form-data. If I removed that I cannot upload
 (this is clear) but JVM doesn't increase.

How are you handling the file upload? There are several existing
multipart form handlers out there... did you roll your own?

-chris


-
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]



How to use jar files from CLASSPATH

2003-10-10 Thread Zsolt Koppany
Hi,

my application has to use DB2 JDBC that is in the CLASSPATH. How can I get
tomcat-4.1.24 to search for entries from CLASSPATH?

I understand that I could probably copy the entries from CLASSPATH into
.../WEB-INF/lib, but this JDBC driver does use native libraries, thus I
would not like to copy them into .../WEB-INF/lib.

This is how CLASSPATH is defined after DB2 installation:

.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\commo
n.jar

As you can see there is even a directory in CLASSPATH (that contains a lot
of files).


Zsolt



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



How to use jar files from CLASSPATH

2003-10-10 Thread Zsolt Koppany
Hi,

my application has to use DB2 JDBC that is in the CLASSPATH. How can I get
tomcat-4.1.24 to search for entries from CLASSPATH?

I understand that I could probably copy the entries from CLASSPATH into
.../WEB-INF/lib, but this JDBC driver does use native libraries, thus I
would not like to copy them into .../WEB-INF/lib.

This is how CLASSPATH is defined after DB2 installation:

.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\commo
n.jar

As you can see there is even a directory in CLASSPATH (that contains a lot
of files).


Zsolt



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



tomcat 4.1.27 log4j problem

2003-08-14 Thread Zsolt Koppany
Hi,

my application uses log4j and with tomcat 4.1.27 (but not with 4.1.24) I
get the following error message:


log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.

How can I fix this problem?


Zsolt



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



JSP compilation problem with tc-4.1.27 if reloadable=true

2003-08-14 Thread Zsolt Koppany
Hi,

I have just moved from tc-4.1.24 to 27 and have the following problem:

In Context .../Context I set reloadable=true. After a Java class
file re-compiled and I try to use any JSP pages I always get compilation
error messages saying the some classes cannot be found in the classpath.
When I restart tomcat everything works fine. I have been using 4.1.24
very long and have never had this problem.

Any ideas?

Zsolt


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



Strange error message in catalina.out

2003-08-14 Thread Zsolt Koppany
Hi,

when I execute shutdown.sh I get strange error messages in
catalina.out. How can I fix it?

I use tc-4.1.24 von RedHat-9.

Zsolt



SEVERE: Caught exception trying to unlock accept.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.init(Unknown Source)
at java.net.Socket.init(Unknown Source)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:326)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Unknown Source)
Aug 10, 2003 11:03:55 AM org.apache.tomcat.util.net.PoolTcpEndpoint
closeServerSocket
SEVERE: Caught exception trying to close socket.
java.lang.NullPointerException
at
org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:338)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Unknown Source)
Aug 10, 2003 11:03:55 AM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket



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



RE: How to configure to use tomcat and struts to use log4j?

2003-08-12 Thread Zsolt Koppany
Hi Shapira,

that is what I get when log4.jar is in my .../WEB-INF/lib.

struts.jar is also in my .../WEB-INF/lib. Can that cause the problem?
How can I fix that?

Zsolt

javax.servlet.ServletException: Error instantiating servlet class
org.apache.struts.action.ActionServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:912)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at
org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)


On Wed, 2003-08-06 at 22:01, Shapira, Yoav wrote:
 Howdy,
 
 I have tried so many things to use log4j from tomcat and struts and
 finaly I found the solution that I have to copy log4.jar into
 common/lib
 server/lib and application/WEB-INF/lib (to be able to get jsp files
 compiled). I find it a bit complicated that I have to copy the same jar
 file into three different directories.
 
 Is there a better way?
 
 Simply put log4j.jar in WEB-INF/lib, and your log4j configuration file
 in WEB-INF/classes.  That's it.  Don't have copies of log4j in
 commons/lib or server/lib, nor a log4j configuration file there.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 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: How to configure to use tomcat and struts to use log4j?

2003-08-10 Thread Zsolt Koppany
Jon,

I have found commons-logging.jar in two directories:
application/WEB-INF/lib/commons-logging.jar
server/lib/commons-logging.jar

struts.jar is also in application/WEB-INF/lib

Any ideas?

Zsolt


On Thu, 2003-08-07 at 12:49, Jon Wingfield wrote:
 Looks like Struts has a dependency on Commons Logging which is using 
 Log4j under the hood. The commons logging jar is being loaded from a 
 higher level classloader (common/lib or server/lib) and can't access 
 classes only provided by a lower classloader (your webapp).
 
 Maybe try having the commons logging jar in your WEB-INF/lib.
 Where is the struts jar you're using? WEB-INF/lib or higher?
 
 Jon
 
 Zsolt Koppany wrote:
 
  Hi Shapira,
  
  that is what I get when log4.jar is in my .../WEB-INF/lib.
  
  struts.jar is also in my .../WEB-INF/lib. Can that cause the problem?
  How can I fix that?
  
  Zsolt
  
  javax.servlet.ServletException: Error instantiating servlet class
  org.apache.struts.action.ActionServlet
  at
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:912)
  at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
  at
  org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
  at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at
  org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
  - Root Cause -
  java.lang.NoClassDefFoundError: org/apache/log4j/Layout
  at
  org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
  at
  org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)
  at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
  at
  org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
  Source)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)
  at java.lang.reflect.Constructor.newInstance(Unknown Source)
  at java.lang.Class.newInstance0(Unknown Source)
  at java.lang.Class.newInstance(Unknown Source)
  at
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903)
  at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
  at
  org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
  at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at
  org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  
  
  On Wed, 2003-08-06 at 22:01, Shapira, Yoav wrote:
  
 Howdy,
 
 
 I have tried so many things to use log4j from tomcat and struts and
 finaly I found the solution that I have to copy log4.jar into
 
 common/lib
 
 server/lib and application/WEB-INF/lib (to be able to get jsp files
 compiled). I find it a bit complicated that I have to copy the same jar
 file into three different directories.
 
 Is there a better way?
 
 Simply put log4j.jar in WEB-INF/lib, and your log4j configuration file
 in WEB-INF/classes.  That's it.  Don't have copies of log4j in
 commons/lib or server/lib, nor a log4j configuration file there.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information

How to configure to use tomcat and struts to use log4j?

2003-08-07 Thread Zsolt Koppany
Hi,

I have tried so many things to use log4j from tomcat and struts and
finaly I found the solution that I have to copy log4.jar into common/lib
server/lib and application/WEB-INF/lib (to be able to get jsp files
compiled). I find it a bit complicated that I have to copy the same jar
file into three different directories.

Is there a better way?

Zsolt



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



Re: tomcat 4.1.27 log4j problem

2003-08-06 Thread Zsolt Koppany
Thank you Nathan.

Zsolt


On Wed, 2003-08-06 at 12:15, Nathan Coast wrote:
 if you use log4j on a tomcat-wide basis (ie 1 configuration for the 
 tomcat runtime and all your webapps), place your log4j.xml in 
 [tomcat-home]/shared/classes/
 
 if you use log4j on a per-webapp basis, make sure the log4j classes 
 aren't on the tomcat classpath and configure commons-logging to use jdk 
 logging (assuming you are using jdk 1.4).
 
 Zsolt Koppany wrote:
 
  Hi,
  
  my application uses log4j and with tomcat 4.1.27 (but not with 4.1.24) I
  get the following error message:
  
  
  log4j:WARN No appenders could be found for logger
  (org.apache.commons.digester.Digester).
  log4j:WARN Please initialize the log4j system properly.
  
  How can I fix this problem?
  
  
  Zsolt
  
  
  
  -
  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: Port 80, 8009 and 8080

2003-07-30 Thread Zsolt Koppany
Hi,

as far as I know, in this case tomcat must be started by the super-user
under Unix to bind a port  1024.

 In production, if you do not run Apache and run Tomcat alone as your 
 only webserver, you DISABLE the AJP connector on port 8009 and change 
 the HTTP connector on port 8080 to port 80, so that web users do not 
 have to type a port number on the URL.
 


Zsolt


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



Redirect an URL to webdav

2003-07-30 Thread Zsolt Koppany
Hi,

I use the WEBDAV implementation of tomcat and it works even for MS-Word
documents. My problem is as follows: the user comes via a normal browser
(for example Internet Explorer) and when he clicks on a word Document, I
don't want to start Word in Internet Explorer (because that the user
cannot save his modifications) but via WEBDAV. How can I do that? Can I
do with an URL redirect?

Zsolt


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



Is tomcat-4.1.24 stable with j2re1.4.2 under Linux and Windows?

2003-07-14 Thread Zsolt Koppany
Hi,

which jre should I prefer in production version for tomcat-4.1.24 under
Linux and Windows? j2re1.4.2 or j2re1.4.1_03?

Zsolt


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



How to force the proxy server to refresh the page?

2003-07-13 Thread Zsolt Koppany
Hi,

IE doesn't refresh some pages because of the proxy server. How can I get
the browser to refresh every page independently of the proxy server?

Zsolt


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



Html checker from a browser wanted?

2003-04-04 Thread Zsolt Koppany
Hi,

I used to use the tool quanta-plus under Linux KDE to check my pages from
a browser without the need first to save the page and start a utility. A
plug-in would be the best that is integrated into Mozilla or Internet
Explorer. Can somebody propose me a similar tool under Windows?

Zsolt



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



IE explorer refresh problem with tomcat-4.18

2003-03-27 Thread Zsolt Koppany
Hi,

when I open a webfolder (webdav) using tomcat-4.18 and change (double click)
the directory, IE refreshes only when I click on an other IE window. What is
the reason and how can I fix the problem?

I work with Windows XP-SP-1.
Zsolt


Zsolt Koppany
Intland Software GmbH
mailto:[EMAIL PROTECTED]
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Phone: +49-711-7221873
Fax:   +49-711-7871017





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



IE explorer refresh problem with tomcat-4.18

2003-03-27 Thread Zsolt Koppany
Hi,

when I open a webfolder (webdav) using tomcat-4.18 and change (double click)
the directory, IE refreshes only when I click on an other IE window. What is
the reason and how can I fix the problem?

I work with Windows XP-SP-1.
Zsolt


Zsolt Koppany
Intland Software GmbH
mailto:[EMAIL PROTECTED]
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Phone: +49-711-7221873
Fax:   +49-711-7871017





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



RE: Can't connect to X11 window server using '0:0' as the value ofthe display

2003-03-18 Thread Zsolt Koppany
Hi,

does it need modifications in the application or it will work with every AWT
dependent application?

Zsolt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Theodore Chen
Sent: Mittwoch, 19. März 2003 00:37
To: Tomcat Users List
Subject: Re: Can't connect to X11 window server using '0:0' as the value
ofthe display


Try running the Tomcat VM with the -Djava.awt.headless=true system
property (set it in an environment variable named CATALINA_OPTS).

On Tue, 2003-03-18 at 16:31, Georges Roux wrote:
 Hello everybody,

 Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01.

 I have a servlet which manipulate exif informations in jpg images.
 it works well but when I try to run it on tomcat it fails (error 500)

 I have the following error:
 Can't connect to X11 window server using '0:0' as the value of the
display

 What can I do?

 Georges


 -
 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]



Encoding problem with jikes with tomcat-4.1.18 under Windows

2003-03-13 Thread Zsolt Koppany
Hi,

I have configured tomcat (-Dbuild.compiler=jikes) to use jikes (1.18) under
Windows but I get an error because of encoding problems. I would like to
work with jikes because that is much faster than the built-in compiler. How
can I fix this issue?

Zsolt



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



Encoding problem with jikes with tomcat-4.1.18 under Windows

2003-03-13 Thread Zsolt Koppany
Hi,

I have configured tomcat (-Dbuild.compiler=jikes) to use jikes (1.18) under
Windows-XP but I get an error because of encoding problems. I would like to
work with jikes because that is much faster than the built-in compiler. How
can I fix this issue?


Zsolt Koppany
Intland Software GmbH
mailto:[EMAIL PROTECTED]
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Phone: +49-711-7221873
Fax:   +49-711-7871017





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



webdav search is not possible?

2003-01-21 Thread Zsolt Koppany
Hi,

when I create a webdav folder via tomcat-4.1.18 I cannot search for
files from my client. Does it depend on the tomcat implementation?
Normally when I select a directory I can search for files using the
right mouse and Search menu item. 
-- 
Zsolt


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




Webdav new directory refresh problem with tc-4.1.18

2003-01-14 Thread Zsolt Koppany
Hi,

when I create a new directory from a webdav client (MS explorer), the
new directory will be created but the client shows the new directory
only after a refresh. This error does NOT occur with tc-4.1.12 but with
tc.4.1.18. Any ideas why?


-- 
Zsolt


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




Re: Webdav new directory refresh problem with tc-4.1.18

2003-01-14 Thread Zsolt Koppany
I forgot to notice, that the bug happens only when tomcat-4.1.18 under
Windows-2000 runs and NOT under Linux.

On Tue, 2003-01-14 at 12:37, Zsolt Koppany wrote:
 Hi,
 
 when I create a new directory from a webdav client (MS explorer), the
 new directory will be created but the client shows the new directory
 only after a refresh. This error does NOT occur with tc-4.1.12 but with
 tc.4.1.18. Any ideas why?
-- 
Zsolt


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




WebDav Problems

2003-01-11 Thread Zsolt Koppany
Hi,

I use tomcat-4.1.18 and have the following problems with webdav. The
Windows Client (webdav folder) does not show the modification dates of
the files neither over the list nor for properties (I'm not sure whether
thats called properties because I use German Windows, but I mean
selecting a file and right mouse and the last menu entry to get info
about file such last modified size etc.). This happens with tomcat after
downloading and installation, thus we have done NO modification on
tomcat.
How can I get the date listed?

The second problem is that webdav does not work correctly (it gets
problems with directory names) when I change its url mapping. We have to
do that because we want to integrate webdav into our application. The
problems occur with the original tomcat-4.1.18 after modifying the url
mapping.
Any ideas how to solve this problem?

Zsolt

Modified web.xml
servlet-mapping
servlet-namewebdav/servlet-name
url-pattern/webdav/*/url-pattern
  /servlet-mapping

Original web.xml:
servlet-mapping
servlet-namewebdav/servlet-name
url-pattern//url-pattern
  /servlet-mapping
-- 
Zsolt


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




Re: WebDav Problems

2003-01-11 Thread Zsolt Koppany
I have the problem under Windows-98 and 2000.

If I understand you correctly you don't have this problem with tomcat
and slide and the client it W-2000. Is that correct?

Zsolt

On Sat, 2003-01-11 at 15:37, Andreas Probst wrote:
 Hi Zsolt,
 
 it might be, that it's a client problem, i.e. Webfolders isn't 
 working correctly. I had issues with Webfolders of Windows 98. 
 The same installation of Slide (which does WebDAV) worked on 
 Windows 2000 Webfolders. Unfortunately I can't tell you more 
 about this, it's just a thought.
 
 Andreas
 
 
 On 11 Jan 2003 at 14:52, Zsolt Koppany wrote:
 
  Hi,
  
  I use tomcat-4.1.18 and have the following problems with webdav.
  The Windows Client (webdav folder) does not show the modification
  dates of the files neither over the list nor for properties (I'm
  not sure whether thats called properties because I use German
  Windows, but I mean selecting a file and right mouse and the last
  menu entry to get info about file such last modified size etc.).
  This happens with tomcat after downloading and installation, thus
  we have done NO modification on tomcat. How can I get the date
  listed?
  
  The second problem is that webdav does not work correctly (it
  gets problems with directory names) when I change its url
  mapping. We have to do that because we want to integrate webdav
  into our application. The problems occur with the original
  tomcat-4.1.18 after modifying the url mapping. Any ideas how to
  solve this problem?
  
  Zsolt
  
  Modified web.xml
  servlet-mapping
  servlet-namewebdav/servlet-name
  url-pattern/webdav/*/url-pattern
/servlet-mapping
  
  Original web.xml:
  servlet-mapping
  servlet-namewebdav/servlet-name
  url-pattern//url-pattern
/servlet-mapping
  -- 
  Zsolt
  
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Zsolt


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




web.xml for webdav

2003-01-08 Thread Zsolt Koppany
Hi,

how do I have to modify web.xml that my application supports webdav? I
understand that tomcat-4 supports webdav, but because my application
uses a customized classes of the webdav servlet thus the lines below
must be somehow modified because the url-pattern//url-pattern would
include all other items of my application that have nothing to do with
webdav.

servlet-mapping
servlet-namewebdav/servlet-name
url-pattern//url-pattern
/servlet-mapping
-- 
Zsolt


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




Progress bar in html

2002-11-25 Thread Zsolt Koppany
Hi,

does anybody know a code (JSP tag) that produces a progress bar in html 
format?

Zsolt

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




Re: Programmatic login

2002-11-16 Thread Zsolt Koppany
Hi,

it sounds very interesting. Could you provide some implementation details 
(source code)?

Zsolt

On Saturday 16 November 2002 08:26, Bill Barker wrote:
 setUserPrincipal


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




Sun's JSTL and Jakarta taglib

2002-11-15 Thread Zsolt Koppany
Hi,

what is the difference between Sun's JSTL and Jakarta taglib? First I thought 
they are the same, but the SQL interface seems to be different.

Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Templates from the book Advanced JavaServer Pages don't work if enablePooling is true

2002-10-24 Thread Zsolt Koppany
Hi,

I want to use the Templates codes of the book Advanced JavaServer Pages  
from David M. Geary. They work fine when I set enablePooling to false in 
web.xml with tomcat-4.12. But if enablePooling  set to true it does not 
work. Does anybody have a patch?

Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Does tc-4.12 have bugs with nested jsp tags?

2002-10-22 Thread Zsolt Koppany
Thank you,

you were right.

Zsolt

On Monday 21 October 2002 19:18, Tim Moore wrote:
  -Original Message-
  From: Zsolt Koppany [mailto:zkoppany;web.de]
  Sent: Sunday, October 20, 2002 5:42 PM
  To: [EMAIL PROTECTED]
  Subject: Does tc-4.12 have bugs with nested jsp tags?
 
 
  Hi,
 
  my nested JSP tags (nesting level 3-4) work fine under
  tc-4.0.4 but they seem
  to be bugy with tc-4.12. Are there known JSP issues with tc-4.12?
 
 
  Zsolt

 (I'm assuming you mean Tomcat 4.1.12)

 In all 4.1.x versions, tag pooling is turned on by default, so if your
 tags are not written correctly according to the spec (which is a common
 problem) some problems can arise when using tag pooling that don't
 happen when tag pooling is disabled.  This is particularly true if
 you're assuming that the release method will be called on your tag
 between invocations; it will not.

 You can try disabling pooling by going into $TOMCAT_HOME/conf/web.xml,
 finding the definition of the jsp servlet, and setting the
 enablePooling init parameter to false.

 If this solves your problems, you could just leave pooling off, but you
 should seriously consider revising your tags so that they implement the
 Tag lifecycle correctly.

 You can find more details in the javadocs for
 javax.servlet.jsp.tagext.Tag:
 http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/jsp/tagext/T
 ag.html

 or the Jakarta Taglib Developer Guidelines (which clarify the problems
 much better than the javadocs, IMO):
 http://jakarta.apache.org/taglibs/guidelines.html

-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Str. 16
70565 Stuttgart
Tel: +49-711-7221873 Fax: +49-1212-5168-29527


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Menu or Toolbar code wanted

2002-10-21 Thread Zsolt Koppany
Hi,

do you know a free code to support menus and toolbars for html pages?

Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Does tc-4.12 have bugs with nested jsp tags?

2002-10-20 Thread Zsolt Koppany
Hi,

my nested JSP tags (nesting level 3-4) work fine under tc-4.0.4 but they seem 
to be bugy with tc-4.12. Are there known JSP issues with tc-4.12?


Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




How to configure tomcat-4.12 to follow (allow) symbolic links?

2002-10-19 Thread Zsolt Koppany
Hi,

in tomcat -4.0.4 I use symbol links for the class files, thus after 
compilation I don't have to copy them. I understand that tc-4.12 doesn't 
allow symbol links as default, but how can I configure it to allow them?

Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




How to get a message shown immediately by the browser?

2002-10-18 Thread Zsolt Koppany
Hi,

My servlet can run a long time and I would like to give the user some feedback 
about that. I write html...body... to the browser and execute a 
out.flush() and response.flushBuffer() bit at least mozilla-1.0.1 still needs 
a long time to get the message shown.

How can I get the browser show a message as fast as possible?

Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




resource not available error in tomcat-4.1.12

2002-10-02 Thread Zsolt Koppany

Hi,

I try to move from tc-4.0.4 to 4.1.12 but have a problem. I have changed the 
default docBase (see below) for my application but I get the error attached 
at the end of the mail when I want to get the http://localhost:8080 
displayed. In the index.jsp file the jsp:forward command does not work and 
I don't know why. My application does work with tc-4.0.4 with this setup. I 
do have a correct web.xml in /home/zk/CB/tomcat/cb/WEB-INF and the class 
files are also in the right directories.

What is the reason of the error?



Context path=
docBase=/home/zk/CB/tomcat/cb
reloadable=false debug=0/
--
index.jsp:

jsp:forward page=/servlet/top /

--
Error message:

type Status report

message /servlet/top

description The requested resource (/servlet/top) is not available.

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




How to configure tc-4.1.10 to use Jikes?

2002-09-07 Thread Zsolt Koppany

Hi,

I try to configure tc-4.1.10 to use Jikes to compile jsp files. The configure 
below in web.xml does work with tc-4.0.4. Why doesn't it work tc-4.1.10? I 
don't have any errors, just jikes it not called.

init-param
  param-namejspCompilerPlugin/param-name
  param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param

Zsolt

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




Re: How to get Excel directly started using response.setContentType(...) from JSP?

2002-09-05 Thread Zsolt Koppany

No, it didn't help.

Zsolt

On Thursday 05 September 2002 01:56, Justin Ruthenbeck wrote:
 Have you tried Randy Paries' suggestion about appending a bogus parameter
 like this:

 http://www.host.com/myApp/account/users/results.jsp?a=.xls

 I've seen this work for jpg and swf files before -- curious if this will
 solve your problem...

 justin

 At 04:19 PM 9/4/2002, you wrote:
 I do use setContentType(), but I do get asked by IE whether I want to open
  or save the document. From a servlet using the ...xls in the URL I can
  prevent the question whether I want to open the document, it will be
  opened without any questions.
 
 Zsolt
 
 On Wednesday 04 September 2002 20:46, Justin Ruthenbeck wrote:
   Zsolt --
  
   Guess I'm a bit confused why you wouldn't want to use the
   setContentType() method in your jsp ... this is how a problem like this
   is normally solved (and why the method exists in the first place).
  
   Regardless, you can also do it by extension on your jsp.  Depending on
   how your project is setup, this may be prohibitively difficult, but you
   can precompile your jsp and map it (now a servlet) to whatever you want
   in your web.xml -- map it to result.xls if you'd like.  If you (1)
   aren't precompiling jsps or (2) have a complex proxy environment with
   webservers, this will be difficult.  All the more reason to use
   setContentType().
  
   Happy trails!
   justin
  
   At 11:57 PM 9/3/2002, you wrote:
   Hi,
   
   I can get Excel directly started from a servlet using two things:
   1. response.setContentType(application/vnd.ms-excel);
   2. the servlet path ends with result.xls (like
/servlet/abc/result.xls?p=1)
   
   I can use response.setContentType(...) from JSP too, but I was not
able to use
   a JSP path to end with xls, thus when I start (click on a link) the
JSP file, first I'm asked whether I want to open the file directly or
just to download.
   How could I get Excel started without any furher questions like it is
   possible
   from a servlet?
   
   Zsolt
   
   --
   To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED] For additional
commands, e-mail: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]


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




How to get Excel directly started using response.setContentType(...) from JSP?

2002-09-04 Thread Zsolt Koppany

Hi,

I can get Excel directly started from a servlet using two things:
1. response.setContentType(application/vnd.ms-excel);
2. the servlet path ends with result.xls (like /servlet/abc/result.xls?p=1)

I can use response.setContentType(...) from JSP too, but I was not able to use 
a JSP path to end with xls, thus when I start (click on a link) the JSP 
file, first I'm asked whether I want to open the file directly or just to 
download.
How could I get Excel started without any furher questions like it is possible 
from a servlet?

Zsolt

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




Re: How to get Excel directly started using response.setContentType(...) from JSP?

2002-09-04 Thread Zsolt Koppany

I do use setContentType(), but I do get asked by IE whether I want to open or 
save the document. From a servlet using the ...xls in the URL I can prevent 
the question whether I want to open the document, it will be opened without 
any questions.

Zsolt

On Wednesday 04 September 2002 20:46, Justin Ruthenbeck wrote:
 Zsolt --

 Guess I'm a bit confused why you wouldn't want to use the setContentType()
 method in your jsp ... this is how a problem like this is normally solved
 (and why the method exists in the first place).

 Regardless, you can also do it by extension on your jsp.  Depending on how
 your project is setup, this may be prohibitively difficult, but you can
 precompile your jsp and map it (now a servlet) to whatever you want in your
 web.xml -- map it to result.xls if you'd like.  If you (1) aren't
 precompiling jsps or (2) have a complex proxy environment with webservers,
 this will be difficult.  All the more reason to use setContentType().

 Happy trails!
 justin

 At 11:57 PM 9/3/2002, you wrote:
 Hi,
 
 I can get Excel directly started from a servlet using two things:
 1. response.setContentType(application/vnd.ms-excel);
 2. the servlet path ends with result.xls (like
  /servlet/abc/result.xls?p=1)
 
 I can use response.setContentType(...) from JSP too, but I was not able to
 use
 a JSP path to end with xls, thus when I start (click on a link) the JSP
 file, first I'm asked whether I want to open the file directly or just to
 download.
 How could I get Excel started without any furher questions like it is
 possible
 from a servlet?
 
 Zsolt
 
 --
 To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]


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




How to set the content type from JSP?

2002-07-31 Thread Zsolt Koppany

Hi,

how can I set the content type from JSP?

Zsolt

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




Re: AW: need X running tomcat

2002-06-11 Thread Zsolt Koppany

Hi,

what is a headless option? Could you provide an example?

Zsolt

On Thursday 06 June 2002 10:51, Ralph Einfeldt wrote:
 Alternativly use JDK 1.4 with the headless option
 to create the images.

  -Ursprüngliche Nachricht-
  Von: Michael Reutter [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Juni 2002 09:52
  An: Tomcat Users List
  Betreff: need X running tomcat
 
 
  my servlets need some fonts to generate some images.
  Now I have to do the following to start tomcat:


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




Ant Error: Could not create datatype of type: path due to java.lang.NoSuchMethodException

2002-05-21 Thread Zsolt Koppany

Hi,

I have written a class that uses the API of ant-1.4.1 that I start from 
tomcat-4.0.3. Actualy it works pretty good but when I have a path... 
instruction in the build file I get an exception like below:

Could not create datatype of type: path due to java.lang.NoSuchMethodException

When I start ant from a console I don't get this problem. How can I fix the 
problem?


Here is my build file:

project name=MyProject default=dist basedir=.

path id=project.class.path/
  !-- set global properties for this build --
  property name=src value=./

  target name=dist

echo message=${CB_PROJ_ID}/
echo message=${CB_PROJECT_NAME}/
echo message=${CB_SRCDIR}/
!--
delete file=${CB_SRCDIR}/se/java/utils/CVSData.java/
--

sql
   driver=${CB_JDBC_DRIVER}
   url=${CB_JDBC_URL}
   userid=${CB_JDBC_USER}
   password=${CB_JDBC_PASSWORD}
transaction  src=x.sql /
transaction
select * from files
/transaction
/sql

  /target
/project


BUILD FAILED /home/zk/tmp/ant/build.xml:3: Could not create datatype of type:
 path due to java.lang.NoSuchMethodE
xception: init at
 org.apache.tools.ant.Project.createDataType(Project.java:552) at 
org.apache.tools.ant.ProjectHelper$DataTypeHand
ler.init(ProjectHelper.java:608) at
 
org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.java:430) 
at
 org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
at org.apache.crimson.parser.Parser
2.maybeElement(Parser2.java(Compiled
 Code)) at org.apache.crimson.parser.Parser2.content(Parser2.java(Compiled 
Code)) at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java(Compiled Code)) 
at org.apache.crimson.parser.Parser2
.content(Parser2.java(Compiled Code))
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java(Compiled 
Code)) at org.apache.crimson.parser.Pars
er2.parseInternal(Parser2.java:500) at
 org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLRe
aderImpl.java:433) at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at 
javax.xml.parsers.SAXParser.parse(SAXPa
rser.java:326) at
 org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117) at 
org.apache.tools.ant.ProjectHelper.configure
Project(ProjectHelper.java:85) at
 cv.servlet.build.AntProject.init(AntProject.java:243) at 
cv.servlet.build.RunBuild.process(RunBuild.java:92) a
t
 cv.servlet.build.RunBuild.exec(RunBuild.java:72) at 
cv.servlet.build.RunBuild.doGet(RunBuild.java:31) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServl
et.java:853) at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 
at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 
at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.Containe
rBase.invoke(ContainerBase.java:943) at
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.Containe
rBase.invoke(ContainerBase.java:943) at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.Containe
rBase.invoke(ContainerBase.java:943) at
 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 

bug in the tomcat-4.0.3 version of jakarta-regexp-1.2

2002-04-18 Thread Zsolt Koppany

Hi,

I don't know how it is possible, but the jakarta-regexp-1.2.jar delivered with 
tomcat-4.0.3 doesn't handle MATCH_CASEINDEPENDENT flag but the original 
jakarta-regexp-1.2.jar file does.

What is the reason?

Zsolt


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




NullPointer from request.getRemoteHost()

2002-04-15 Thread Zsolt Koppany

Hi,

I try to install tomcat with apache over APJ13 and it seems to work. But when 
I try to figure out the name of the remote host (request.getRemoteHost()),I 
get a null pointer. I changed (tried) to set nslookup in apache but it didn't 
help (or I didn't make it correct). I don't really need the host name it 
would be OK if request.getRemoteHost() returned the IP address but the 
applications calls request.getRemoteHost() often, thus I wouln'd like to 
change the source code.

Zsolt



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




Passing objects to taglib file

2002-04-09 Thread Zsolt Koppany

Hi,

I understand that I can pass Strings and numbers to taglib files, but how can 
I pass other objects (for example a Vector)?

-- 
Zsolt 

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




taglib and contextPath

2002-03-31 Thread Zsolt Koppany

Hi,

from a taglib class I have to write links (A HREF=.../A) with context 
dependent paths. From a servlet I use request.getContextPath()...
How can I do the same from a taglib class?

-- 
Zsolt Koppany

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




  1   2   >