Broken pipe on JDBCRealm

2006-11-16 Thread Leonhard Holzer
We are using tomcat 5.0.28 with jdk1.4.2_13 on redhat rhsl9. We configured the context with an JDBCRealm on a Oracle9i database Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread Lars Nielsen Lind
Solved with mod_jk without JNI, and thanks for all the tips. In my /etc/hosts there was this line: ::1 localhost.localdomain localhost And I added this line: 127.0.0.1 localhost.localdomain localhost and now I can ping localhost. Christopher Schultz skrev: -BEGIN PGP SIGNED

SEVERE: Error loading WebappClassLoader

2006-11-16 Thread Lars Nielsen Lind
I get this err msg when I am starting tomcat 5.5.20: 2006-11-16 09:22:02 org.apache.catalina.core.ApplicationContext log INFO: Marking servlet CewolfServlet as unavailable 2006-11-16 09:22:02 org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false

Web.xml - mime-type definition for file without extension

2006-11-16 Thread Vincent Peytavin
Hello, Here is my situation: I have audio files that are not named foo.wav but foo. As a consequence, Tomcat does not define a content-type for these files as audio/x-wav since they are not matching with the extension .wav. Finally, they are not correctly interpreted by the client. I have

exception during deploy

2006-11-16 Thread Raffaele Viola
HI all, at Tocat startup I get this error: INFO: Deploying web application archive CMM_EU.war - IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; Can someone help me? Thanks Raffo

Re: JkMountFile not working

2006-11-16 Thread Rainer Jung
No way to look at the modification time inside mod_jk. The module will log the followinf when loading the file during request processing: Log-Level info: Reloaded urimaps from FILENAME And a little later one can see the usual request mapping (Log-Level debug): Attempting to map URI

Re: JkMountFile not working

2006-11-16 Thread Rainer Jung
Ah sorry, I didn't notice Mladen's changes when I wrote my answer a minute ago. So yes, could you please try with his patch (build 1.2.20-dev) and try again and if the problem persists, open a bugzilla as described. Mladen Turk schrieb: Gilberto E. Espinoza wrote: I changed the file tonight

Re: Virtual Host hiding JkMount directives?

2006-11-16 Thread Rainer Jung
Hi, I tried to reproduce. It looks like the mapping actually works, but the logger is not correctly initialized for the virtual server. Could you please confirm, that the mappings you enter to the virtual servers work, and the problem is only the misleading log lines? Regards, Rainer Chris

problem at startup

2006-11-16 Thread Raffaele Viola
Hi all, when I try to start Tomcat in the catalina.out I can find these lines 16-Nov-2006 10:07:34 org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the

Re: AW: Problem with RemoteAddrValve in Context.xml

2006-11-16 Thread David Smith
You can't split a webapp into protected and not protected with the valve. It's all or nothing. You'd be better off implementing a filter in your webapp that pay's attention to request.getRemoteAddr() and either chains the request or redirects to an error page. --David Peter Neu wrote: I

Re: Daylight Saving Time Impact

2006-11-16 Thread David Smith
Tomcat doesn't track DST begin and end. That's taken care of in the JRE or JVM. Take a look at you Java vendor's website (Sun or IBM) for support. --David Ranendra N Ghoshal wrote: Hello: As you are aware Beginning in 2007, DST will start the second Sunday of March and end on the first

Re: problem at startup

2006-11-16 Thread Markus Schönhaber
Raffaele Viola wrote: when I try to start Tomcat in the catalina.out I can find these lines 16-Nov-2006 10:07:34 org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the

org.apache.jasper.JasperException: the useBean class attribute List is invalid.

2006-11-16 Thread Lijin
Please help me in the following problem occuring in my project. One of our project is running currectly in the Tomcat 4 version with one old version of Jasper report. Now we our requirment is that, we have to trasfer it to new Tomcat 5 environment. But when we transfer this into the new Tomcat

org.apache.jasper.JasperException: useBean class attribute List is invalid.

2006-11-16 Thread Lijin
Please help me in the following problem occuring in my project. One of our project is running currectly in the Tomcat 4 version with one old version of Jasper report. Now we our requirment is that, we have to trasfer it to new Tomcat 5 environment. But when we transfer this into the new Tomcat

How to start and stop Tomcat server using Java binaries

2006-11-16 Thread Harihara Kumar, Juttu Satchidaanandam
Hello All, I have a requirement to start and stop the Tomcat server through a perl script on Windows platform. I know that I can use the command net START \Apache Tomcat\ to start the Tomcat server and similarly the command net STOP \Apache Tomcat\ to stop the Tomcat server through the perl

Re: Virtual Host hiding JkMount directives?

