Hi, I have Tomcat 4.1.29 running under Windows XP and
my application works fine. I have a user login, then a
user object is stored in the session. This object is
retrieved at the start of every servlet jsp to check
if the user has access/rights to the servlet/jsp. I
also use the object for some
Hi
since runing mod_jk is throwing me only jsp source instead of jsp..i am trying
mod_jk2. Now when i start apache i get error ../native2/server/mod_jk2.c is not the
correct version. So i got the source and compiled it using buildconf.sh and configure,
but in my native2/server/apache2
Hi,
Is it possible to have a file copied to the $TOMCAT_HOME/common/lib when a
WAR-file is automatically deployed on a running instance of the Tomcat 5.0
server? I need to have jdbc.jar in this directory to get connection pooling
to work. Or maybe someone can tell me how to get pooling to work
Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi All,
I have multiple Virtual Hosts running from the same tomcat JVM (Tomcat 4,
Apache 2 using the apache connector mod_jk2). I am trying to enable the
tomcat manager so that I can restart a single Vhost without having to
restart the whole tomcat, however so far when I call the manager I
Hi,
What will happend if response.sendRedirect(null) is called. It is giving
a directory listing. No error is thrown. Is this as per the spec ? I am
using Tomcat 4.1.27 with JDK 1.3.1
rgds
Antony Paul
-
To unsubscribe,
Hi all,
I have a custom Realm implementation that extends
org.apache.catalina.realm.RealmBase. It used to work in 4.x, but in
5.0.16, I'm getting the following exception on startup:
21:17:29,719 ERROR RealmBase:1092 - Can't register null
java.lang.NullPointerException
at
Hi all,
I apologize in advance for starting another logging thread, but I have
some questions that no amount of googling and archive surfing can seem
to answer:
1) Is there a reason why the startup.sh script that comes bundled with
Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH?
The spec doesn't dictate that the parameter to sendRedirect must be non-null.
So the behavior probably varies by container. Other containers might throw NPE.
-Tim
Antony Paul wrote:
Hi,
What will happend if response.sendRedirect(null) is called. It is giving
a directory listing. No error is
Hi,
I want to add a time stamp to Tomcat loggings. I am using JDK 1.3 and no
log4j. I want to add this to stderr.
rgds
Antony Paul
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Wednesday 31 December 2003 09:00 pm, Merrill Cornish wrote:
Ben,
I don't know if it's a good idea or not, but I separate the HTML stuff
into the JSP pages and use the servlets solely for program logic.
It is a good idea. The MVC pattern is widely accepted as a best practice for
server side
Yep,
without going into too much detail IT DOESN'T WORK ITS REALLY BROKE.
Over the past 4 weeks I've made 8 REAL attempts, spent around 30 hours of my time and
short of writing the whole thing myself I went with mod_webapp.so, tomcat-warp.jar for
Apache 1.3.29 Tomcat 4.1.29. The build is
: In another environment, Linux with Tomcat 4.1.27, the
: app seems to work fine, but just about every second
: page the user object is lost from the session and the
: user gets directed to the login page.
It's a long shot, but perhaps you're losing session:
are cookies enabled on this browser?
First, this would be non-standard behavior if Tomcat supported it. Counting on
it means being married to Tomcat. Besides that, even if Tomcat did this, it
wouldn't help. The libraries in Tomcat's global lib directories are loaded
upon server startup. Any new library wouldn't be noticed
Thanks, that's a start.
Should cookies be enabled or not? I didn't do anything
in the application.
--- QM [EMAIL PROTECTED] wrote:
: In another environment, Linux with Tomcat 4.1.27,
the
: app seems to work fine, but just about every
second
: page the user object is lost from the session
Put log4j-1.2.8.jar in common/lib and put log4j.properties or log4j.xml in
common/classes. Works fine for me and I still use Log4j in my webapps, each
with their own logging that doesn't interfere with anything else. This is
achieve be either adding log4j.jar to WEB-INF/lib of each webapp
The main perpose of the server - a programming course,the
students should develope their projects on it.
Students probably should be able to do the folowing:
[1] deploy/redeply/reload their applications
Using Tomcat as a stand-alone server, you can create a ~ directory for each
user in
: Should cookies be enabled or not? I didn't do anything
: in the application.
Containers use cookies to track sessions, with URL rewriting (keeping
the session ID in the URL) as a fallback. I don't recall the exact
configuration directive but there's a way to force Tomcat to use cookies
only,
I am using Apache 2.0.47 + Tomcat 4.1.27 on SuSE 8.0 and am working on MOD_JK
connector.
I created MOD_JK.SO (from source) and placed under MODULES dir under apache.
I made changes to following files:
My SERVER.XML file is:
Ben,
Yes, I can post the code, but now I'm not sure that will help.
Yesterday I tried my old standby debugging technique of commenting out
virtually all of the code in the servlet. It worked. I then started
uncommenting portions until it stopped working. For a while, I thought
I was
I've done mod_jk many times on RH9, but not mod_jk2.
My first suggestion would be to apply all updates before trying to compile
anything, in particular:
glibc and all other related glibc packages
nptl-devel
I don't know why you would have gone with mod_webapp before going to
mod_jk.
Check my
ok i want to add mod jk to easy php
ive put the two module file in the/mod folder
and the two dll whit the other dll
sombody could give mee is working command line
so i could adapt them to my server
im on win xp home +jdk1.3.3_09 +easy php 1.6 that old in itself apache 1.3
the lease that i cant do
When sending a dynamically created PDF file to a browser with content type
application/pdf, the browser displays a file save dialog box.
Under Tomcat versions 3.3.1 and 4.1.27, the PDF file is displayed using the
acrobat plugin.
Something changed between versions 4.1.27 and 4.1.29 in the way a
George,
This has been discussed on the list before. While you
can use a vanilla RedHat 9 install, some of the
libraries (apr, apr-util) are not quite where the make
file thinks they should be.
There are several solutions.
1. Build apache 2.0.48 from source.
a) Note that on RedHat, the SSL
Does anyone have any idea why a JSP referenced by name in a url would return
getRemoteUser = null and the same JSP referenced through DirectoryIndex in Apache2
would return getRemoteUser = expected user name.
Example:
http://serverAddr/DisplayUser.jsp returns null
In Apache conf
DirectoryIndex
Well--I think I've found the cause for my sudden IllegalStateException,
although I'm still not sure why.
Because it was claiming an IllegalStateException, and it was pointing to
the sendRedirect() statement, I assumed the sendRedirect() was the
CAUSE. So--
I started probing the code by
Good Job!
[EMAIL PROTECTED] 01/02/04 11:44AM
Well--I think I've found the cause for my sudden IllegalStateException,
although I'm still not sure why.
Because it was claiming an IllegalStateException, and it was pointing to
the sendRedirect() statement, I assumed the sendRedirect() was the
Apache2.0.48
Tomcat4.1.29
mod_jk1.2.5
jvm1.4.1_02a
[EMAIL PROTECTED] 01/02/04 11:34AM
Does anyone have any idea why a JSP referenced by name in a url would return
getRemoteUser = null and the same JSP referenced through DirectoryIndex in Apache2
would return getRemoteUser = expected user
My sudden IllegalStateException problem turned out to be caused by my
error handling technique, but I'm not sure why.
When I started this project (as a way or learning JSP), I have
EVERYTHING in JSP pages, meaning that there was a lot of Java code in %
... % sections of the JSP page. I added
Unfortunately, your logic is flawed.
The major flaw is that sendRedirect() does not terminate processing of
the servlet. IOW, this is happening:
Servlet Invoked
Sub-Routine Invoked
SQLException Generated
Exception Caught
Send-Redirect to
I haven't got a clue what your problem is. Your explanation is entirely
verbal and would really benefit from code snippets to make it clearer. I
just can't get a clear mental picture of what you did with your code.
I can't presume to speak for anyone else but I wouldn't be surprised if
others
I'm not sure I understand what your problem/question is. I've been using
Tomcat 4.1.24 for over a year and Tomcat 4.1.29 for the last few weeks and
all the messages generated by Tomcat already begin with timestamps.
Or are you asking how to put a timestamp in a message that you generate from
Merrill Cornish [mailto:[EMAIL PROTECTED] wrote...
Why did main servlet processing appear to continue (allowing the
second sendRedirect() to cause a problem) after the exception was
triggered?
Processing of a catch block does not terminate processing of the surrounding method.
In other
No, this is just an example. What I'd like to know is if stop/start or
reload has the same effect on a webapp as actually shutting down tomcat
and starting it back up.
+jeff
QM wrote:
: would everything get dumped and reset -- would that static variable go
: back to it's original state when
i resolved the problem with the Can't load server.xml
message. all i had to do was append $CATALINA_HOME to the
classpath...the Tomcat.sh script didn't have it in there.
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/dist/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar:\
George,
Unfortunately, your logic is flawed.
Yes, that's very clear at this point. :-)
I understand that the sendRedirect() does NOT terminate the execution
flow that it is in. That's why I follow each one with a return.
However, I think I now recognize my problem.
In my mind, I've
I apologize for the off-topic question, but can someone point me to
where I can find out how to print to a remote printer on the LAN from
Java.
While Java seems to have many printing classes, none of them appear to
actually reference a physical printer. While that's obviously in
keeping
Hi -
I've looked through the docs, and it says the following:
Tomcat will be installed as a Windows NT/2k/XP service no matter what
setting is selected.
However, I never ran an installation program - I just unzipped a file.
What do I run to install Tomcat 5 as a service? I don't see
Hi,
I have a win2k machine trying to configure these. I am able to work apache
and tomcat individually. When I try to connect these using jk2 getting into
problems.. I have followed the John Turner win2k instructions. When ever I
add
-- LoadModule jk_module modules/mod_jk2-2.0.43.dll
-- Include
Hi all,
I apologize in advance for starting another logging thread, but I have
some questions that no amount of googling and archive surfing can seem
to answer:
1) Is there a good reason why the startup.sh script that comes bundled
with Tomcat 5.0.16 adds commons-logging-api.jar to the
Hi all,
I have a custom Realm implementation that extends
org.apache.catalina.realm.RealmBase. It used to work in 4.x, but in
5.0.16, I'm getting the following exception on startup:
21:17:29,719 ERROR RealmBase:1092 - Can't register null
java.lang.NullPointerException
at
Hi
No, this is just an example. What I'd like to know is if stop/start or
reload has the same effect on a webapp as actually shutting down tomcat and
starting it back up.
When you stop an webapp, its classloader is discarded. Therefor every
information held by you classes is discarded.
Whey
Sir,
I am using TOMCAT Server on Windows 2000 Professional. I configured TOMCAT as per
the instructions. All Servlet-Examples and JSPsamples are running fine. I deployed
BugRat WAR file and configured the web.xml file as specified by Bug Rat vendor
installation notes. But while asking for the
Srini,
For Linux, I get similar errors unless I write the
LoadModule line as:
LoadModule jk2_module modules/mod_jk2.so
Srini wrote:
Hi,
I have a win2k machine trying to configure these. I am able to work apache
and tomcat individually. When I try to connect these using jk2 getting into
Betty,
As nearly as I can tell, Tomcat 4 was distributed for Windows as a .exe
file which included an installer. That installer which could do the
service install. However, Tomcat 5 is distributed (so far, at least) as
a .zip file, which has no installer. I can run Tomcat 5 standalone, as
Merrill,
Your question is off-topic, I'm sure someone will suggest the proper forum.
I haven't made use of PrintService yet, but it looks like you should be
able to
select the desired network printer using
PrintServiceLookup.lookupPrintServices()
In case you don't have it already:
Use the Java Print Services API in JDK 1.4 ( javax.print.* -
http://java.sun.com/j2se/1.4.2/docs/api/javax/print/package-summary.html)
Based on the DocFlavor and set of attributes (double sided, 2 up, etc.)
you specify, you can lookup the available print services that can handle
that print job.
Hi -- Thanks for the reply. So, now I downloaded Tomcat 4, but I don't
see an install program. I downloaded the .zip file. Was I supposed to
download an .exe file instead?
Thanks
Betty
-Original Message-
From: Merrill Cornish [mailto:[EMAIL PROTECTED]
Sent: Friday, January 02, 2004
Betty,
Check the following page:
http://jakarta.apache.org/site/binindex.cgi
About 3/4 down the page, you should see the following:
Tomcat 5.0.16 KEYS
* 5.0.16 zip PGP MD5
* 5.0.16 tar.gz PGP MD5
* 5.0.16 exe PGP MD5
* 5.0.16 Deployer zip PGP MD5
* 5.0.16 Deployer tar.gz
John's excellent instructions are written for mod_jk
mod_jk2 is different.
There are several How-To's available.
[link] Tomcat-Apache using JK2 connector
from the FAQ page or
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb
are two good sources of information.
HTH
/mde/
just my two
If you are really wedded to this architecture (and it's not really that
bad) then a good approach could be something like:
Public class myServlet extends HttpServlet {
doGet(HttpServletRequest req, HttpServletResponse res) {
try {
// All servlet code happens between this
Hi everyone,
I had some questions regarding Tomcat. Is Tomcat able to handle a steady
stream of about 200 years efficiently without crashing, being unreliable,
etc.. ? I personally don't know the limitations of it as I am fairly new to
Java.
What would an ideal server be to handle that type
Well, my lack of sleep is showing with that last email =)
200 years should have been 200 users
Time for coffee or sleep hmm :)
~Graham
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi,
I am sure everyone has seen the good work John has done with his how-to's;
but I am supprised at some people's denial when it comes to admitting
building problems on Redhat 9. I have tried building mod_jk and mod_jk2 from
source many times for tomcat 4.1.27 and apache-2.0.44; but it is
I have never had a problem building either. Maybe this article will
help:
http://www.meritonlinesystems/docs/apache_tomcat_redhat.html
On Fri, 2004-01-02 at 18:12, Enils Bashi wrote:
Hi,
I am sure everyone has seen the good work John has done with his how-to's;
but I am supprised at some
: Is Tomcat able to handle a steady
: stream of about 200 years efficiently without crashing, being unreliable,
: etc.. ? I personally don't know the limitations of it as I am fairly new to
: Java.
Most scalability/stability concerns have more to do with the application
code (e.g. the WAR you
Hello,
I downloaded the binaries and for the admin page up but I am being promped
for username and password. Can someone tell me the default admin username
and password?
Thanks,
John
-
To unsubscribe, e-mail: [EMAIL
There is none, in the default configuration you have to edit the
$CATALINA_HOME/conf/tomcat-users.xml file and assign the admin role.
Tom
--
T h o m a s Z e h e t b a u e r ( TZ251 )
PGP encrypted mail preferred - KeyID 96FFCB89
mail [EMAIL PROTECTED]
Hi, I'm a tagline virus.
Any chance you could tell me the xml syntax for that (ie code snippet)?
-Original Message-
From: Thomas Zehetbauer [mailto:[EMAIL PROTECTED]
Sent: Friday, January 02, 2004 5:35 PM
To: [EMAIL PROTECTED]
Subject: Re: default admin password?
There is none, in the default configuration you
tomcat-users
user name=user1 password=password roles=manager /
user name=user1 password=password roles=admin /
/tomcat-user
Use user1/password for the manager webapp and user2/password for the
admin webapp.
Tom
--
T h o m a s Z e h e t b a u e r ( TZ251 )
PGP encrypted mail
Hi,
Ok, I just did it for about the 5th time (mod_jk) on a completely new
installation. I even have it running with the new and improved kernel
2.6.0!
I'd say the common mistakes are:
1. Not removing the RPMS that will conflict, such as httpd and tomcat.
2. Not updating the critical updates
Hi,
I am successfully running the latest Apache/Tomcat4/mod_jk/openssl/jdk
with the new kernel 2.6.0 with RedHat9.
So far I am NOT using the LD_KERNEL_ASSUME=2.2.5, and Tomcat4 starts up
really fast. Apache seems to start in anticipation of me hitting the enter
button :)
The kernel is pretty
Yep - didn't get past first base - no make file generated!
In professional circles we classify this as CRAP - Can't Release Application
into Production Config log file is below this e-mail.
In the case of a previous e-mail mod_jk works only on each second HTTP
request as the session is LOOPING
The instructions to do it manually are at
http://jakarta.apache.org/commons/daemon/procrun.html. There is also a new
'service.bat' file in the CVS
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/bin/service.bat,
that simplifies the process of manually installing Tomcat as a
Bug? 4.1.29 will send back the header:
Content-Type: application/pdf; charset=ISO-8859-1
which can be confusing to a lot of browsers :). This is fixed in the CVS
code, and it is likely that 4.1.30 will come out in a couple of weeks.
There is quite a lot of discussion of this in the archives,
At 1:36 pm +1100 2004/01/03, George Shafik wrote:
Yep - didn't get past first base - no make file generated!
look, also on MacOSX (BSD based then) it seems impossible to make the
build process work. What I did, following the same step as a couple
years back, is to use apxs directly. On MacOSX
Sorry, but it bothers me that once in a while I get this symantec
scanner reply. This is to test by what it is triggered.
Giuliano
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
George,
I am sending you the config.log and a script of
exactly what I did since it is rather large.
Here is my environment. I realize that it is more
recent than yours. However, I performed the exact
same operations on all previous versions of RedHat 9
with the same results.
[EMAIL
Thank you very much for the information. I appreciate it.
~Graham
Quoting QM [EMAIL PROTECTED]:
: Is Tomcat able to handle a steady
: stream of about 200 years efficiently without crashing, being unreliable,
: etc.. ? I personally don't know the limitations of it as I am fairly new to
69 matches
Mail list logo