Re: Deploy 1st Service to Tomcat proper

2009-02-02 Thread Michael Ludwig
alk about building stuff. Note that you don't have to do that yourself, Instead, you may want to download the extra components from one of the mirrors. The extra components are in the bin/extra directory of the mirrors, so one level down from where the Tomcat archives are. You'll need: *

Re: Deploy 1st Service to Tomcat proper

2009-02-02 Thread Michael Ludwig
u're talking about running inside your IDE? Or standalone? Is it possible that Log4J is improperly configured and thus not showing you error messages? I'd get rid of the IDE and log4j to cut down complexity. Then, you should find error messages in the log files. Michael Ludwig -

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-02-02 Thread Michael Ludwig
tension to the Berkeley Database. > can you provide the link where you acquired the source? Here's the product homepage with a download link: Oracle Berkeley DB XML http://www.oracle.com/database/berkeley-db/xml/inde

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-02-02 Thread Michael Ludwig
Caldarale, Charles R schrieb am 01.02.2009 um 22:38:57 (-0600): > > From: Michael Ludwig [mailto:mil...@gmx.de] > > Subject: Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe) > > > > The Java bridge DLLs (or whatever they're called) can be moved to a &g

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-02-02 Thread Michael Ludwig
uch thing in the source tree. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-02-01 Thread Michael Ludwig
Caldarale, Charles R schrieb am 29.01.2009 um 22:45:40 (-0600): > > From: Michael Ludwig [mailto:mil...@gmx.de] > > Subject: Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe) > > > > -Djava.library.path=C:\Server;C:\src\BerkeleyDbXml\dbxml-2.4.1 > > 6\bin\

Re: Tomcat 6 vs Apache running as services

2009-01-28 Thread Michael Ludwig
ho.com/ > I need them to run parallel and be completely independent - tomcat for > java apps and apache for php5. You can have them run in separate contexts. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomc

Re: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-28 Thread Michael Ludwig
username="username" > password="password" > driverClassName="oracle.jdbc.OracleDriver" > uri="jdbc:oracle:thin:@aserver:2224:DB"/> Try changing the attribute "uri" to "url". Even though th

Re: Deploy 1st Service to Tomcat proper

