hello Mr. Ajay Kumar,
thanks a lot.
I am using tomcat 5.0.25 and I have the context file
in the conf/Catalina/localhost directory.
in that file where should I put the code u provided in
server.xml
after the tag is over or before the tag is closed?
thanks
Krishnakant.
Send instant messages to your
I don't think that has changed, but I could be wrong. One thought is that
unless you have a lot of apps using the DB you could move the resource to
the context for the app. Then only the app would have to be restarted.
But that begs the question, if you are changing the global db resource what
tomcat 5.5.4 on win2k server, jvm 1.4.x
it seems that every time i make a change to the server.xml (db connection
pools), i have to restart tomcat. i assume thats normal, but i was hoping maybe
not to have to do it. or maybe 5.5.9 supports something like this?
thx
---
is this possible using context.xml or some other way? im using log4j but some
output still goes to stdout (e.g System.out.println()).
thx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Hi, everyone
I am trying some configuration with my small tomcat
cluster (2 tomcats, 1 apache, connected with mod_jk2
as load balancer).
The problem is that I want to use a shared database
(Mysql) to do session replication instead of in-memory
session replication.
But to the best of my knowledg
Hello.
When using appBase with an absolute path (inside http://www.codecomments.com/archive257-2005-3-414468.html
regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Until Tomcat 5.5.9 I was specifying my java.util.logging.config.file using a
system property set using CATALINA_OPTS like the following.
CATALINA_OPTS='-Djava.util.logging.config.file=/opt/jakarta-tomcat-dev/conf/logging.properties
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl
I'm having trouble getting Apache environment variables through Tomcat
4.1, for example, I would like to get the mod_ssl additional environment
variable SSL_CLIENT_CERT.
How do I get that value on the requesting server from Apache?
Thanks.
Hi,
11Apr2005 @ 12:57 Scott Purcell thusly spake
> My question is, so I need anytype of doctype heading for this, since it is a
> xml file?
> Or do I just create the context.xml in an editor, and start with my elements?
Following is a version of a context.xml file that goes in the META-
test
--
._
:| .| |.|/.|_
:|__.|_|.|\.|_
:0421 276 282.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
In the midst of architecting a new system and considering clustering Tomcat
servers to share the same files from a NetApp mount point. Specifically,
configuring multiple instances (server.xml) of Tomcat to share the same
/usr/local/tomcat, webapps, etc. Does Catalina support this type (e.g.
maste
One mroe question:
If you are using jsvc can you still use the
$CATALINA_HOME/bin/[shutdown|startup].sh scripts to do manual tomcat
restarts?
--- August Detlefsen <[EMAIL PROTECTED]> wrote:
> Where do you get the non-buggy version? The TC 5.5 release notes
> don't
> mention anything changing
Where do you get the non-buggy version? The TC 5.5 release notes don't
mention anything changing in jsvc since version 5.5.3.
Is 5.5.9 now released? Does it include the jsvc fixes?
--- Bill Barker <[EMAIL PROTECTED]> wrote:
>
> "August Detlefsen" <[EMAIL PROTECTED]> wrote in message
> ne
Christoph Kutzinski wrote:
> Yoav Shapira wrote:
>
>> Please note that while all core features have been tested and voted
>> stable, there is a known issue in this build related to the
>> clustering module. The fix for this issue is available by itself at
>> Bugzilla, and will be included in subseq
On Apr 11, 2005 9:35 PM, Christoph Kutzinski <[EMAIL PROTECTED]> wrote:
> Yoav Shapira wrote:
>
> > Please note that while all core features have been tested and voted stable,
> > there is a known issue in this build related to the clustering module. The
> > fix
> > for this issue is available by
Maybe I am missing something, but this sounds like a data model that should
live in a database.
That way, you could have your database layer (iBATIS or Hibernate) cahce it
for you, and use standard APIs to get to the data.
Larry
On Apr 11, 2005 11:59 AM, Daxin Zuo <[EMAIL PROTECTED]> wrote:
>
I was kinda able to do what I needed by using a filter- thanks for your reply!
/kurt
Dakota Jack wrote:
I don't know if this is helpful, but if you have a front controller in
your architecture, which would be normal,, this sort of behavior would
be simple to code. Do you have a front controller?
Yoav Shapira wrote:
Please note that while all core features have been tested and voted stable,
there is a known issue in this build related to the clustering module. The fix
for this issue is available by itself at Bugzilla, and will be included in
subsequent Tomcat releases. Again, this issue onl
Simon,
I had the same problem. Then I discovered that the admin app had to be
installed under ${Catalina.home}/server/webapps rather than just
${Catalina.home}/webapps. Once I moved the directory to where the Context
docBase said it was supposed to be, it started working.
Fritz
_
You might have better luck using a redirect. This should cause the
client to request the alternate resource which Apache would then serve.
Mark
Ron Crayton wrote:
Is it possible to use Request.forward() to forward a request to an html document located on an HTTP Server?
I'm using Tomcat 5.5.7 a
Hello,
I am trying to get the logging to work for a webapp I am working on. I am using
Tomcat 5.5.7 and I am here:
http://localhost/tomcat-docs/logging.html
I followed the instructions but do not get what I assume is proper behavior.
1) created the "log4j.properties" file and placed under common
Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automatic%20Application%20Deployment
It describes all the circumstances where a 5.0.x Tomcat will do a redploy.
Mark
Richard Wang wrote:
Hello,
We are running Tomcat (version 5.0.19) with Apache (version: 2.0.5
"Should not" is rather strong and a little misleading.
What you need to keep in mind is the warning in the docs.
CAUTION - CGI scripts are used to execute programs external to the
Tomcat JVM. If you are using the Java SecurityManager this will bypass
your security policy configuration in catalin
The Apache Jakarta Tomcat team is proud to announce the immediate availability
of Tomcat 5.5.9 stable. This build contains numerous bug fixes, documentation
updates, and other improvements.
Please note that while all core features have been tested and voted stable,
there is a known issue in this b
Is it possible to use Request.forward() to forward a request to an html
document located on an HTTP Server?
I'm using Tomcat 5.5.7 and Apache 2.0.
I have a document setting in the htdocs folder of Apache 2.0 that I'm trying to
forward to from an application deployed in Tomcat 5.5.7.
I have
Mine looks like this:
...
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Monday, April 11, 2005 11:58 AM
To: tomcat-user@jakarta.apache.org
Subject: META-INF/context.xml question
Hello,
I am still configuring my Tomcat 5.5.7 on a PC. I am configuring a
Stefan,
Thank you for your reply. It is very helpful. I may use a CACHE as you
mentioned.
I like to ask another question.
1) The object I am going to cache is large, and dynamically changed
according to users actions.
2) Currently our program runs with Tomcat/Apache, it has to support other
Hello,
I am still configuring my Tomcat 5.5.7 on a PC. I am configuring a
(Apologies for the repost a minute ago... wrong button.)
From: "Wendy Smoak" <[EMAIL PROTECTED]>
> Wrapping the request sounds like a good way to go, but I'm on Tomcat 4.1
and
> the HttpRequestWrapper appears to be deprecated without suggesting a
> replacement:
>
>
http://jakarta.apache.org/tomcat
- Original Message -
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Monday, April 11, 2005 9:59 AM
Subject: Wrapping a Request (was Re: Tomcat user 'roles' question)
> Bill Barker wrote:
> > You could use a Valve, but it sounds like for what you want, you could
>
From: "Adam Lipscombe" <[EMAIL PROTECTED]>
> Most of the time this works fine. However occasionally the session object
> that is used by the caller (i.e. the JSP) and the dialog are not the same
> instance. i.e. The ActionErrors Object is stored in session X but the
modal
> dialog JSP uses session
Hello,
We are running Tomcat (version 5.0.19) with Apache (version: 2.0.50)
redirection on Windows 2000 (with latest fixes and patches). Last week, we
observed that Tomcat unloaded and then reloaded our main application context
without any obvious reasons. We have already searched without
Bill Barker wrote:
> You could use a Valve, but it sounds like for what you want, you could
> simply wrap the HttpServletRequest in your Filter with a wrapper that
> overrides isUserInRole.
Wrapping the request sounds like a good way to go, but I'm on Tomcat 4.1 and
the HttpRequestWrapper appears
Is there any chance that you are finding these results while running
two instances of the same browser on the same client machine?
On Apr 11, 2005 9:56 AM, Adam Lipscombe <[EMAIL PROTECTED]> wrote:
> Folks,
>
> I have an odd problem the manifests intermittently with TC 5.0.27 and Struts
> 1.1.
I don't know if this is helpful, but if you have a front controller in
your architecture, which would be normal,, this sort of behavior would
be simple to code. Do you have a front controller?
On Apr 11, 2005 9:43 AM, Kurt Overberg <[EMAIL PROTECTED]> wrote:
>
> Gang,
>
> I've scoured the net l
Folks,
I have an odd problem the manifests intermittently with TC 5.0.27 and Struts
1.1. I am not sure if it's a TC problem or Struts. I think its TC, but
apologies if this is not the correct forum.
The problem is this:
If validation errors are detected the app code stores them in the Struts
Ac
> From: Fernando Salazar de Paz [mailto:[EMAIL PROTECTED]
> when I request a PDF file a new
> (second) request is made by Acrobat Reader. Acrobat Reader
> uses ISO-8859-1
> and Tomcat will not be able to decode the uri properly. What
> is the reason for the second request ?
The Acrobat reader I
The problem arises with pdf files, for example. Although I am using IE (it
uses UTF-8 in the encoding process), when I request a PDF file a new
(second) request is made by Acrobat Reader. Acrobat Reader uses ISO-8859-1
and Tomcat will not be able to decode the uri properly. What is the reason
for t
Gang,
I've scoured the net looking for something that would help me do this- currently
looking at Wrapping the HttpServletRequest, but not having much luck.
Environment: tomcat 5.0.28 on linux, also using struts 1.1
I'm trying to make my system so that if a user asks for something like
/pages/te
I must be going mad! I'm sure i had this working, maybe i was looking at
the wrong page when i was testing it, but i just cannot get this to work, even
with the ammended web.xml as below:
any suggestions?
http://java.sun.com/xml/ns/j2ee_
(http://java.sun.com/xml/ns/j2ee) "
xmlns:xsi
Hello,
I have a problem of ping pong between the connector mod_jk and tomcat 4.0.4
which entraine a significant load network.
Sequence 1234 APACHE MOD_JK to TOMCAT
Response AB (TOMCAT to APACHE MOD_JK)
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/common/AJPv13.html
I manage to repr
I means if it is good to put a large Object in the ServletContext. This
Object contains a lot of complicated data structure, the data is dymanically
used.
In all the text books, when they tell the usage of ServletContext object,
always use simple string, int, or simple bean.
I heard before that it
thanks for your comment, that does the trick..
many thanks pg..
It appears you have two versions on your machine. And since you have not
changed the defaults you cannot run both at the same time. Shut down the
5.0.28 version and try starting the 5.5.9 version. OR change the server xml
to have the 5.5.9 listen on different ports. If the 5.0.28 is also install
I'm trying to forward a request from an app running in Tomcat 5.5.7 to an html
document outside of the app's context. The html document is in the htdocs
folder of Apache HTTP Server 2.0.
My context.xml document for the app looks like this:
The code looks like this:
Serv
Well yes it does make a lot of sense, but is more a question answered by
design patterns. It's a little beyond the scope of Tomcat docs to
address issues like separation of roles. Both Struts and Spring
projects address issues like this with the Model-View-Controller (MVC)
pattern and there a
Hi,
I downloaded the Tomcat 5.5.9 beta and unzipped it. I get a message saying that
it failed to install Tomcat Service and gives me the option to abort it or
ignore it. I chose ignore and it finished unzipping. Then it shows a progress
bar about service being installed. When all this finished I
How are you declaring your web.xml file. If you are declaring with the
servlet 2.3 DTD, you won't be able to use the ${} operators available in
the JSP 2 spec. Use the 2.4 schema instead.
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation
Using URIEncoding parameter, at Server.xml, PUT and DELETE methods works ok.
I am still having trouble with GET method.
--- Tomcat log
INFO: webdav: [HEAD] /última-guía.pdf
11-abr-2005 16:31:32 org.apache.catalina.core.Appli
Hi There,
i've build an app with jsp pages which use a bean and calls java classes.
This works fine & dandy, outside of a war file.
However, i've placed the app within a war file under webapps, removed the
original directories etc & and restarted tomcat.
Now when i load my jsp page, the t
Mail transaction failed. Partial message is available.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
·We have an application on TOMCAT 4.1.27 and IIS 5.0 on Windows 2000.
·While arriving to some pages of the application (examples : scroll bar
manipulation, direct access to the page,
), TOMCAT stops randomly. In the
TOMCAT logs, nothing is indicated.
·We have 2 server
[EMAIL PROTECTED] wrote:
yes i did exported those env variables.
but still i am getting the following error
Cannot find ./catalina.sh
This file is needed to run this program
Executables, including shell scripts, are only "found" if they're
in your PATH. Either add the $CATALINA_HOME/bin directory t
Using: tomcat 5.5.7, JTOpen 4.7 JDBC Driver for AS/400 DB2
The DBAdmin of the company I work for ends the subsystems at night
time for the backup, so the connection dies during that time and when
I try to reconnect to application server via my webapp in the morning,
it throws me exception saying th
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[EMAIL PROTECTED] wrote:
> yes i did exported those env variables.
> but still i am getting the following error
>
> Cannot find ./catalina.sh
> This file is needed to run this program
>
> I have even checked for the file permission mode.
> and also
Thank David for the below information.
This makes some sense, and I will try and make the changes. But this of course
leads to a follow-up question. Why isn't there any decent documentation to get
the DBCP running in Tomcat. I am talking about a simple example, that explains
container versions,
With Apache HTTP server and WEBDAV module you can ... Not with tomcat
standalone
-Original Message-
From: Patrick [EMAIL PROTECTED] AG [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 14:20
To: Tomcat Users List
Subject: Re: Webdav, WEB_INF
Yes what? Is it possible with tomcat standalone?
Yes what? Is it possible with tomcat standalone?
On 11.04.2005, at 15:08, Raghupathy,Gurumoorthy wrote:
Yes .. You can use an Alias
-Original Message-
From: Patrick [EMAIL PROTECTED] AG [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 13:53
To: Tomcat Users List
Subject: Re: Webdav, WEB_INF
Th
Ok, define 'no results'. In reality, the naming import isn't the only
thing that changed. Your web.xml file *looks* like 2.3 spec from what I
can see and you are using JSP 2.x spec syntax in your jsp. If you want
the JSP 2.x spec features, you need to declare your web.xml file for
servlet 2.4 s
It works.Thanks a lot.
Michal.
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 11, 2005 3:11 PM
> To: Tomcat Users List
> Subject: Re: server/webapps
>
> You need to manually place a file in the
> conf/Catalina/localhost directory.
> (YMMV on the
You need to manually place a file in the conf/Catalina/localhost directory.
(YMMV on the actual dir) The easiest way is to copy manager.xml to
mywebapp.xml and make the appropriate tweaks.
-TIm
Michal Kwiatek wrote:
How, then?
Michal.
-Original Message-
From: Tim Funk [mailto:[EMAI
Yes .. You can use an Alias
-Original Message-
From: Patrick [EMAIL PROTECTED] AG [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 13:53
To: Tomcat Users List
Subject: Re: Webdav, WEB_INF
Thanks for the Info Tim! This is too bad. That means, i have to install
Apache abd run tomcat using
Thanks for the Info Tim! This is too bad. That means, i have to install
Apache abd run tomcat using Apache as Web-Server. It is then possible
to see the WEB-INF directory!
On 11.04.2005, at 14:28, Tim Funk wrote:
IIRC - you cannot see the WEB-INF directory using the webdav webapp.
Its a constra
Internet Explorer uses UTF-8 to encode URLs and Tomcat tries "ISO-8859-1" in
decoding. The result is a wrong filename.
String fileName = URLEncoder.encode("manualín.pdf", "ISO-8859-1");
*1
System.out.println(fileName+" produce "+URLDecoder.decode(fileName,
"UTF-8"));
fileName = URLEncoder.encode
How, then?
Michal.
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 11, 2005 2:28 PM
> To: Tomcat Users List
> Subject: Re: server/webapps
>
> Yes, but not through the admin or manager webapp.
>
> -Tim
>
> Michal Kwiatek wrote:
>
> > Hello all
Hello,
My Tomcat logs this in catalina.out.
Fatal: Stack size too small. Use 'java -Xss' to increase default stack size.
I don't see a stack trace, so I can't figure out what is really going wrong
here.
My current setup is jdk 1.4.2_08 on linux 2.6.x with Tomcat 5.0.28. We are
using these paramet
IIRC - you cannot see the WEB-INF directory using the webdav webapp. Its a
constraint imposed by the servlet spec that any request to WEB-INF is not
allowed.
-Tim
Patrick Sifneos (Rolotec AG new) wrote:
Hi all
When i connect to a webdav resource, the WEB-INF directory remains
invisible. I'm run
Yes, but not through the admin or manager webapp.
-Tim
Michal Kwiatek wrote:
Hello all,
Is it possible to deploy an application from the server/webapps
directory? I would like my application to be deployed in the same way as
manager or admin application are deployed.
---
Hi all
When i connect to a webdav resource, the WEB-INF directory remains
invisible. I'm running tomcat standalone. What do i have to do to make
WEB-INF directory visible when mounting WEBDAV resources?
Thank you for any help
Patrick
--
Hello all,
Is it possible to deploy an application from the server/webapps
directory? I would like my application to be deployed in the same way as
manager or admin application are deployed.
Thanks in advance,
Michal.
-
To unsub
Hi all,
I'm using tomcat 5.5.7 with latest jsvc from cvs. In my development
environment I frequently run into the java.lang.OutOfMemoryError:
PermGen space because of many reloads of my app. To restart Tomcat I
issue 'kill -s SIGHUP $PID'. This works well when Tomcat is running
normally, but af
You can write a filter on the context and based on
request.getRemoteAddr() do the processing
Guru
-Original Message-
From: Fredrik Jonson [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 12:12
To: tomcat-user@jakarta.apache.org
Subject: Filtering remote host access from we
yes i did exported those env variables.
but still i am getting the following error
Cannot find ./catalina.sh
This file is needed to run this program
I have even checked for the file permission mode.
and also tried these commands
#dos2unix startup.sh ...
Still i am not getting.
> hi,
Hello,
I want to limit access to a specific servlet based on the requesting clients
host name and address. I'm aware of the RemoteHostValve, but as I understand
the specification it can only be used by editing the server.xml file, and I
would prefer to have a method to control it in the web.xml
Hello,
I want to limit access to a specific servlet based on the requesting clients
host name and address. I'm aware of the RemoteHostValve, but as I understand
the specification it can only be used by editing the server.xml file, and I
would prefer to have a method to control it in the web.xml
Send me the httpd.conf worker.properties and server.xml
Regards
Guru
-Original Message-
From: Spencer [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 12:02
To: tomcat-user@jakarta.apache.org
Subject: Could not init service for worker
Hi,
Goal: To have apache forward connections for a
Hi,
Goal: To have apache forward connections for a name based virtual host to
a Tomcat instance. No load balancing is fine for now.
Current state: Both Apache and Tomcat work separatly. When I request a
page that uses the connector I get a "Internal Server Error" (from
Apache). I also get th
Hi,
there was a long discussion on this topic a while ago. Search the
archives for 'detect expired session'.
Trond
ajay kumar wrote:
Hi Friends
I am developing e-commerce based web applications,I want to
check whether user session has expired, so that i will display "Your
session has exp
Hi Friends
I am developing e-commerce based web applications,I want to
check whether user session has expired, so that i will display "Your
session has expired" message to the user.So how to find out that
session expiry. This is very important as i am doing e-commerce
apllications.
Hi
I also struggled for the Tomcat Connection Pooling problem for
one week and i got the solution.
write the follwing code snippets in respective files:
-web.xml--
jdbc/TestDB
javax.sql.DataSource
Container
---
hi,
if errors occur when you try to start the server you have to set
variable such as $CATALINA_HOME and $JAVA_HOME. I've do it adding in
/etc/profile
CATALINA_HOME=/path/to/bin
JAVA_HOME=/path/to/jdkXX
export CATALINA JAVA_HOME
and it works
[EMAIL PROTECTED] wrote:
hi,
I have a proble
Did you set up CATALINA_HOME pointing to the tomcat folder?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, April 11, 2005 6:30 PM
To: tomcat-user@jakarta.apache.org
Subject: problem with installing tomcat in linux
hi,
I have a problem with installi
hi,
I have a problem with installing tomcat in linux.
i am getting the following error
The BASEDIR environment variable is not defined
This environment variable is needed to run this program
can anybody help me out.
thanx in advance,
shabeena
-
Why don't you run perl in apache and integrate it with tomcat ?
Tomcat should not be used with CGI ( security issues )
Guru
-Original Message-
From: Scholtyssek Siegfried [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 09:29
To: tomcat-user@jakarta.apache.org
Subject: HELP Tomcat CGI
Impo
> Hello,
>
> I use the Apache Tomcat.5.0.16 on the SUNOS 5.8 UNIX
>
> With Tomcat we want execute cgi-scripts. So I modified all in web.xml
> and removed the file servlets-cgi.renametojar to servlets-cgi.jar
> If I start with Netscape the follow URL:
> http://localhost:8080/cgi-bin/test.pl so
I can PUT archives but I am not be able to read them anymore.
For example:
Archive:manualín.pdf
In WebdavServlet::service
protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
> From: Yu Jie [mailto:[EMAIL PROTECTED]
> Though we know that Jakarta Slide
> is under the Apache License 2.0 , we are still not
> quite sure what to do with the situation of commercial
> use.
DISCLAIMER: The following is personal opinion. I am not a lawyer. You
should not rely on this advice
The documentation for tomcat5.exe and tomcat5w.exe in 5.5 starts with:
NOTICE
This section of the documentation applies to procrun 1.0, and is now
obsolete.
Now, it seems to work perfectly well, but I'm always wary about running
things which are claimed to be obsolete. Is there a preferred way
You should maybe take a look into the various caching-libraries available
(ehcache, swarmcache, jboss-treecache etc.) - these libraries deal with
cacheing, which is a little different from what the
application/session-objects offer, as application and session have to be
absolutely reliable. If you
89 matches
Mail list logo