IE uses some voodoo logic to decide when to show it's own error page or not. Anytime
it get's something other than a HTTP 200 or
302, it looks at the HTML returned with it, and if it "seems" to be a well-formed html
doc, and/or exceeds a certain length, then it
will show that HTML, else it decide
Thanks Chris, but here is the part I don't exactly understand :
>The webapp signifies its desire to use that resource by including a complimentary
> section in the deployment
descriptor.
A webapp ( at least under tomcat 4.1 ) does not require the section to
be in place, for it to use a jndi re
I have a web app containing resource files in several jar files, but I am unable to
access the resources at runtime unless they are
exploded into the classes directory.
When trying to access the resource files using ClassLoader.getResourceAsStream(
"/meta-inf/com/kvasar/data.xml" ) I always get
Adding the following lines to your deployment descriptor ( web.xml ) will do the trick
:
Entire Application
/*
CONFIDENTIAL
However - Does anyone k
My guess is you have some kind of job that runs at night that kicks or restarts your
dB server ??
See if restarting your MySQL server in the middle of the day produces the same results.
Anyway to make DBCP tolerant of the database dissapearing, try adding
autoReconnect=true to your jdbc url. As
Sorry, not sure which build 1.4.2_02
but I am happily running Tomcat 4.1.27 on Linux RH 9 & Win 2K Server SP4, both with
Sun's Java 1.4.2-b28
> -Original Message-
> From: David Muller [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 11:26 AM
> To: [EMAIL PROTECTED]
> Subject
thanks, but the whole point of this is to persist a property across restarts - whether
they be the entire VM or just the web-app.
Is there a consistent wat to persist property information for the web-app to the
filesystem, in the same way that sessions can be
persisted ?
I know that the servlet
ted that 4.1.xx of Tomcat behaved exactly as I described. He also
> stated that Tomcat 5 has the behavior I desired. If you are using Tomcat 5,
> this would confirm his explanation.
>
>
> -Original Message-
> From: Steph Richardson [mailto:[EMAIL PROTECTED]
> Sent:
I'm really interested because you have exactly the setup that I am using in production.
Although I'm not sure why you are concerned about how/where the war file get's
exploded.
In your lingo I use a SHAREDSETUP.xml which explicitly has a context with attribute
docbase="/home/appbase/SHAREDSETUP.
Yes it is possible. I am currently using it, there was some discussion on this :
http://www.mail-archive.com/[EMAIL PROTECTED]/msg100350.html
I think your problem may be that you haven't set the compiler="jasper41" attribute in
the jspc element, as in :
> -Original Message-
> From:
I am looking for the most standard and lightweight way to persist some properties
about a web application across restarts of the web
application or the entire server.
Something like the ServletContext.setAttribute() method, but with the persistence
ability that you get from Http sessions would b
Randy,
Because you are doing an RequestDispatcher.include() the my.jsp page is served up in
the same HTTP Response that is setting the
cookies.
my.jsp then looks in the Request for the cookies and doesn't find them there, because
it's looking at the same HTTP Request that was
originally sent to
; ).
When I am deploying this web-app as a war file, I can detect I am a war file at
runtime because ( getRealPath( "" ) == null ), but
is there a consistent way to read a file from this war file ?
Thanks
--------
Steph Richardson
Kvas
't work
> I still can connect to http://localhost:8080/secure/
>
> Twan
> - Original Message -
> From: "Steph Richardson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, October 12, 2003 5:17 PM
>
You can have tomcat automatically make redirects to https ( and whatever port is
configured in the "redirectPort" attribute of your
http Connecter - 443 usually ), you can add some constraints in web.xml. Try this
altered for whatever directories you want to be
https only :
Thanks Yoav,
I have tried OptimizeIt which does not seem to have the same problem with idle IO time
as JProfiler, and so I got much different (
and better ) results. Some tech staff at ej-technologies, told me that the next
release of JProfiler in a few months will have a
seperate IO state that
) but I am
scared by the use of the terms C++ & JFC on the
intro page.
Any other suggestions - especially for something that will work well with Tomcat &
understands how to treat time spent in the IO
libs.
Thanks,
Steph
> -Original Message-
> From: Steph Richardson
free, and preferably a java based
thing that I could run elsewhere, and that I could wrap in Ant tasks, and that
supports https.
Suggestions appreciated.
--------
Steph Richardson
Kvasar Technology LLC
HQ: suite 106, 822 Boylston st., Chestnut Hill, MA
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant
> -Original Message-
> From: SuniX [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 1:37 PM
> To: Tomcat Users List
> Subject: Re: CVS with tomcat
>
>
> Thank you
Sounds like your problem can be easily solved by reading the manpage, as the previous
email from Paul suggests.
man chkconfig
will tell you exactly why "service service-name does not support chkconfig"
The whole point of chkconfig is to manage the installing of the service for you ( e.g.
symlin
Sounds like your problem can be easily solved by reading the manpage, as the previous
email from Paul suggests.
man chkconfig
will tell you exactly why "service service-name does not support chkconfig"
you need specially formatted comments starting with something like "# chkconfig : 2345
80 20"
I messed around with this quite a bit because of context-params that we kept updating
in web.xml, but that didn't update when we did
a reload.
I read the documentation that said that stop & restart of a web-app would reread the
web.xml, however in our version 4.0.6 this was
NOT the case.
We have
There was a recent thread on doing this with Ant, search for subject
"Jasper, JSPC, Ant and Precompiling JSP's"
Otherwise, JspC will not create .class files for you, but the java files that JspC
creates can just be compiled with javac, using
Tomcat's classpath
TOMCAT_HOME/common/lib/*.jar
TOMCAT_
this is just an IIS worm ( Nimda I think ) on someone else's server, sending requests
to yours. You can see that all the requests
are returning a 404. Almost everyone sees this at some stage. Don't worry about it.
steph
> -Original Message-
> From: Antony paul [mailto:[EMAIL PROTECTED]
>
stood what that attribute was for in the Ant
> Manual. I will try it and verify if the packaging comes out right.
>
> If I understand correctly, I will still need to walk the directories
> with the forEach task to get them compiled to classes, is this correct?
>
> thanks again f
Juraj
Look for TOMCAT_HOME/server/lib/catalina-ant.jar and copy it to your ANT_HOME/lib
directory.
Then you need to define the targets, and add some tasks like this :
I didn't realize someone had
> contributed a forEach task.
>
> I'd still like to hear about if theres any work ongoing in relation to
> JspC and precompilation of entire webapplications in Tomcat?
>
> thanks again,
> Mark
>
>
> Steph Richardson wrote:
>
>
> -Original Message-
> From: Steph Richardson [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 7:06 PM
> To: Tomcat Users List
> Subject: RE: Jasper, JSPC, Ant and Precompiling JSP's
>
>
>
> That is EXACTLY what I am trying to do today. I've too
That is EXACTLY what I am trying to do today. I've tooled around in the ant code, and
it seems this is more of a jasper issue than
an ant one, because ant passes a long list of files to jasper, with the unwanted
pathnames that end up as part of your package name.
I'm pretty sure if you used som
I assume any html type tags that may be included in the text, you would want rendered
as visible HTML tags in the browser. So use a
HTML encoding method. There doesn't seem to be a JRE standard for this, so something
like this will do it :
public static String HTMLEncode( String unenc )
Look for catalina-ant.jar - probably in $TOMCAT_HOME/server/lib. Copy it to your
$ANT_HOME/lib.
We use these in our build files - I included the XML fragments from our build files if
they're useful ( obviously you need to define
a bunch of props used in these examples ) :
Hi,
I am trying to include jsp fragments that are located in an archive file.
I have an environment, where several web-apps share a set of common include files,
that each web-app statically includes, with the
<%@ include file="" %> directive.
For the development version of this environment, I
32 matches
Mail list logo