Hi all,
I would like to define the order in which web-apps are loaded. The order in
which the contexts are defined in server.xml seems to be meaningless. Is
there a possibility to achive this? I got several web-apps, some depending
on the services of others, so that's why.
Regards,
Andreas
--
a second Tomcat is no option in my environment. Can a
special order be achieved somehow else?
Thank you,
Andreas
On 28 Jun 2004 at 7:02, QM wrote:
On Mon, Jun 28, 2004 at 11:23:17AM +0200, Andreas Probst wrote:
: I would like to define the order in which web-apps are loaded. The order
Hi all,
I've got a strange problem: Tomcat 4 does not use the new class or jar files
I give it. Of course I restarted Tomcat, I even rebooted Windows.
There is no way to make Tomcat use the new files. A colleage once had the
same problem. After he had deleted the old class file, Tomcat reported
Hi,
thank you for your quick response. Now it works. The reason was: I really
got the wrong class file due to a chaining of unfortunate circumstances: the
build process did not run last night and I didn't realize it because my
wristwatch showed the yesterday date (because April's got only 30
On 13 Jan 2003 at 17:35, Q. Werty wrote:
Try this :
http://admin:password@localhost/manager/reload?path=/myapp
Be aware : username and password can be catched on the wire and
in log files ...
It doesn't make a difference, whether the name and password are
put into the URL or into the
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.
, 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
Hi Santosh,
Tomcat won't serve the class files to the client, as it never
serves files below WEB-INF.
Put your class files somewhere else, but not under WEB-INF. Then
it will work.
Andreas
On 10 Jan 2003 at 2:04, Santosh Kulkarni wrote:
I'm getting the error load: class DrawChart not
it in some other folder, we need
to specify the codebase attribute too for the applet
tag.
Thanks
Santosh
--- Andreas Probst [EMAIL PROTECTED] wrote:
Hi Santosh,
Tomcat won't serve the class files to the client, as
it never
serves files below WEB-INF.
Put your class files somewhere
On 10 Jan 2003 at 14:50, David Boyer wrote:
Does anyone know of a JSP- or Servlet-based application that'll
allow browsing of a CVS repository? If I host a CVS server
locally for our developers, I'd like to use our existing platform
(Tomcat) to allow browsing (kind of like a JSP/Servlet-based
Hi Jim,
it might be that Windows cached your credentials. You could try
Slide client (jakarta sub project Slide), which requires to type
in the credentials everytime you start it.
You won't need to start the Slide server or the included Tomcat,
just the client at pathTo\jakarta-slide-
Hi Sumit,
you could read the properties file yourself as InputStream,
create a temp file from this and pass this temp file or the real
path to the temp file to the other app. It shouldn't be bad for
performance, if only done once. But you can't write to it any
more, because it's temp.
Andreas
Hi Craig,
please see intermixed.
On 2 Jan 2003 at 18:18, Craig R. McClanahan wrote:
Instances can be garbage collected IF AND ONLY IF there are no
live references to that object in a static/instance/local
variable of some other object that is also in memory. Only
instances that are no
Hi thank you,
your reply calms me down again. I guess I got a bit confused by
the preceding discussion.
Andreas
On 3 Jan 2003 at 8:59, Shapira, Yoav wrote:
Hi,
There's clearly some misconceptions on the topic of garbage
collection ;) These questions come up very often it seems, on
this
(not only
this one).
Andreas
On 3 Jan 2003 at 11:31, Craig R. McClanahan wrote:
On Fri, 3 Jan 2003, Andreas Probst wrote:
Hi Craig,
please see intermixed.
On 2 Jan 2003 at 18:18, Craig R. McClanahan wrote:
Instances can be garbage collected IF AND ONLY
Hi Vladimer,
look for servlet mapping in the archive and/or in the servlet
spec.
In web.xml you can put a servlet mapping like
servlet-mapping
servlet-namewebdav/servlet-name
url-pattern//url-pattern
/servlet-mapping
which routs every request to the servlet, which's name is
webdav.
Hi,
do you call your servlet by the pattern defined in web.xml or by
the full path with invoker servlet?
I once read, that using the invoker servlet means creating a new
instance of your servlet. Maybe that's what causes the second
init().
Hope this helps
Andreas
On 2 Jan 2003 at 17:22,
Hi,
if you're looking for 4.0.6, go to
http://jakarta.apache.org/builds/jakarta-tomcat-
4.0/release/v4.0.6/bin/
Andreas
On 1 Jan 2003 at 9:36, Ankit Patel wrote:
Where can I find a binary distribution of Tomcat 4.0.
The file jakarta-tomcat-4.0-MMDD.zip is not listed
in the following
On 19 Dec 2002 at 11:14, aps olute wrote:
The problem is someone else had written the support class. The
support class
will only take (File f) as its argument in its constructor. The
You could read your properties, put it into a temp file, which
you are guaranteed to be able to
?
what is the underlying reason.
TIA
--- Andreas Probst [EMAIL PROTECTED] wrote:
Hi,
this question has been answered many times. Look for
properties files in the archive.
Hint: Use servletContext.getResourceAsStream();
On 19 Dec 2002 at 9:20, aps olute wrote
Hi,
this question has been answered many times. Look for properties
files in the archive.
Hint: Use servletContext.getResourceAsStream();
On 19 Dec 2002 at 9:20, aps olute wrote:
Greetings,
I have been trying to do the following using Tomcat
4.1.12:
1) Attempt to
Hi Zsolt,
I personally find it best to read the response on top and to be
able to afterwards read the full request if necessary. So I
don't need to search it between the hundreds of messages that
come during a day. As bandwiths doesn't matter today, the
increased size shouldn't be a problem.
Hi Erik,
now you have already been told, where to look in the first
place.
I found Hunter's explanation of ServletResponseWrappers etc. not
so easy to understand. If you have questions with this, I
recommend the following message:
From: Andreas Probst [EMAIL PROTECTED]
To: Tomcat Users List
Hi Mike,
try http://name:pass@www.
How do you know the password?
Andreas
On 6 Dec 2002 at 8:33, J Doe wrote:
Background: Consider two webapps: foo and bar. When a
user of foo performs a certain action, foo shares
files with bar by calling actions on each other via
HTTP.
We are
2002 at 19:04, Andreas Probst wrote:
Hi Mike,
try http://name:pass@www.
How do you know the password?
Andreas
On 6 Dec 2002 at 8:33, J Doe wrote:
Background: Consider two webapps: foo and bar. When a
user of foo performs a certain action, foo shares
files with bar
Hi Reynir,
how can you get the Authentication header? As far as I know the
only information you can get is the Principal and the username,
but not the password, neither clear nor encoded.
Andreas
On 2 Dec 2002 at 9:14, Reynir Hübner wrote:
Hi,
Depending on the browser and authentication
Hi Esteban,
try
p.getClass().getResourceAsStream(/WEB-INF/icard.properties);
(inside WEB-INF)
or
p.getClass().getResourceAsStream(/WEB-
INF/classes/icard.properties);
(inside classes)
or
p.getClass().getResourceAsStream(/WEB-
INF/lib/icard.properties);
(inside lib)
If this doesn't work, try
to place all .properties
files.
is that possible?...
Best regards,
Esteban
- Original Message -
From: Andreas Probst [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 12:57 PM
Subject: Re: Tomcat 4.0.3 getResourceAsStream
Hi Esteban,
try
On 28 Nov 2002 at 17:11, David Brown wrote:
Tushar Kulkarni writes:
Hi,
I have installed Tomcat4.1. I want to change the directory
webapps\examples\JSP to say C:\myExamples. So that I can store
my jsp files in to the myexamples directory and access it
through the browser with the
at 11:03, Andreas Probst wrote:
I can now access the folder directly above the WEB-INF folder.
Actually, I meant a folder which is directly below the WEB-INF
folder. This is still causing problems.
Thanks
Hello Peter,
did you try
public java.lang.String getRealPath
On 29 Nov 2002 at 15:43, Patrick Kosiol wrote:
deleted older messages...
Hello,
1. I do not get any expansions.
2. My DirectorySystem is:
WEB-INF
classes
myApp
client
server
Can that works that the client and the server
Hi Andrew,
there's the class org.apache.util.Base64
to encode from user input to encoded:
Base64 base64 = new Base64();
String base64Encoded = new String(base64.encode(userPass.getBytes()));
What you want is to decode. I suppose method decode would do.
Regards,
Andreas
On 27 Nov
Hi Emma,
don't move everything to Tomcat, copy it. Keep your system
%classpath% as you have and want it. BUT, put (copy) all the
resources you need in your webapp in the appropriate directory,
i.e. WEB-INF/lib or if they are classes to WEB-INF/classes.
Maybe the Application Developers' Guide
Please, calm down.
I'm not a paid support staff.
On 27 Nov 2002 at 12:22, Pae Choi wrote:
Didn't you see the posting that came from original poster again.
I don't want to move everything
to tomcat, I want tomcat to read from the classpath and this way
find the files. Is this possible?
Hi Paul,
at compile time you need to have servlet.jar inside your
classpath.
See the Application Developers' Guide at
pathToTomcat/webapps/tomcat-docs/appdev/index.html
Andreas
On 26 Nov 2002 at 16:36, [EMAIL PROTECTED] wrote:
I tried debugging the source through, my IDE and it threw a
Hi,
try to set the complete path like
CLASSPATH=.;c:\path\to\lib\bootstrap.jar etc.
Maybe also without quotes.
In a message today it was suggested not to mix forward and back
slashes as you did. Subject was:
Re: Problems running Tomcat from command line
I hope this helps. I can't help you with
Hi Hari,
this has been discussed several times. Try to search the
archive.
Andreas
On 25 Nov 2002 at 11:36, Hari Venkatesan wrote:
Have anybody tried creating multiple tomcat instances. Is there
any documentation that explains this step by step?
Hari
--
To unsubscribe, e-mail:
Hello David!
On 25 Nov 2002 at 9:25, David Brown wrote:
Andreas Probst writes:
Hi David,
don't put the class files and jars, which you need for an
applet, below WEB-INF. Tomcat won't serve these files to the
user's browser. Just put these files in your webapp's
directory
Hi David,
don't put the class files and jars, which you need for an
applet, below WEB-INF. Tomcat won't serve these files to the
user's browser. Just put these files in your webapp's directory.
If you need the same classes also on the server, than you need
to have two copies of them.
Hope
Hello,
maybe you could save the absolute path inside a properties file
or pass it as an init parameter in web.xml. For each location of
your app you would have to set this path appropriately. You
could use absolute paths and wouldn't need to change the source
code of the application.
or whatever is
appropriate. As this Wrapper implements HttpServletRequest and
ServletRequest you can pass this in chain.doFilter...
Look for the following message in the archive. It descibes
ResponseWrapper:
Date: Mon, 21 Oct 2002 12:43:27 +0200
From: Andreas Probst [EMAIL PROTECTED]
Subject: Re
Hi Josh,
yes it is, but in my opinion it's a bit hidden. As starting
January with 0 isn't what one would expect, it should be
stressed more in the docs.
in java.util.Calendar:
public static final int MONTH
Field number for get and set indicating the month. This is a calendar-specific
Hi Peter,
try this batch file (startAndStop.bat):
echo off
echo.
echo Calling startup
echo.
call startup.bat
echo.
echo Started
echo.
pause
echo.
echo Calling shutdown
echo.
call shutdown.bat
echo.
echo Shut down
echo.
pause
startAndStop.bat
The pause command is necessary,
double click tomcathome/bin/startup.bat
If you get an Out of Environment Space Error Message
see my message from 9 September 2002 14:17:52 +0200 (Subject:
RE: Tomcat 3.1.* config problem)
Andreas
On 3 Nov 2002 at 23:40, CARLOS RESENDIZ REBOLLO wrote:
HOW I CANT RUNN JAKARTA_TOMCAT ON
On 1 Nov 2002 at 14:54, Ben Austin wrote:
What software would you recommend for compiling servlets?
Try Jakarta Ant
See Application Developer Guide at
tomcathome/webapps/tomcat-docs/appdev/index.html
--
To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org
For
Hi Chris,
you could set your classpath in the tomcat startup script. But
this is not recommended. There were messages a few days ago
explaining this.
Besides, it might not always be desirable that Tomcat knows when
classes change...
Andreas
On 2 Nov 2002 at 7:52, Chris gokey wrote:
Under
Hi Ryan,
you shouldn't have your source files mixed up with Tomcat. You
should rather develop somewhere else and use a build tool like
Jakarta Ant to deploy your app to Tomcat.
Craig's App Developer Guide at
tomcathome/webapps/tomcat-docs/appdev/index.html
gives a very good introduction into
Hi Fernando,
On 24 Oct 2002 at 19:51, Correo wrote:
can one web-server run on windows 98 ?
Yes, but I wouldn't recommend this as Win98 is too instable.
Where I download web server ?
Tomcat as application server: http://jakarta.apache.org/tomcat
Apache as web server: maybe
Hi CC,
I also wanted to have them in WEB-INF. The following code works
for me (TC 4.0.4). You can even rename the log4j.properties to
whatever you want. This solution is supposed to work in not
expanded wars, too.
InputStream log4jPropsIn =
Hi,
you could extend HttpServletResponseWrapper. You overwrite all
methods which you are interested in, save the values and call
the super method, so the underlying HttpServletResponse knows
them. Additionally you write getter methods, which return the
set values.
Example:
public class
Forgot one thing. See intermixed.
On 21 Oct 2002 at 12:40, Andreas Probst wrote:
Hi,
you could extend HttpServletResponseWrapper. You overwrite all
methods which you are interested in, save the values and call
the super method, so the underlying HttpServletResponse knows
them
Hi Zsolt,
there was a message from Craig R. McClanahan on Tuesday,
September 10, 2002 10:48 PM. He wrote:
...
* You are opening an HTML element like table or p and not
closing it
before the flush, and writing to a browser that does not
incrementally render (like Netscape 4.x).
...
Hi Bryan,
better ask at Slide Users Mailing List slide-
[EMAIL PROTECTED].
/files is specified in Domain.xml, see
filespath/files/filespath.
Files can be found in the folder specified in
contentstore classname=slidestore.reference.FileContentStore
parameter
Hi Mehdi,
I have my properties file in /WEB-INF. Eclipse doesn't delete it
there. I access it with
InputStream propsIn = servletContext.getResourceAsStream(/WEB-
INF/dms.properties);
props.load(propsIn);
As far as I know this also works when the web-app ist deployed
as a war without
http://www.bluewave.com
Tel. +44 (0)20 7479 8394
~~
Andreas Probst
= sc.getRealPath(/);
Donie
-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]]
Sent: 08 October 2002 16:31
To: Tomcat Users List
Subject: Re: How to specify the location of a properties file.
Hi Mehdi,
you could get the resource stream from within
Hi Scott,
you could simply have 3 Tomcats, e.g. .../tomcat1, .../tomcat2,
.../tomcat3. All you need is to have 3 icons linked to the right
startup script. If you run only one at a time it will work fine.
Andreas
On 7 Oct 2002 at 14:51, Scott Goldstein wrote:
At any one time, I have
Hi Uma,
it seems you installed Tomcat as a service. You could deinstall
this service or set it to manual start. Then you should be able
to start Tomcat manually from the script.
On Sun, 29 Sep 2002 19:30:50 -0500 there was a message from
Jacob Kjome (Subject: Re: Need Help ASAP w. Tomcat
Hi Alphonsus,
if you prefer reading old messages in your email client, you can
get old threads be sending a message to
[EMAIL PROTECTED]
This will give you all messages with the same subject as message
12345. The difficulty here is to obtain the right message
number. I observed that the
Hi Ed,
I'm not sure, what your question is. Let me try to answer like
this: Tomcat will look for class files and jars in the various
classes and libs directories. Read pathto/tomcat-doc/class-
loader-howto.html to know exactly.
You can have your application's directory anywhere, if you
how to sign java applet
read
pathTo/j2sdk1.4.0/docs/guide/security/SecurityToolsSummary.html
Summary:
- Put classes into jar
- sign jar
Andreas
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi, I have setup the web.xml to direct request to .xml to my servlet
However, I do not know how to write the servlet inorder to have it
perform jobs I want it to do. Anyone know of any guides on writing it or
know how to write it? Thanks in advance.
The sun site has a tutorial. Search
Hi David,
if it weren't Apache I would say: try
HttpServletRequest.getUserPrincipal().getName(). Maybe it could
be that this also works with Apache...
Andreas
I'm trying to retrieve the userid that logged into apache and accessed
the current JSP page. How can I get this info?
Hi all,
I know there is a way to get the user name by calling
HttpServletRequest.getUserPrincipal().getName(). I also need the
password. How can this be achieved?
Thanks in advance.
Andreas
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Hi all,
I need to know the context path of my web app. If I have a
HttpServletRequest req, I can get
String contextPath = req.getContextPath();
Now, what can I do within init()? I havn't got a
HttpServletRequest there. How do I get the context path?
Thanks in advance.
Andreas
--
To
Hi all!
If you have a HttpServletRequest req,
you can get
String contextPath = req.getContextPath();
This would give you /myapp.
My question is: How can I get to know the context path in
init(), where I don't have a HttpServletRequest?
have you tried using getServletContext() or
Hi Samantha,
up to Win98 Windows loads c:\autoexec.bat during startup. No
other autexec.bat is read. You can have more than one, but only
the one in c:\ is processed.
To run Tomcat you don't need the classpath variable as far as I
know. As long as you don't need it for other purposes don't
Thanks Tony ...
I'll try this later as I haven't got it installed at my machine at work
more worrying I think is how to set up the JAVA_HOME variable
any ideas as to where I can locate more detailed info would be much
appreciated ...
For the out-of-memory you can simply add the
Hi Michenaud,
using Ant together with Eclipse might be an option. You can
run Ant from inside Eclipse by right-clicking the build.xml
file and choosing the right operation (I now don't know how it
is called).
Andreas
Hi,
I use the editor Eclipse but when i launch
Rebuild all, it deletes
think i will use ant..
But what about adding WEB-INF/config to the CLASSPATH ?
How can i do that automatically for all tomcat projects ?
-Message d'origine-
De : Andreas Probst [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 20 août 2002 09:37
À : Tomcat Users List
Objet : Re: web-inf
Obviously it does serialization. It loads a session from
persistent storage. Serialization is a means to make objects
persistent. Having written that I must confess I don't know
about sessions in Tomcat...
I am not asking tomcat to serialize my app, nor do I
have any serialization in this
Hi,
look at http://localhost:8080/tomcat-docs/manager-howto.html.
There it says You can add the manager role to the comma-delimited roles attriute for
one or more existing users, and/or create new users with that assigned role.
So just add ,manager to one of those users. Then you can use this
On Mon, 15 Jul 2002, Andreas Probst wrote:
Hi all,
does Tomcat really look into tomcatdir/server/lib? For me it seems
Tomcat doesn't.
This directory is only visible to the classloader for Tomcat itself, not
for webapps. There is a special rule that makes servlet classes
.
Andreas Probst
Brian,
Tomcat looks for your classes under
Tomcatdir/webapps/yourapp/WEB-INF/classes and Tomcatdir/common/classes and
looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib ,
Tomcatdir/common/lib (and Tomcatdir/server/lib but you shouldn't put your
stuff in here)
Andy
74 matches
Mail list logo