I believe that the web.xml is parsed using the DTD, so rearranging the
elements will make it complain that the format of the file is incorrect.
Even if you find a container which lets you rearrange, the spec says you
should follow the DTD. So to be portable . . . .
Regards,
Paul
-Original
I have found that IE really wants to have the HTTP:// in front of the
localhost - On mine, it wants to change localhost:8080/whatever to
local:8080/whatever and I get a similar error to what you mention.
Could this be part of your problem?
-Original Message-
From: RODGERS,RICK
Why do you need to use a JSP - The JSP is designed to product HTML output,
and as such will always grab the writer and set the content type to
text/html.
What is wrong with just using the servlet, perhaps with an extention mapping
. . .
-Original Message-
From: Tali Ambar
Put a heartbeat on the client - Use either an applet or a form with a
timeout before it resubmits. If you don't get the heartbeat at the server,
than terminate the background thread. (This assumes that the initiat
processing can be put in a background thread.)
-Original Message-
From:
Are any of the classes you are using defined outside of the web app. That
is, are you using any libraries, or class files which you specify on the
classpath prior to tomcat starting, which may also be in your web-app. It
is situations like this which the more experienced folks point to as the
Create an frameset document with one frame. Your servlet produces the
frameset, the target of the one frame is the new URL you want.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Zsolt Koppany
Sent: Saturday, April 28, 2001 11:07 AM
To: [EMAIL
I just tried this on 3.2.1 and it worked for me. Are you accessing tomcat
directly, or through IIS or Apache - If one of the latter, then you may need
to specify the mappings for the new extention through the redirector.
-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
writting the same kind of stuff in web.xml
Thanks
Shelly
CPC Livelink Admin wrote:
I just tried this on 3.2.1 and it worked for me. Are you accessing tomcat
directly, or through IIS or Apache - If one of the latter, then you may
need
to specify the mappings for the new extention through
Well, it works for me - that is I can set request attributes in a servlet
and get them later in a JSP. Make sure you are using a forward, and not a
response.sendRedirect is the only advice I can give quickly - but I'll think
on it a while.
Paul
-Original Message-
From: [EMAIL
From what I have read on the list, this error is normally (99%) related to
having mixed versions of the servlet jar's in your class path. Make sure
that you are not sharing the servlet.jar from a previous version of the spec
with the one distributed with tomcat.
-Original Message-
From the 3.2.1 server.xml
!-- Non-standard invoker, for backward compat. ( /servlet/* )
You can modify the prefix that is matched by adjusting the
prefix parameter below. Be sure your modified pattern
starts and ends with a slash.
I believe the message I see on the stdout is
RELOAD!!
And poof my servlets/classes are reloaded most of the time. Occasionally
I get a humorous message about the possibility never happening - Who put
this code here? When I see that I smile and restart tomcat.
-Original Message-
I
think I have seen on the list that Kaffe and Tomcat do not play nice
together. I suggest you get another JDK to use.
-Original Message-From: Xiaofeng Chen
[mailto:[EMAIL PROTECTED]]Sent: Thursday, April 19, 2001
11:56 AMTo: [EMAIL PROTECTED]Subject:
UnsupportedEncoding
set an environment variable to disable to compiler - I can never remember
which one of these two it is, so I just set both (DOS example) :
SET JAVA_COMP=NONE
SET JAVA_COMPILER=NONE
Then start tomcat from that dos window, and life is good.
-Original Message-
From: Randy Layman
Actually, it does work - you have to set the reload attribute to true in the
server.xml - my entry looks like this :
Context path="/tracking" docBase="d:/servlet/tracking"
crossContext="false" debug="0" reloadable="true"
/Context
-Original Message-
On 3.2.1 it works for me. Make sure you are actually getting to the page
using a method which would generate a referrer. Just typing the link in the
browser address bar will not do it. You need to make a dummy html file with
a link to your test page and click on the link to see it.
other context in server.xml? (the above works fine
for everthing except reloading servlets without restarting tomcat. It
doesn't make sense to have to duplicate the context definition.)
Thanks,
Steve
-Original Message-
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 1
Tomcat does support url rewriting, but the developer must have written the
web app to support it - otherwise no dice.
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 4:05 PM
To: [EMAIL PROTECTED]
Subject: RE: URGENT - Session stickyness lost
They are exclusive. Basically, for every link back into the web application
that needs to maintain session, the programmer must call and EncodeURL
function so that tomcat can add the JSESSIONID parameter to the URL at
execution time.
Apache URL rewriting allows the server to 'adjust' the
Run bin\startup from the TOMCAT_HOME directory
-Original Message-
From: George "Lifeguard" Flatman [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Question
I have followed the intstructions posted at:
You could track the ValueBound event, and at binding time, make local
references to the session objects you are interested in. Then when you are
unbound, you do not need to worry about the order, since you have a local
reference and can still get/change information on it.
-Original
I have not had to create the virtual mapping in IIS - in fact, it seemed to
confuse IIS more than not in our environment.
-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 7:50 PM
To: '[EMAIL PROTECTED]'
Subject: RE: I couldn't get SOAP to
The problem is that you have not declared the method as static. So you need
to either do this :
(new dynamicContent.dynamicContent()).getSelected("A", "B");
or declare the function as static String getSelected(string a, String b) and
call
dynamicContent.dynamicContent.getSelected("A", "B");
ResultSets can and should be closed. They are not like normal classes with
an iterator.
ResultSets are created by Statements. Statements can and should be closed.
When a statement is reused, it will close the resultset (if not closed
already) that it previously supplied in order to get the new
Looks like the file you have in com/filonet/jdf/servlet/UploadedFile.class
is actually compiled from a class whose package is
com/lgeds/jdf/servlet/ - It is not enough to move a class from one directory
to another to change it's package. You must change the source and recompile.
Regards,
Paul
I have just recently seen this too. In my case, I had two upload fields.
Whichever one was first, would not work, the second one would. I then
upgraded to the Jan 2001 version of the oreilly stuff, and started getting
your message. I suspect a client issue - I am using IE 5.5 SP1. I have not
What Craig meant (I believe) by "prohibits you from modifying the response"
is that the response has been committed and no more data can be sent. The
html/other-data you are sending to the client is part of the response. When
the forward returns, you are prohibited by the spec, from adding any
I have
successfully received post data in a JSP both using the getParameter and using
the com.oreilly.servlet utility classes.
How
are you sending the post data? Are you using a web browser and form, or
are you trying to post it yourself using an applet or something. The
process does
Well, there are two errors. One, you don't have the java compiler in your
classpath. This is usually in a file called tools.jar.
Second, the XML tag extentions are case sensitive. You will need to use
jsp:usebean and jsp:setproperty (thought I can't remember if it is useBean
and setProperty
I think his point was that neither one was showing any value other than 1,
because the JSP was always recompiled, and then reloaded. Thus the class
variable was being reset to 0 as the class was reladed.
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Look a the docs for the HttpServletRequest object.
The short answer is that request.getRequestURI is probably what you want.
-Original Message-
From: Paul Yoon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject: (Off topic) How to know
somebody is. Run
netstat -a
and examine the results.
-Original Message-
From: Binu Kamal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 4:02 PM
To: [EMAIL PROTECTED]
Subject: Please help
I installed tomcat on a solaris machine where Apache Server is running.
When I
D]
Subject: RE: HttpUtil
Then your HTML or web browser is not correct. I use this method for
exactly what you are trying to do and it works just fine.
Randy
-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 1:58 PM
To: [EMAIL PROTECT
As I understand it, the connector for 3.x will not work with 4.0 as it is.
They are looking for people to help migrate the connector - so if you are
willing . . .
-Original Message-
From: Grobe, Gary [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 12:02 PM
To: '[EMAIL
ssage-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: HttpUtil
yes, for get method, it is working, but I have to use post method.
rgds
sun
-Original Message-
From: CPC Livelink Admin [EMAIL PROTECTED]
To: [EMAIL PROTECT
An easy way to find it is to introduce an error in the JSP and look at
Jaspers error message, which includes the full path to the file.
-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 9:38 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 3.2
Title:
A quick read of the docs for Interface ServletRequest reveal a
snippet in the description of function getParameter :You should only use
this method when you are sure the parameter has only one value. If the parameter
might have more than one value, use
Yes.
Have your WorkerServlets implement a procedure called childInit or
something, which is basically an empty procedure in the SuperServlet. Then
call this function as the last (or first) call of the SuperServlet init
function. This is much like how GenericServlet makes init() a convenience
This
means that the tools.jar file was not put in your classpath. Ensure that
the JAVA_HOME environment variable is set or modify your batch files to specify
it directly. Tools.jar contains the javac compiler which Jasper uses to
compile the code it generates from the JSP file.
Regards,
HttpRequest.getContextPath() returns the portion of the request URI that
indicates the context of the request.
-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: to switch contexts, do you have
Yep, since it has no JSessionID on the url, it must (by definition) be
without a session, so Tomcat creates one for it.
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Session ids (netscape)
IE is pretty stupid that way. It does it to me and I am online all the
time. The trick is to put the http:// in there explicitly, then it won't
convert to local:8080
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 5:10 PM
To: [EMAIL
While there are connection pools (I have not used them but others on the
list can point you to them), I find the easiest solution is a session
variable. Then make a function you can call with the session and db
connection info. The function checks the session for the DB varaible. If
it's not
Why is it a bad idea to use a session variable?
-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: RE: Speeding up database accesses
One possibility (altough a bad idea) is to stick it into
What is the error message? It could be that if you did not import
java.util.* and java.text.*, then it can't find the classes listed after the
'new'. Try it like this :
%
java.util.GregorianCalendar cal= new java.util.GregorianCalendar();
java.text.SimpleDateFormat format = java.text.new
Actually, these are files that are generated by the jk_nt_service helper
application, not entries in tomcat.
If you want to capture the output of tomcat, you need to either a) redirect
the output to a file (on Unix you also need to redirect stderr, on Windows
stdout and stderr are much the same
Be careful with case. The directory name shoul dbe WEB-INF not Web-inf. Even
though Windows ignores case, it still preserves case, and tomcat enforces
the rules on case sensitivity despite windows.
Also, the WEB-INF directory is protected, so no files will be served from
there.
Regards,
Paul
Not having tried this since I don't use JBoss, here is my thought. The only
difference between putting it in the main tomcat classpath and putting it in
WEB-INF/lib is the class loader that is used (javas versus tomcats). Since
I have quite successfully used tomcats in WEB-INF/lib, I am
He's talking about a database connection pool. What looks like what is
happening is that you open a connection to the DB once at the beginning,
then save it for later. When you come back in several hours, the DB has
dropped the connection, so when you try to use it, you get that message. If
Title: RE: Tomcat 3.2.1 login and password of Admin context
Add
the role 'admin' to one of the accounts you listed. Then that account will work.
(There is a blurb about this in the context.xml)
-Original Message-From: Andy Scasso
[mailto:[EMAIL PROTECTED]]Sent: Thursday, January
The way it nehaves is that "/" is the root of your webapp. So, when doing
things with the servlet container alone, you would reference the file as
"/JSPHeader.jsp". If, however, you are sending something to the browser for
it to get, then do "%= request.getContextPath() %/JSPHeader.gif"
Actually, there are good reasons to NOT do it that way. You may not have
access to the file system for one, or the property file may be embedded ina
JAR file. Whereas if you use the getResourceAsStream you don't have thise
problems. However, if you need to access an arbitrary file, using
If you can get an ODBC Driver to the target database, then you can use
access to export (File Menu then Export) the entire DB using an ODBC
connection. I have dones this for Oracle once.
-Original Message-
From: Richard Diaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001
I finally got it working on a sparc which did not have gcc on it, using the
ucb c compiler/libs/includes instead of the other one they have on there. It
was still painful, but it worked.
-Original Message-
From: Mike Braden [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:00
Try netstat -a. This works on NT/2000/UNIX, I don't know if Win9X has it.
-Original Message-
From: Edson Carlos Ericksson Richter
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 4:00 PM
To: [EMAIL PROTECTED]
Subject: RES: Tomcat trouble, can any good soul help ...
Could this be that the JSESSIONID cookie is scoped to the webapp. IE if
your webapp is called FOO, then only pages below /FOO can get that cookie.
Also, I am assuming you are on the same server, since cookies don't travel
across servers.
-Original Message-
From: [EMAIL PROTECTED]
Well, this seems kinda silly, but you could build a response page with an
HTML FORM which uses POST, and has all the values set the way you want, then
use JavaScript to execute the Submit event on the form. Like This
FORM NAME="FOO" METHOD=POST ACTION="somewhere.jsp"
!-- Your elements --
This has been discussed many times on this mailing list. I did a quick
search through my archive and found these two snippets, neither of which I
know anything about, but thought I would give them to you for your
amusement. These were from messages on December 8, 2000.
-- Snippet 1
You may be able to write yourself some native code to do the switcheroo for
you. Then use the java calls to the native call. The code to do the user
switch is readily available (though I have not searched for it now, I have
seen it before, and it is also available from apache subject to the ASL)
Try removing the ending semi-colon on JAVA_HOME and TOMCAT_HOME
-Original Message-
From: Ezhil M [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 2:38 PM
To: [EMAIL PROTECTED]
Subject: Running tomcat
Hi,
Can anyone help me out.I tried running tomcat using
tomcat run.
I'm
I modded your code and made it a JSP so it was easy for me.
The following URLs work as expected. You will need to change /livelink/ms
to whatever webapp you use, I just put it in there cuz it was easy
http://localhost:8080/livelink/ms/foo.jsp
http://localhost:8080/livelink/ms/foo.jsp?cmd=load
Just
so that you know, I have had it working fin with NT 4.0 SP6 and tomcat
3.1
-Original Message-From: Craig O'Brien
[mailto:[EMAIL PROTECTED]]Sent: Monday, January 15,
2001 12:50 PMTo: [EMAIL PROTECTED];
michael.paul3Subject: RE: Redirector Failure
Have
you created
Tomcat 3.2 does not read the conf/web.xml file. You must put your changes
in your webapps WEB-INF/web.xml file.
-Original Message-
From: Barry Fritchman [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 3:56 AM
To: [EMAIL PROTECTED]
Subject: Has extension mapping changed in
If you just want to change where the root of your webapps will be, then just
change/add the conf/server.xml file for the COntext Path whose docbase="/"
-Original Message-
From: Jose Ferrer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 5:33 PM
To: '[EMAIL PROTECTED]'
Subject:
I think the idea is that Webapps are distinct self-contained applications
and therefore should not depend on _anything_ outside of the webapp. If you
have components which need to share session info, they _should_ be in the
same webapp. You would then build your webapp as you would any
One option is to use Java's URL capabilities and open a connection to
tomcat, make the request, and capture the output of that in a
ByteArrayOutputStream. Something like this, though I did not even try to
compile it :
URL url = new URL(yourURL);
InputStream is = url.openStream();
The kill signal is 9, so 'kill -9 Your Java PID' will kill tomcat.
TO find out what ports are being used and by whom, use 'netstat -a'. grep
can also be useful for that command.
-Original Message-
From: Jason Heddings [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 04:58 PM
I saw that the other day. It happened to me when I was trying to use the
/servlet/ and I mistyped it as /servlets/. I was in a development cycle
though, so there may have been other problems, but changing from /servlets/
to /servlet/ mad it stop. Maybe it is something similar?
-Original
That's interesting, since I've been doing that for some time now with no
issues.
-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 03:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests
Title: Error Messages
At the
risk of a 'me too' barrage, I have encountered the same message on many static
items like images. I was ignoring it since that pages worked, but it would
be nice to know what it is. I did not see it in 3.1, only 3.2on NT
2000
-Original Message-From:
Also, are you using a forward or redirect? A redirect makes a new request
from the browser, a forward does it all internally (ie same request).
-Original Message-
From: Edson Carlos Ericksson Richter
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 12:48 PM
To: [EMAIL
?
Regards,
Paul
-Original Message-
From: Peter Choe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 01:51 PM
To: [EMAIL PROTECTED]
Subject: Re: scope of a bean
so...
if i use a redirect like an action in a form, it creates a new bean?
CPC Livelink Admin wrote:
Also, are you
My apxs was in apache/bin and
it is indeed in perl. If the perl interpreter is not found, than a likely
error message will be that apxs is not found.
-Original
Message-From: Yong Boone
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 06, 2000 01:54
PMTo: [EMAIL
the servlets?
I wanted to avoid putting security code in every servlet, one by one.
-Original Message-
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 5:16 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: posting to servlets from a url
You
As has been mentioned earlier on this list, Tomcat does not have any CGI
capabilities. This could, however, be implemented in a servlet. A general
call went out to see if anyone was interested in writing one, but I did not
see any takers.
To implement what you want to work, you will need to
Is this the thin driver or the one that requires OCI/client install.
I have been successfully running the thin drivers against 8.1.6 for some
time now (jdk 1.1.8)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Travis Low
Sent: Tuesday, December 05,
Not being a user of SOAP, my answer is that usage of SSH (openssh.org) to
form a secure tunnel using port redirection would be effective. Then it
matters not what versions you are using.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06,
It is
still the environment problem. The 2816 setting is just an estimate, since it
will be affected by other environment variable you have set, what paths you
choose to put things in etc. Increase that number by a lot (be absurd in
your first test) and try to shutdown.You should not see
You need to get a multi-part post data handler. There is one at
www.servlets.com (the O'Reilly servlets site) which is not wuite free (must
buy the book to use it commercially), but does work well. If you browse the
archive, (http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 is one
archive),
1. In a jsp you can use response.sendRedirect("URL") to send the browser
an instruction to open another page. Forward does like you say - totally a
server thing.
2. I believe it is request.getContextPath
3. Go to the Java site (www.javasoft.com) and go to their tutorial or
Not positive, but this may be that you did not specify tools.jar on your
command line. I beleive I saw sometime a long time ago on this list that
this was required to compile anything in-process. You probably will need to
update the startup script to get it correctly (since it didn't get it
Here's my humble attempt to explain. The single thread model says to the
servlet container that your servlet should only be run on one thread only.
Multithreading in the server is then implemented by creating multiple of
your single thread model servlets, one for each thread that is required to
PROTECTED]]
Sent: Tuesday, November 14, 2000 10:41 AM
To: [EMAIL PROTECTED]
Subject: RE: Using Jasper for template processing?
--- CPC Livelink Admin [EMAIL PROTECTED] wrote:
the servlets except in a web environment. But, being able to do what
JG
wants can be useful - for instance
That's the problem with not using cookies. Since (in most cases) you will
be using tomcat in conjunction with some other web server (tomcats limited
web server is not sufficient for heavy use), the web server will directly
serve your static pages - tomcat will never see them. If you need to
Title: RE: non-cookie session tracking?
Well,
for the first one, they don't have a session yet - so the JavaScript just needs
to be smart enough to behave when it's not there. As sson as they hit a
dynamic page, they will get a session, and then the 'static' pages can use
it.
Is it just word, or excel, powerpoint, etc too? Could this be the Frontpage
extentions/Office SP1a bug rearing it's ugly head? This bug causes issues
when Word tries to download the file, but it doesn't share the same browser
cookies/sessions and so it gets sent to a login page or something
Remember, Servlets are not necessarily HTTP beasts. The servlet spec (from
my perusal) specifically leaves open what kind of environment the servlet
will live in. This is why there are specific HTTP extentions of the base
servlet classes. Now, that being said, I don't know of any other way to
As I believe someone mentioned before, you are getting a Null pointer
exception. You need to find out why you are getting a null pointer here :
at com.se.error.ErrConstants.SETRACE(ErrConstants.java:101)
at com.sefgcr.helper.jsp.gen.TfgWelcome.processRequest(TfgWelcome.java:43)
This could be
88 matches
Mail list logo