Hallo,
unter Ihrer E-Mail-Absenderadresse tomcat-user@jakarta.apache.org liegt
uns leider keine Anmeldung vor.
Ich bitte Sie, uns Ihre Anfrage noch einmal von der E-Mail-Adresse zu
senden, die bei uns registriert ist.
Aus datenschutzrechtlichen Gruenden duerfen wir nur dann persoenliche
Hi
I'm having a problem reclaiming connections in my database connection pool.
I'm using the standard db conn pooling with Tomcat 5.5.9 with MySQL.
I release the connection as well as close the PreparedStatement in the code
after use. However, I still get errors with logEnabled set to true
I will be out of the office starting 06/09/2005 and will not return until
07/09/2005.
Please call me on my mobile in case of urgency: +33 6 84 75 80 58
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
gjl wrote:
Thanks very much to read my question.
I have tomcat5.0 for Win32 installed locally on
Windows 2k, SP4. I'm trying to run a namazu.cgi.exe (a Full-Text Search
Engine. that's not Perl scripts ,but a binary file) .
the file is in Tomcat 5.0\webapps\XXX\WEB-INF\cgi ,and I set the
Hi all,
I'm using tomcat 5.0.28 in Linux environment.
In doPost(...) method i'm asking HttpServletResponse's output stream.
Tomcat provide me with
*org.apache.coyote.tomcat5.CoyoteResponseFacade *getOutputStream(),
which gives me a chunked output stream. Providing a chunked output
stream
Hello,
We are facing a question here. How to integrate an old
existing php site inside a tomcat container.
I think about 2 possible solutions:
1) run apache+php on a specific port and have tomcat
do some proxying on a url. (like http://server/php/* - apache-php)
2) create a webapplication
servletContext.getRealPath() is real path to the context path + the argument
...
So if you say servletContext.getRealPath(hithere) .. It will return
C:\path\to\tomcat\webapps\tool\hithere
Regards
Guru
-Original Message-
From: Franz-Josef Herpers [mailto:[EMAIL PROTECTED]
Sent: 05
Choose 1.
But with some modifications
apache + php + mod_jk - tomcat
Viorel Dragomir
.
..
---
- Original Message -
From: David Delbecq
To: Tomcat Users List
Sent: Tuesday, September 06, 2005 10:00
Subject: use php
Franz-Josef Herpers wrote:
Hi,
I've a problem when using ServletContext#getRealPath() with Tomcat 5.5.9.
My web application resides under the name tool in the webapps
directory. When I call
servletContext.getRealPath(request.getContextPath() I get the real
path but always with the context
Le Mardi 6 Septembre 2005 11:07, Viorel Dragomir a écrit :
Choose 1.
But with some modifications
apache + php + mod_jk - tomcat
am not used to apache configuration, and have read several mails related
to mod_jk problem since am watching this mailing list (well , so guess what, am
a bit
http://www.faqs.org/rfcs/rfc2396.html section 3.3 seems to be the best
reference so far.
This RFC only specifies correct URI syntax, it does not mandate how that
URI is used under any scheme (like http:) is to be used.
Darryl L. Miles wrote:
The reference you cite
Hi,
Edmund Urbani wrote:
the getRealPath method simply returns a path inside the webapp's
directory. eg. you can do getRealPath(images/someimg.jpg) and get the
actual filesystem path for that file, so you can access it using
java.io.File and do something with it. getRealPath(/) should give
Hi all,
Using tomcat 5.0.28 embedded in an application server. In this tomcat, I have
an application in which classes and libs are symlinks to other parts of the
FileSystem.
I tried several AllowSymlink configurations (inside contetx, outside context,
etc.) and several catalina.policy
Aye. It just states for that, amongst others, amphersand and semi-colon
are reserved characters within the query string.
This got me looking coz I assumed that the structure of the http get
query string was defined somewhere in rfc rather than just a convention.
I found a few resources
On 06/09/2005 11:12, Francois JEANMOUGIN wrote:
Hi all,
Using tomcat 5.0.28 embedded in an application server. In this tomcat, I have
an application in which classes and libs are symlinks to other parts of the
FileSystem.
I tried several AllowSymlink configurations (inside contetx, outside
Hi!
I simple add this lines (in bold) to server.xml
Ok, as ususal, the problem was that the application server used an API that
do not restart tomcat but simply restart the Catalina Engine, so it was not
reading the conf files.
Your hellp helped me to search somewhere else for the problem.
Hello
Should I have one handler with many methods or more handlers with less methods
(1-2)?
Thanks!
___
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre.
Many small ones.
-Original Message-
From: Raueber Hotzenplotz [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 10:50
To: tomcat-user@jakarta.apache.org
Subject: What's better, having one large servlet or many small ones?
Hello
Should I have one handler with many methods or more
Hallo,
leider koennen wir den genauen Sachverhalt Ihres Anliegens nicht
nachvollziehen.
Bitte schildern Sie uns Ihr Anliegen noch etwas ausfuehrlicher, damit
wir Ihnen weiterhelfen koennen.
Unser Tipp:
Nennen Sie bei Ihren Anfragen auch immer Ihren Mitgliedsnamen, die der
Beteiligten und die
http://ppewww.ph.gla.ac.uk/~flavell/www/formgetbyurl.html Not sure what
authorative basis this has, but it did turn up from NCSA based CGI
specifications of yesteryear.
Maybe the MIME specification for application/x-www-form-urlencoded
wherever that is (cant find it either).
It must be
Hi Nicolas,
Thanks for your reply, I really appreciate your help. I'm not sure I
fully understand your solution. I see now that the webXmlFragment
provides a convenient way to generate the XML needed for the Servlets
but that have bizarre names.
Let's say I have a jsp:
If you want to disable chunked encoding - you need to determine how much data
you will send so setContentLength can be called.
-Tim
Saminda Abeyruwan wrote:
Hi all,
I'm using tomcat 5.0.28 in Linux environment.
In doPost(...) method i'm asking HttpServletResponse's output stream.
Tomcat
What you see looks like normal jasper name mangling of generated pages.
You use: http://myserver:8080/RichardsApp/DoSomething.jsp
I presume there is also a generated mapping entry, that you may have
overlooked:
servlet-mapping
servlet-nameRichardsApp.DoSomething_jsp/servlet-name
Tim Funk wrote:
If you want to disable chunked encoding - you need to determine how
much data you will send so setContentLength can be called.
-Tim
Hi Tim,
Thanks for the reply,
Is it something like,
response.setContentLength(1000);
OutputStream out = response.getOutputStream();
Yet, i
I thought if setContentLength() is used, then chunked encoding is not used.
Is that not the case?
-Tim
Saminda Abeyruwan wrote:
Tim Funk wrote:
If you want to disable chunked encoding - you need to determine how
much data you will send so setContentLength can be called.
-Tim
Hi Tim,
We've been tracking a nasty issue in our web application when using
Tomcat 5.0.28 and JSTL.
If we call a method from JSTL, any code that tries to access the
AccessControlContext behaves differently than it would if called
directly in a JSP using plain java.
e.g.
If we have a utility
Hi,
This is quite ugly but we are running out of ideas.
We are currently experiencing stange behaviour of tomcat (or the VM).
Our tomcat hangs (not reproduceable, but probably on parallel requests
to similar methods) in session.getAttibute():
We checked the source code of the HashMap,
I have seen instances of a HashMap whose entries got circularly
linked, I assume, due to updates which where not thread safe.
Any thread using a get() on such a HashMap will spin forever
chasing its tail.
Cheers,
Larry
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Eureka! I get it now. :)
Indeed, I hadn't noticed the servlet-mapping section down the bottom. I
looked at the xml and foolishly assumed that it merely repeated all the
way to the bottom. Now that you've pointed out that, it all makes sense.
Thanks for all your help, I shall have a play and
On Tue, 2005-09-06 at 08:47 -0400, Larry Isaacs wrote:
I have seen instances of a HashMap whose entries got circularly
linked, I assume, due to updates which where not thread safe.
Any thread using a get() on such a HashMap will spin forever
chasing its tail.
Cheers,
Larry
Could be
It might be because 1.2.14 crashes on Apache 2 + Solaris? (from my
observations and tests)
See my thread which, so far, has no responses outside of my own: JK
1.2.14.1 SIG BUS Error on Solaris 9
Byron
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday,
Raueber
Keep in mind that one day it could be many people reading your code, so I
would suggest you have many servlets doing specific things.
Regardless of whether it's a servlet, jsp or Java application think of future
prospects of your code. Ideally you could hand it to anyone and they
Hi
I am using IIS 5.0 with Tomcat 4.0.6
My web application is working fine except at one place
I have a single page, and within this page there is an IFRAME which
source referring to another page. And somehow the session in the IFRAME
is never the same than in the main page. I am using
Solely my opinion based on experience with 100's of servlets- it doesn't
matter. If the application is complex enough to worry about this, get a
MVC framework like struts for better organization inside the servlet and
let it draw the distinctions between pieces of the application.
Byron
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 06, 2005 9:03 AM
To: Tomcat Users List
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
On Tue, 2005-09-06 at 08:47 -0400, Larry Isaacs wrote:
I have seen instances
Ah, I thought it was all too good to be true. Now that I have an
understanding of how to put it all together, I have given it a go but
hit another snag.
Remember the use of the 'errorOnUseBeanInvalidClassAttribute' flag?
Well, of course, that means that when the JSPs were turned into Java
When JDBCRealm is implemented,
1. after login, can the HttpServletRequest of Struts Action get the username?
2. after login, if user ever bookmarked a page or something, can
Tomcat force the user go back to the beginning page?
Thanks
Thanks Mark, found some good info. Another question:
Is is possible to force a forwards for welcome pages with Tomcat. Is there
an engine setting for that? Or would I be forced to change the Tomcat
source. I notice with other web servers (i.e. IIS) I can specify a default
page which returns
I have a server which is being used only for XML servlets. I would like
to send back error responses either as an XML error or, in the case of
a non-200 status code just to send back the status code and a single
line text message.
I set the status (which seems to work) and the text, which again
errorOnUseBeanInvalidClassAttribute (IIRC) is a test when jsp:useBean is used
without a default constructor being available.
If you are using include files which were as meant as compile time include
fragments, rename them (the include files) to jspf and they will be ignored
by the jsp
http://jakarta.apache.org/tomcat/faq/misc.html#error
-Tim
David Goodenough wrote:
I have a server which is being used only for XML servlets. I would like
to send back error responses either as an XML error or, in the case of
a non-200 status code just to send back the status code and a
If I understand you correctly your scenario is:
HashMap Entry has a linked list of X entries at one position
and entry[Y] is poiting to the first entry instead of next or null?
Correct.
But how can that happen? a JVM / Core Api bug?
The error is likely in webapp code, since the
Does anyone have a site that is running through a proxy? Could there be
something I am missing because of that?
-Original Message-
From: Julie Moore [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 1:50 PM
To: tomcat-user@jakarta.apache.org
Subject: With tomcat 5 redirects to a
Sorry, I don't understand. How will my JSP compile at all if a section
(fragment) is ignored and, presumably, omitted from the resulting java
file?
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 15:05
To: Tomcat Users List
Subject: Re: Pre-compiled
Hi all,
Is there a way to compile precompiled jsp at runtime?
i.e., I want to precompiled my jsp before deployment, but after they are
deployed I still want to make changes to the jsps that will take effect
immediately.
I want to be able to change jsp and see the changes immediately
although
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
and replace all req.getSession().setAttribute(beanName, beanValue) in
code with the call to this method (same for remove) and I've solved my
problem?
Unfortunately, you
Hi,
I have a .cvsignore file at the top level of my war file. does anyone has any
idea what this error message is about? This errors occurs when Tomcat is
started up, expanding the war file under webapps. Thanks!
Sep 6, 2005 5:09:30 AM org.apache.catalina.startup.HostConfig deployWARs
For example:
File a.jsp
% String worldVar = null; %
[EMAIL PROTECTED] file='b.jsp'%
Hello %=worldVar%
File b.jsp
%worldVar = world%
Notice b.jsp will not precompile. But then again - no one should be calling
b.jsp since its not a jsp - its a jsp fragment. It should be calld b.jspf.
I am
Can't with tomcat out of the box.
-Tim
Zachi Hazan wrote:
Hi all,
Is there a way to compile precompiled jsp at runtime?
i.e., I want to precompiled my jsp before deployment, but after they are
deployed I still want to make changes to the jsps that will take effect
immediately.
I want to be
I think you can't have that file there as the war files have to follow a
certain structure.
-Original Message-
From: Ben Wong [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 15:56
To: tomcat-user@jakarta.apache.org
Subject: tomcat war expansion fails on .cvsignore file
Hi,
I have a
Hi Tim,
Yeah, that's my exact issue, except the pages somewhat more complicated
than your example. ;o)
I've tried renaming one of them to jspf and, unsurprisingly, it has been
ignored by the JSP compiler. I'll have to take your word that it would
still work in the parent (once the reference had
So, how can I do it with tomcat not out of the box?
Tim Funk wrote:
Can't with tomcat out of the box.
-Tim
Zachi Hazan wrote:
Hi all,
Is there a way to compile precompiled jsp at runtime?
i.e., I want to precompiled my jsp before deployment, but after they
are deployed I still want to
From the jasper task all the [valid] jsp's are turned into java files and
compiled into class files. Those class files need to be a jar file in
WEB-INF/lib or inside WEB-INF/classes. The jasper task can also rewrite
web.xml so that all the mappings from the JSP -- class file are taken care of.
A lot of custom coding on your own.
You'd need a filter which traps all your precompiled servlet mappings and
then checks to see of the jsp the file was mapped to has changed. Then you'd
need to somehow manage compiling the JSP and loading the class file while
ignoring the existing mapping.
Where is the source code that makes up the JAR naming-factory-dbcp.jar
it does not appear to be inside:
jakarta-tomcat-5.5.9-src.tar.gz
--
Darryl L. Miles
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Chuck, Larry thanx.
regards
Leon
On Tue, 2005-09-06 at 09:53 -0500, Caldarale, Charles R wrote:
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
and replace all req.getSession().setAttribute(beanName, beanValue) in
From: Zachi Hazan [mailto:[EMAIL PROTECTED]
Subject: Re: compile precompile jsps at runtime
So, how can I do it with tomcat not out of the box?
One approach would be to cheat! Tomcat compiles the page when the page
is first invoked. So, you could for example define a special parameter
as
Guys,
I have been watching this thread with interest.
Does this mean that all session.setAttribute() and session.getAttribute()
should always be synchronised (for instance, inside a servlet or struts
action) provided the same hashmap is accessed by say more than one
servlet/struts action?
Kind
Tim,
Is there no way of turning the fragment (jspf) file into .class files or
do they need to remain as JSPs?
Cheers,
Richard.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 16:14
To: Tomcat Users List
Subject: Re: Pre-compiled JSPs?
From the
hihi Paul,
i tried your suggestion but it still did not work. however, i finally
found out why.
the problem web application had the following code:
try {
System.setProperty(org.apache.commons.logging.Log,
org.apache.commons.logging.impl.Log4JCategoryLog);
seems so:-)
I just wrote an util class, you may use it if you need :-)
HTH Leon
package xxx-omitted-xxx;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.PageContext;
import org.apache.log4j.Logger;
public class BeanUtil {
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
Does this mean that all session.setAttribute() and
session.getAttribute() should always be synchronised
That's the conclusion I'm reluctantly coming to, if there is the
There is no need to turn jspf into classes. The jspf are included by real jsp
files. Those jsp files are turned into the class files.
-Tim
Richard Burman wrote:
Tim,
Is there no way of turning the fragment (jspf) file into .class files or
do they need to remain as JSPs?
Cheers,
Richard.
On Tue, 2005-09-06 at 11:00 -0500, Caldarale, Charles R wrote:
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
Does this mean that all session.setAttribute() and
session.getAttribute() should always be synchronised
It seems possible to be that one user simply pressing the reload button
a few times quickly while the same page is not yet loaded can cause sync
problems to his own session; and you can't control the user.
Err... does anybody have a replacement class for HttpServlet ? A simple
access
Yes, the install creates the folders, copies the configuration files and the
dll, modifies the registry and adds the isapi filter to IIS. It does NOT add
the dll to the Windows 2003 / IIS6 Web Extensions, though. I am not sure
whether this is necessary.
Tracy
-Original Message-
From:
Hi there!
I'm using Tomcat 5.5.9 and JDK 1.5.0 and I was probbing to implement a JAAS
Authentication mechanism for may webapps.
I followed some tutorials and the Tomcat 5.5 JAASRealm configuration and I
did it in that way.
I updated the java.policy file with the next lines:
grant codeBase
No, this is the reverse of what I want. I want to STOP it sending an
HTML page, rather than the error-page tag to set it.
David
On Tuesday 06 September 2005 15:06, Tim Funk wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#error
-Tim
David Goodenough wrote:
I have a server which is
Then make the error page a jsp which clears the stream and prints what you want.
If your servlet already prints what you need, then force the buffer to be
flushed so that the response is committed and an error page is not shown.
-Tim
David Goodenough wrote:
No, this is the reverse of what
hihi Seva,
yes, your suggestion also works. i tried it to confirm, and it was my
backup plan to do in case i couldn't figure out how to *not* place
log4j.jar and commons-logging.jar into the ${Tomcat}/common/lib folder.
just fyi, it's also possible to centralize logging for the entire
servlet
On 9/2/05, Guernsey, Byron (GE Consumer Industrial)
[EMAIL PROTECTED] wrote:
I apoligize for adding to this, but I'm hoping to jar someones memory.
I gdb'ed the process now and the BUS error occurs in:
snip
Program received signal SIGBUS, Bus error.
0xfdfb4208 in service (e=0xf7c90,
On 9/6/05, David Rees [EMAIL PROTECTED] wrote:
That is the exact same core dump and back trace that I reported a
while back when running on SGI Irix. Could be a 64bit or big endian
problem?
http://marc.theaimsgroup.com/?l=tomcat-devm=112501659012202w=2
I've opened a bug for this issue:
I'm using mod_jk to connect httpd and two Tomcat servers running on
different ports. Apache httpd is acting as the front end and mod_jk is
setup to failover to the second tomcat instance in the event that the
first one goes down. Tomcat is running our own application servlet.
Before I post all
list
The information contained in this communication may be CONFIDENTIAL and is
intended only for the use of the recipient(s) named above. If you are not the
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its
Yes it it possible to centralize the logging for the entire container
including all web apps. However, this seems to be a bad practice. The
better approach is to separate the container internal logging and the
web apps logging. But I guess you know this for yourself.
-Original Message-
Hi;
I am trying to connect Tomcat 5.5 to IIS 5.1 and having zero luck.
Here is what I did:
1. Went to
http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.
2.14
2. Downloaded ran isapi_redirect-1.2.14.exe
3. Added isapi_redirect as an ISAPI filter to
Hello -
I'm running into an autodeploy issue with Tomcat 5.0.30.
In our tomcat install we are running two applications both of which are
.war archives and reside in $TOMCAT_HOME/webapps/. The issue I'm
seeing is when I run a fresh install of tomcat and drop in our
application .war
naming-factory-dbcp.jar
Have a look at Commons DBCP.
http://jakarta.apache.org/commons/dbcp/
Hope this helps.
Regards
Jason
--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693
Maybe we are talking at cross purposes. I will try to explain what I am
trying to achieve.
When I have a non-200 response ALL I want to send back is the status
code and the message inserted with the sendError. Nothing else.
Currently I just do a sendError, should I also write a zero length
Hi
I am trying to do JSP precompilation as described at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. I can run
the application fine if I do not precompile, but when I do attempt to
precompile the JSP, I get the message:
BUILD FAILED
I am exceedingly ignorant in the J2EE universe, but I did manage to get
TC5.5 talking to IIS 6 effectively (3 times, so it wasn't a fluke!).
Have you seen this doc:
http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html
It has some troubleshooting info.
Be sure to at least restart the
I know there are a number of folks in both the Struts and Tomcat
communities using Java Web Parts now, so it might not be all *that*
off-topic...
v.9 was just released. There is one new piece in the mix that, I think,
might be of interest to some... it's called the DependencyFilter. It's
I want to pass authorization from my dot.Net app to the Tomcat app.
Unsecured, everything is working fine: IIS runs the asp.net app, which
in turn loads the Tomcat app (a Macromedia Flex app to be specific).
But the asp.net app is secured, and the JK - isapi_redirect allows users
to directly
When our application starts up, it removes admin information about old user
sessions from our database; We store information such as locks and session
state in our DB. BUT, if we are running in a cluster and Tomcat stars up, we
do NOT want this to occur EXCEPT for on the first server in the
Don't use sendError.
- Call response.setStatus(int).
- Calculate the size of your body text
- Call setContentLength(value from previous step)
- Send the message in the output stream
- Profit! ;)
-Tim
David Goodenough wrote:
Maybe we are talking at cross purposes. I will try to explain what I
85 matches
Mail list logo