2009-01-28 Thread Michael Ludwig
uot;jar tf your.war" to check what's in the JAR. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-28 Thread Michael Ludwig
Caldarale, Charles R schrieb am 22.01.2009 um 21:52:36 (-0600): > > From: Michael Ludwig [mailto:mil...@gmx.de] > > Subject: Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe) > If you don't mind running another experiment, please start Tomcat as a > service onc

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-28 Thread Michael Ludwig
Konstantin Kolinko schrieb am 23.01.2009 um 04:57:31 (+0300): > > I think that the answer is (and your solution proves this) that the > statement that service does not need environment variables is not 100% > true. > > That is, if you compare *.bat/*.sh with how the service is started, > you can

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-22 Thread Michael Ludwig
Konstantin Kolinko schrieb am 22.01.2009 um 07:51:16 (+0300): > 2009/1/22 Michael Ludwig : > > But I'm assured by the developers that: > > "The Java API for DB XML begins by first trying to load the > > release versions of the libraries, and failing that the

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-21 Thread Michael Ludwig
t is just a guess. > > And indeed, this works using bin\startup.cmd. > > We'll presume you meant bin\startup.bat. You can safely do that. :-) Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-21 Thread Michael Ludwig
Tommy Pham schrieb am 20.01.2009 um 21:45:17 (-0800): > > I don't know if this is relevant to your problem or not and you didn't > mention whether you're x64 or x86 of XP version. Yes, I forgot to say, this is a 32 bit system. > Here's where you can get 64bit for tomcat5: > http://svn.apache.org

UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-20 Thread Michael Ludwig
spel the error. What could make the script version succeed and the service version fail with both Tomcat 5.5 and 6? What could I do to find the error? Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: [OT] How to compile a servlet for Tomcat 5 on IBM JVM, or, "Dr. Warnier: How I learned to stop worrying and love VMWare"

2008-12-29 Thread Michael Ludwig
ei "Standardgateway für das Remotenetzwerk verwenden" entfernen. Or the equivalent steps in English. But maybe your case is a different one. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Filter and ServletResponseWrapper obligations

2008-12-27 Thread Michael Ludwig
Christopher Schultz schrieb am 01.12.2008 um 14:15:31 (-0500): > Michael Ludwig wrote: Hi Chris, thanks for your reply. Sorry for not getting back earlier. > Is this the filter you wrote in your other thread? Yes. > Maybe you are not printing your output at the right time. Or

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-12-27 Thread Michael Ludwig
Christopher Schultz schrieb am 01.12.2008 um 13:15:24 (-0500): > Michael Ludwig wrote: [Better late than never.] > > public HttpResponseCatcher( HttpServletResponse res) { > > super( res); > > this.buffer = new ByteArrayOutputStream(); > > this.stream = new

Re: HTTP Status 500 problem with tomcat5.5

2008-12-15 Thread Michael Ludwig
in(String[] args) throws ParseException { DateFormat dateFormat = new SimpleDateFormat( "EEE MMM dd HH:mm:ss zzz ", Locale.US); Date now = new Date(); System.out.println( now.toString()); Date date = d

Re: tomcat6, bottleneck, concurrent requests, windows xp

2008-12-15 Thread Michael Ludwig
k. I think you should (1) increase your test volume, (2) check for possible server-side bottlenecks (like database connections), and (3) maybe try the Executor with minSpareThreads. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: tomcat6, bottleneck, concurrent requests, windows xp

2008-12-14 Thread Michael Ludwig
tenth of the time taken altogether. > Time per request: 166.563 [ms] (mean, across all concurrent requests) > Transfer rate: 162.42 [Kbytes/sec] received Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat thread pool question

2008-12-10 Thread Michael Ludwig
g, as no work has been done in it. You have to close your connection each and every time to give it back to the pool. That's the idiomatics of the pool: Calling close() on a connection returns it to the pool. http://commons.apache.org/dbcp/apidocs/org/apache/commons/dbcp/PoolableConnection.

Re: Can not fail over a web service call using mod_jk

2008-12-09 Thread Michael Ludwig
g and error reaction. [OT] Good old (but not exactly light-weight) mod_perl can do all that. Although I don't know how good its threading implementation is. Michael Ludwig - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Tomcat 6 unstable

2008-12-01 Thread Michael Ludwig
Christopher Schultz schrieb am 01.12.2008 um 16:16:49 (-0500): > Michael Ludwig wrote: > > The very fact that object leak from one web app into another is a > > possibility seems to constitute a strong argument in favour of > > strict monitoring, be it only to shield one

Re: Manager app language

2008-12-01 Thread Michael Ludwig
Michael Ludwig schrieb am 26.11.2008 um 20:57:12 (+0100): > LC_MESSAGES or LC_ALL would be the ones to look out for. LC_CTYPE is > for character classification. > > Watch out for LANG, which overrides everything else. I was mistaken here. LANG is *not* the one that overrides eve

Re: Odd encoding of servlet parameters

2008-11-27 Thread Michael Ludwig
e ASCII character set.) Some element in the chain gets the parsing wrong. I'd suspect the producer of this "XML" first. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Setting encoding for tomcat compiler

2008-11-26 Thread Michael Ludwig
} finally { if ( in != null ) in.close(); if ( out != null ) out.close(); } } } C:\dev\Java\Encoding :: java -cp . Convert CP1251.txt latin1 Murks.txt utf-8 C:\dev\Java\Encoding :: more Murks.txt €???­ ???°? ?Š?€? ?­???­ ?®?­???? ???®?? ?

Re: Tomcat 5.5.26 / 6.0.18 difference: loading jdbc jar??

2008-11-26 Thread Michael Ludwig
-loader-howto.html > B) is there something I need to adjust in my configuration and jndi > code? If you want the JNDI data source, put the mysql.jar in Tomcat/lib. Michael Ludwig - To start a new topic, e-mail: users@tomc

Re: Manager app language

2008-11-26 Thread Michael Ludwig
text requires the requested locale be installed in the OS, else ignoring the locale you're trying to set.) Or simply: LANG=de_DE ./startup.sh # or maybe even LANG=de ./startup.sh Michael Ludwig - To

Re: Manager app language

2008-11-26 Thread Michael Ludwig
n of another colleague who, like me, saw it in German > yesterday for the first time. > Wie nennt man gremlins in Deutsch ? Kobolde. Zur See auch Klabautermänner, aber ich schätze, Dein Tomcat ist eine Landratte. Oder wohl eher eine Landkatz

Re: Manager app language

2008-11-26 Thread Michael Ludwig
ld be the ones to look out for. LC_CTYPE is for character classification. Watch out for LANG, which overrides everything else. > But where the h.. does Tomcat or the Manager figure that it needs to > send the "application list" main page in German ? Don't complain about

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Michael Ludwig
I forgot two important lines; explanation in other posts on this thread. Michael Ludwig schrieb am 26.11.2008 um 02:14:58 (+0100): > public ServletOutputStream getOutputStream() throws IOException { getResponse().getOutputStream(); > return stream; > } > > public PrintW

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Michael Ludwig
Christopher Schultz schrieb am 25.11.2008 um 09:31:17 (-0500): > Michael Ludwig wrote: > > Your argument in favour of the unified buffer sounds perfectly > > logical to me. In the end, it's all bytes that get written, > > regardless of whether or not I wrap a Pri

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Michael Ludwig
getByteArray() { return buffer.toString().getBytes(); } public char[] getCharArray() { return buffer.toString().toCharArray(); } } Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

Re: Re: Tomcat 6 unstable

2008-11-25 Thread Michael Ludwig
Caldarale, Charles R schrieb am 25.11.2008 um 17:00:24 (-0600): > > From: Michael Ludwig [mailto:[EMAIL PROTECTED] > > Subject: Re: Re: Tomcat 6 unstable > > > > I've read somewhere that omitting the file:/// URI scheme is wrong. > > However, it seems to work.

Re: Re: Tomcat 6 unstable

2008-11-25 Thread Michael Ludwig
e, all objects derived from it are also closed. (That's how drivers are implemented so they're not too complicated to use.) The whole point of the pool, however, is to *not* close the connection. So no automatic tidying up is going to happen: you have to do it yourself. Michael Ludwi

Re: Re: Tomcat 6 unstable

2008-11-25 Thread Michael Ludwig
Caldarale, Charles R schrieb am 24.11.2008 um 21:51:33 (-0600): > > From: Michael Ludwig [mailto:[EMAIL PROTECTED] > > > Could web app Foo, which brings its own DB2 driver - in spite > > of the same driver already offered by the common.loader or > > the bootstra

Re: Re: Tomcat 6 unstable

2008-11-24 Thread Michael Ludwig
ommon.loader"? Or would web app Foo only harm itself? Does this mean web apps have to be monitored for the classes they make available in order to make sure none of them has already been made available via the common.loader? Michael Ludwig -

Re: Setup Logging for Tomcat 6

2008-11-24 Thread Michael Ludwig
Caldarale, Charles R schrieb am 24.11.2008 um 19:37:52 (-0600): > > From: Michael Ludwig [mailto:[EMAIL PROTECTED] > > Subject: Re: Setup Logging for Tomcat 6 > > > > Does the same hold true for the "shared.loader"? > > It holds true for *any* classl

Re: User Request Ordering

2008-11-24 Thread Michael Ludwig
er knows everything. So Tomcat can check whether or not it is legitimate for button X to be clicked on behalf of user Y. This should be done regardless of whether or not you move to one of the solutions at the UI level. Michael Ludwig ---

Re: Setup Logging for Tomcat 6

2008-11-24 Thread Michael Ludwig
Caldarale, Charles R schrieb am 24.11.2008 um 18:53:06 (-0600): > > From: Michael Ludwig [mailto:[EMAIL PROTECTED] > > Subject: Re: Setup Logging for Tomcat 6 > > > > "See the driver" - I think I used that expression yesterday. "Share a > > logging c

Re: Re: Tomcat 6 unstable

2008-11-24 Thread Michael Ludwig
rties". > The idea I have is to create a pool of connections. I read the concept > but now I need to implement it. Is Tomcat deal with the pool or I need > to ask help in DB2 forums ? It'll probably work the same way as for other database servers. In order for this to work, both

Re: Setup Logging for Tomcat 6

2008-11-24 Thread Michael Ludwig
pression yesterday. "Share a logging complex" - could you expand a bit on what this means, or provide a pointer to an informative document? Thanks. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apac

Re: Setup Logging for Tomcat 6

2008-11-24 Thread Michael Ludwig
tem". > (Can't tell you exactly, this PC is German, and there it's called > "Ereignisanzeige") Shortcut: Hit Windows-r, then type "eventvwr.msc". Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tomcat 5.5.20 security issue

2008-11-24 Thread Michael Ludwig
citly wants the "com.sun.org.apache" version, you'll probably have to upgrade. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tomcat 5.5.20 security issue

2008-11-24 Thread Michael Ludwig
otes/guides/security/crypto/CryptoSpec.html#ProviderInstalling Let us know if this helps, and if so, what you have to do to get it working. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-m

Filter and ServletResponseWrapper obligations

2008-11-23 Thread Michael Ludwig
tainer citizens? What are their obligations? Is this contract documented? Alright, I found the spec. http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html But I haven't read it yet :-) So if anyone wants to comment ... Thanks, Michael Ludwig

Re: Debian Etch, Eclipse 3.2, Tomcat5 can't work together?

2008-11-23 Thread Michael Ludwig
ay. So let Debian be Debian and get your milk directly from the cow: http://www.eclipse.org/downloads/ http://tomcat.apache.org/download-55.cgi http://tomcat.apache.org/download-60.cgi Michael Ludwig - To start a new

Re: Deploying mysql-connector-java-5.1.7-bin.jar in /WEB-INF/lib

2008-11-23 Thread Michael Ludwig
ould make sense? And wouldn't more memory be required for 5 web apps all loading the same classes redundantly instead of relying on the container to do it once instead? Michael Ludwig - To start a new topic, e-mail: users@

Re: Deploying mysql-connector-java-5.1.7-bin.jar in /WEB-INF/lib

2008-11-23 Thread Michael Ludwig
pache.org/tomcat-5.5-doc/class-loader-howto.html http://tomcat.apache.org/migration.html http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html http://weblogs.java.net/blog/arungupta/archive/2007/07/metro_on_tomcat.html Finer granularity of

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-21 Thread Michael Ludwig
Christopher Schultz schrieb am 20.11.2008 um 10:05:48 (-0500): > Keep reading for more. > > Michael Ludwig wrote: > >> So, when this code is called from an "include" call to the request > >> dispatcher, it doesn't appear in your filter's captured

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-21 Thread Michael Ludwig
ee: You never know. And who knows what stuff gets set or tweaked in Tomcat's internals for each one of getWriter() and getOutputStream(). On the other hand, I haven't found any statement to the effect that you have to pass through the calls to the underlying response object. Michael Lud

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-21 Thread Michael Ludwig
; > public String toString() { return this.buffer.toString(); } > > Although this will work, it might be surprising to users of your class. > I would like a method such as "getCapturedOutput" instead. I renamed this one. Thanks for your help, Christopher and Chuck! Michael Ludwi

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-20 Thread Michael Ludwig
Michael Ludwig schrieb am 20.11.2008 um 01:58:20 (+0100): > > > >String s = "" + wrapper.toString(); > > >( (HttpServletResponse) res).setHeader( > > > "Zeichen", Integer.toString( s.length())); > > > > Note that this

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-20 Thread Michael Ludwig
makes sense for situations where I have many nested filters and have them all detect the PW/SOS issue by calling my method in order to avoid risking an exception. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-19 Thread Michael Ludwig
Hi Christopher, thanks for a long and detailed response. Christopher Schultz schrieb am 18.11.2008 um 16:26:23 (-0500): > Michael Ludwig wrote: > > I thought it helpful to have a trace of the methods getting called > One way to do it is to use a "proxy object". If yo

Re: Configuring JNDI resources

2008-11-18 Thread Michael Ludwig
tp://www.atlassian.com/software/jira/docs/v3.13/databases/firebird.html Third, the following should be the best place to ask: http://tech.groups.yahoo.com/group/Firebird-Java/ I hope this helps. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-17 Thread Michael Ludwig
Michael Ludwig schrieb am 17.11.2008 um 22:34:16 (+0100): > * ../include.html > * web.xml > * WEB-INF/src/milu/IncludeServlet.java > * WEB-INF/src/milu/GuFilter.java > * WEB-INF/src/milu/HttpResponseCatcher.java > * WEB-INF/src/milu/CapturedServletOutputStream.java Correction: I

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-17 Thread Michael Ludwig
Christopher Schultz schrieb am 16.11.2008 um 19:43:00 (-0500): > Michael Ludwig wrote: > > Christopher Schultz schrieb am 12.11.2008 um 14:46:08 (-0500): > >> What you need to do is provide a unified buffer that /both/ calls > >> can write to. If you use a ByteArra

Re: Accessing User subject or User principal

2008-11-16 Thread Michael Ludwig
n my LoginModule's commit() call? You're supposed to access these values by calling getUserPrincipal() on the HttpServletRequest object. http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/ Michael Ludwig ---

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-15 Thread Michael Ludwig
Christopher Schultz schrieb am 12.11.2008 um 14:46:08 (-0500): > Michael Ludwig wrote: > > IllegalStateException: > > > > getOutputStream() has already been called for this response > > > > But I haven't called getOutputStream() - I've called getWri

Re: Tomcat threads, II

2008-11-12 Thread Michael Ludwig
d etc.. XML is so much more "in". But > I am having second thoughts now, and I will give it a try. If your data is indeed tabular, CSV is probably fine. > Some reflexes remain for a lifetime. Fortunately! Michael Ludwig --

Re: Tomcat threads, II

2008-11-12 Thread Michael Ludwig
OM or XSL, may easily consume 200 MB of RAM. If it's XSL and not done properly, five minutes of CPU hogging are easily attainable :-) I'd ask the vendor to explain what's going on. Michael Ludwig - To start

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-11 Thread Michael Ludwig
Michael Ludwig schrieb am 12.11.2008 um 02:37:29 (+0100): > But even with my Filter overriding both getOutputStream() and > getWriter() and substituting buffers that will be written to, there is > a problem. Servlet S will write to one buffer, and the DefaultServlet > will write to

[Http]ServletResponseWrapper.getOutputStream()

2008-11-11 Thread Michael Ludwig
ce of the include set in the source code of S will be lost. Is this analysis correct? Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

<    1   2