2006-11-16 Thread Chris Mayes
Sadly, no. The mapping isn't functional when it's in the VirtualHost. It works outside of the VH definition, but that's obviously not where I want it :-) I'll try to provide more details when I get home. Thanks, -Chris Rainer Jung wrote: Hi, I tried to reproduce. It looks like the

Re: org.apache.jasper.JasperException: the useBean class attribute List is invalid.

2006-11-16 Thread David Smith
General diagnostics: 1. The bean class has to be in a package 2. The bean has to be declared public 3. The bean has to have a default, public, no-arguement constructor. --David Lijin wrote: Please help me in the following problem occuring in my project. One of our project is running

Tomcat5,Apache2,mod_ssl and mod_jk

2006-11-16 Thread Marx
Hello I configured Tomcat5,Apache2,mod_ssl and mod_jk. I use certification, but I want some of directiories not tu require certificate. Choosing which directories needs cetrtificate is configured via Directory / SSLVerifyClient none /Directory Directory /usr/local/tomcat/webapps/xxx/yyy

Problem it Cyrillic records in my Database

2006-11-16 Thread Plamen.Ivanov
Good day, my name is Plamen Ivanov and i am looking for solution regarding my = problem. I user Apache Tomcat 5.5.12 and MySQL database. When i am = submitting forms with cyrillic characters in the fields i receive = records in the database like ??. Can you tell me what = configuraiton i

Problem with Cyrillic records in myDatabase

2006-11-16 Thread Plamen.Ivanov
Good day, my name is Plamen Ivanov and i am looking for solution regarding my = problem. I user Apache Tomcat 5.5.12 and MySQL database. When i am = submitting forms with cyrillic characters in the fields i receive = records in the database like ??. Can you tell me what = configuraiton i

Tomcat directories location

2006-11-16 Thread Didier Croutz
Hello, I'm working for an University. Our workstations are unmarked so each student is able to work on every workstations. But we must save students data on their home directoy wich is a network drive mounted on a Windows sharing. They' ll use Tomcat 5.5.20 so we must configure this

Re: CSS not being used when a Servlet is involved

2006-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robbert wrote: Christopher Schultz-2 wrote: Whether or not you use struts, I highly recommend that you avoid tricks like calling a servlet from a JSP in order to execute your business logic. If you have a waterfall-style logical flow

Re: Tomcat5,Apache2,mod_ssl and mod_jk

2006-11-16 Thread Rainer Jung
Hi Marx, I didn't go into the details, but I find it normal, that Directory directives don't apply to mod_jk. The module simply forwards URLs and not requests mapped to a file system. So using it together with Location seems natural to me (and you can argue, if this is more secure or less

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread Rainer Jung
Hi Michael, I didn't want to shoot at you, and yes, mod_jk documentation could be much better. Concerning the docs: Documentation contribution will be welcome. We try to add all new things in there, but parts of the documentation are indeed rudimentary. Concerning Apache 2.2: There is no

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, [EMAIL PROTECTED] wrote: All I can say is that I googled around extensively, trying to learn how to set up Tomcat 5.5 with Apache 2.2 as the front end, and found many sites saying to stay away from mod_jk, along with mailing list

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread Joe Riopel
I am not saying this is 100% correct, or the best documentation ever but I wrote a small install guide for Apache 2.2 and Tomcat 5.5 with mod_jk. I used the same steps on a RH7.3 box and a Slackware 10.2 box. http://www.crankhouse.com/howto.php?f=modjk On 11/16/06, Christopher Schultz [EMAIL

No stacktrace in stdout logfile

2006-11-16 Thread janw
Hello, I know that the default behavior of Tomcat is to print all error messages / exception stacktraces to stdout, for me this is to catalina.out. In some cases the exception stacktrace is printed to catalina.out, but there are errors where the stacktrace without the root cause is printed only

Re: Tomcat5,Apache2,mod_ssl and mod_jk

2006-11-16 Thread Marx
Apache 1.3 get request and map it to local system, and when Directory with required is hit, it denies access and will not even try to forward to mod_jk. In Apache 2.0 it first try to forward using mod_jk and then if no JKmount fits it checks Directory In both situations it firsts checks

Re: Tomcat is sometimes very slow using mod_jk

2006-11-16 Thread Henk Fictorie
The problem reproduces itself automagically, but not at the moment I want. I think I will snoop the traffic with Tomcat during one hour or so (appr. 1 Gig of data, on a different filesystem). Using editcap to divide the capturefile in reasonable sized parts. Examining the logfile will reveal

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread Jim Jagielski
On Nov 16, 2006, at 9:13 AM, Rainer Jung wrote: Hi Michael, I didn't want to shoot at you, and yes, mod_jk documentation could be much better. Assuming it's up to date :) - To start a new topic, e-mail:

Tomcat5.exe from 5.5.20 is half the size of 5.5.17, any change log to read?

2006-11-16 Thread Marziou, Gael
Hello, Tomcat5.exe from 5.5.20 is half the size of 5.5.17 but I can't find any change mentioned in Tomcat's change log page. Is there a place to find out what has changed? Thanks, Gael - To start a new topic, e-mail:

Re: Tomcat is sometimes very slow using mod_jk

2006-11-16 Thread Rainer Jung
Henk Fictorie wrote: The problem reproduces itself automagically, but not at the moment I want. Well ... I think I will snoop the traffic with Tomcat during one hour or so (appr. 1 Gig of data, on a different filesystem). Using editcap to divide the capturefile in reasonable sized parts.

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread Jim Jagielski
On Nov 15, 2006, at 5:42 PM, Caldarale, Charles R wrote: From: Rainer Jung [mailto:[EMAIL PROTECTED] Subject: Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy? If you want to use mod_proxy, it is important to know, that most documentation for mod_proxy_balancer is contained in apaches

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread michael
On Thu, Nov 16, 2006 at 03:13:48PM +0100, Rainer Jung wrote: I didn't want to shoot at you, and yes, mod_jk documentation could be much better. Concerning the docs: Documentation contribution will be welcome. We try to add all new things in there, but parts of the documentation are

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread Rainer Jung
Hi Jim, It's not the right list to discuss, but: As a user I would expect configuration info for load-balancing with mod_proxy_balancer on the mod_proxy_balancer page. The fact, that all configurations for the proxy balancer are done by attributes, and the only full size apache directives

Re: JkMountFile not working

2006-11-16 Thread Gilberto Espinoza
Thanks for the help. I will try Mladen's suggestion over the weekend and post the outcome then. On 11/16/06, Rainer Jung [EMAIL PROTECTED] wrote: Ah sorry, I didn't notice Mladen's changes when I wrote my answer a minute ago. So yes, could you please try with his patch (build 1.2.20-dev) and

Re: Apache 2.2.3 Tomcat 5.5.20 - mod_jk or proxy?

2006-11-16 Thread michael
On Thu, Nov 16, 2006 at 05:03:29PM +0100, Rainer Jung wrote: It's not the right list to discuss, but: As a user I would expect configuration info for load-balancing with mod_proxy_balancer on the mod_proxy_balancer page. The fact, that all configurations for the proxy balancer are done by

Re: Problem it Cyrillic records in my Database

2006-11-16 Thread Leon Rosenberg
i would say you have to check your encoding through all layers. Default encoding in java is latin1 (iso-8589-1). You should rely on cp-1251. Utf-8 could also do the job, but I'm not sure about it :-) regards Leon On 11/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Good day, my name is

Re: Tomcat5.exe from 5.5.20 is half the size of 5.5.17, any change log to read?

2006-11-16 Thread Mladen Turk
Marziou, Gael wrote: Hello, Tomcat5.exe from 5.5.20 is half the size of 5.5.17 but I can't find any change mentioned in Tomcat's change log page. Is there a place to find out what has changed? There is no change. The latest build used dynamically linked MSVCRT, while the previous was having

Serving up applets

2006-11-16 Thread Robert Harper
This has probably been covered before but I'm having a hard time getting an applet on a servlet generated page to load. I keep getting a ClassNotFound exception even though the class is in several possible areas for it to load. It is a package that is like com.company.service.MyApplet.class. If

RE: Tomcat5.exe from 5.5.20 is half the size of 5.5.17, any change log to read?

2006-11-16 Thread Marziou, Gael
Thanks. Do you know if it's actively supported? I submitted a bug report 2 months ago (maybe in the worng place) and got no feedback. http://issues.apache.org/jira/browse/DAEMON-86 I also would like to submit an enhancement request to be able to set the processor affinity mask from the

Get non-ROOT applications to return for getContextPath?

2006-11-16 Thread Eric Jain
Is it possible to trick an application into believing that it is the ROOT application (i.e. getContextPath returns ), even when it isn't? The reason for this is that managing virtual hosts with Tomcat can be a bit cumbersome, and some management applications won't work in such a setup. The

RE: a discrepancy in webapp behavior in two environments

2006-11-16 Thread Aronszajn, Mark
I've encountered the problem again that I described in some posts from last month. I had figured that the problem was resolved when I explicitly included the jsessionid as a param with the URL. The situation was this: I have a page that refreshes every few seconds with updates to a list of

Re: Get non-ROOT applications to return for getContextPath?

2006-11-16 Thread David Smith
You could implement a filter that passes on a request wrapper. Then just override the getContextPath() method to return . Eric Jain wrote: Is it possible to trick an application into believing that it is the ROOT application (i.e. getContextPath returns ), even when it isn't? The reason for

Re: Serving up applets

2006-11-16 Thread Martin Gainty
Hi Robert Which class is throwing the ClassNotFoundException? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have

RE: Serving up applets

2006-11-16 Thread Robert Harper
The browser is. The Java console and an error box is displayed by IE when it tries to load the applet. I see nothing in the Tomcat logs. Either for security problems or not finding the class. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Martin Gainty

Re: Serving up applets

2006-11-16 Thread David Smith
Where are you putting the applet class? It can't be in WEB-INF because that isn't available to the client. --David Robert Harper wrote: The browser is. The Java console and an error box is displayed by IE when it tries to load the applet. I see nothing in the Tomcat logs. Either for security

Re: Serving up applets

2006-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harper wrote: This has probably been covered before but I’m having a hard time getting an applet on a servlet generated page to load. I keep getting a ClassNotFound exception even though the class is in several possible areas for

Filters, Security, Tomcat and Configuration

2006-11-16 Thread James Crosson
Greetings, I am attempting to configure Tomcat (5.5.9) to disregard URL requests that contain ../ and similar high-risk expressions. So far I have been unsuccesful. I recognize two possibilities here: A. Use url-pattern in the web.xml to identify this URL and disregard it B. Configure a

RE: Serving up applets

2006-11-16 Thread Robert Harper
Snippet of the HTML applet code=com.iat.ctimpact.CTImpactStatisticsApplet.class height=300 width=584 param name=Link value='https://127.0.0.1:8443/ctimpact/servlet/CTImpact/?User=001TESTList=C 001MAIN' param name=Timer value=5000 /applet Snippet from Java Console network: Connecting

Re: Filters, Security, Tomcat and Configuration

2006-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Crosson wrote: I believe that a url-pattern strategy will be more trouble than it is worth beacuse it seems you can't pass a regular expression, but so far I have not been able to nail down a Filter. Filters are really the way to go,

Re: Serving up applets

2006-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harper wrote: Snippet of the HTML applet code=com.iat.ctimpact.CTImpactStatisticsApplet.class height=300 width=584 param name=Link value='https://127.0.0.1:8443/ctimpact/servlet/CTImpact/?User=001TESTList=C 001MAIN' param

Re: Serving up applets

2006-11-16 Thread Martin Gainty
Not to mention security permissions one must grant thru either updates to policy files OR running your bundled code thru SecurityManager PlugIn http://java.sun.com/developer/technicalArticles/Security/applets/ Be mindful that this will have to work in every browser and every JVM your client

[SOLVED] Re: Migrating from TC 4 - 5

2006-11-16 Thread Jon Wynacht
Turns out the issue was I had: role-name*/role-name when I should have had each of the roles entered. Whew! The things we learn by trial and error...thanks everybody who had advice for me on this, especially here: http://www.nabble.com/auth-constraint-in-web.xml-in-tomcat-5.5.15-

RE: Serving up applets

2006-11-16 Thread Robert Harper
I'm not trying to do any extra work with Swing or such. I want to keep this as dumb as possible so I don't have to require the latest and greatest or test in every browser. This is very minimalist. I have tried playing with the codebase attribute in other testing and IE just got even more

RE: Serving up applets

2006-11-16 Thread Robert Harper
It looks like the codebase attribute helped. Now I'll see what I can do from there. Thanks. Just don't let preliminary testing dictate what you don't try later I guess. Robert S. Harper Information Access Technology, Inc. -

Re: Webapps inexplicably losing access to common/shared classloaders

2006-11-16 Thread Timothy Collett
On Nov 15, 2006, at 5:12 PM, Caldarale, Charles R wrote: I hope you're aware that 6.0 is still highly experimental - the fact that it is downloadable has not even been officially announced. You're pretty much on your own with that level at the moment. That said, there is a 6.0.1 at the

Re: Virtual Host hiding JkMount directives?

2006-11-16 Thread Chris Mayes
Well, it's turned out that the log messages were misleading. I wiped out my old Apache config and re-assembled it piece by piece. I haven't re-added everything, but mod_jk now functions properly. Thanks, -Chris Chris Mayes wrote: Sadly, no. The mapping isn't functional when it's in the

Tips needed: restarting tomcat without risk of java.net.BindException

2006-11-16 Thread Bryce Nesbitt
We have a Tomcat application, which binds to port 8080 and AJP 6135. At 3 am we restart this application (because of a memory leak). But sometimes it is unable to bind to it's own port, and it just dies and never starts. Naturally this causes unhappiness. The server.xml is: Connector