Alternatively, is there a way to make Linux so that it lets any user bind
to any port?
So you don't mind one of your machine's users (or a cracker who has
guessed a bad password) installing their own little fake webserver on port
80 that does {pick your poison}?
The practice of allowing only
I can think of a couple of ways offhand:
-process the request
-generate your image
-store your image somewhere (optional)
- either
- write the image directly out to the servlet's underlying
outputstream
as a buffered byte output stream (I don't think PrintWriter
Peter,
Your last comment is a little unclear - do you mean that you request 1 URL
and it gets redirected to another, or that you see some page that you think
shouldn't be in the current web app?
I think more information is in order, specifically, your relevant
configuration information,
What exactly are the errors?
If you are writing a servlet (or some other class that imports something
from the javax.servlet package) you need servlet.jar in your CLASSPATH so
your java compiler knows where to find the class definitions. The Java 2 SDK
does not come with the 'javax.servlet'
Pretty much. See:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/AJPv13.html
Adding support for SSL, so that isSecure() and geScheme() will function
correctly within the servlet container. The client certificates and cipher
suite will be available to servlets as request attributes.
Regards,
try 'sh ./catalina.sh start' from jakarta-tomcat-4.0.4/bin
regards,
michael
- Original Message -
From: khozaima shakir [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 11:23 AM
Subject: Re: Tomcat Installation on linux
Hi Randall,
Sorry, guess the way i typed
Nome,
Although I'm not sure exactly what the problem is, this has happened to me
before when I've replaced some class files or jars that a JSP uses while
Tomcat was running, and then updated the JSP so Tomcat had to recompile it.
A restart of Tomcat fixed the problem.
regards,
Michael
-
Michael,
I'm sure everyone else is gonna tell you this too, but here are some
pointers from just glancing over the code.
- set up your db connection in the init() method, not doGet(). doGet()
is executed every time the servlet is called with an HTTP GET. So,
effectively, you are loading the
]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 8:00 PM
Subject: Re: Design Questions..
thanks, I think I'm starting to understand how all this stuff is
supposed to work...
Michael
On Monday, August 26, 2002, at 05:59 PM, Michael E. Locasto wrote:
Michael,
I'm
Mike,
Make sure you have WEB-INF/ directories (and web.xml) for those webapps.
Also, try restarting Tomcat. In addition, you can use the manager app to
deploy new webapps.
Regards,
Michael
- Original Message -
From: Mike Markovich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday,
Michael,
Thanks for your response, I thought I was doing all the things you
suggested, but just to make sure I recreated web.xml and restarted
tomcat and now things work as expected. Oh well, only a couple of hours
lost because I was doing something different then what I thought I was
Maia,
In 4.0.4 and 4.1.7 (and probably all of 4.x), there is a commented out entry
in server.xml (with explanatory comments right before it). So it looks like
persistent sessions are _not_ enabled by default.
!--
Manager className=org.apache.catalina.session.PersistentManager
Alex,
Probably the current working directory, which is whatever directory Tomcat
was started out of (probably bin/, but not necessarily so). You can provide
a full file name in the code, or use your web.xml to set a context parameter
that indicates a base path to do read/write relative to in
Hi,
I believe that the reason you have so many java threads is due to the way
the jdk/jre is implemented for linux, you'll see basically every thread in
top or ps.
http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-
4.html#ss4.2
Michael
- Original Message -
Check out the API too.
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/servletapi/index.html
Regards,
Michael
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 1:08 PM
Subject: Re: Re[4]: Quick Question
Hi, Alex.
Since JSP's
- Original Message -
From: Lee Zhao [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 7:30 PM
Subject: apache+tomcat?
Can someone please explain why one needs or wants to use apache in
addition to tomcat? Can one just use tomcat as plain web
Amit,
But when i create TESTJSP directory under
Tomcat4.0
- webapps
--- TESTJSP
--- HelloWorld.jsp
did you restart Tomcat after you created that directory and put the jsp in
it?
You don't need a Context entry in server.xml for
We can at least make a best effort ... :)
Carlos,
el documentoRoot de apache esta en /usr/local/httpd/htdocs. Como puedo
hacer
andar en el puerto 80 unas paginas jsp que estan el:
/usr/local/httpd/htdocs/admin ?
Que necessita hacer es aƱadir un contexcto en
, 2002 8:25 AM
Subject: Re: new to tomcat
hi
Is it necessary to deploy the application under webapps directory only.
Regards
Vishal
- Original Message -
From: Michael E. Locasto [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 6:04 PM
Subject
Mona,
I'm assuming you are running Tomcat 4.04 standalone, on :8080. Not quite
sure
exactly what the issue is here, but I have some suggestions:
Just for fun, try a different browser to see if the problem is client side.
Does the user Tomcat is installed as have permissions to read those
And you've provided appropriate servelet and servlet-mapping entries in
your web.xml?
-Michael
- Original Message -
From: Daliso Zuze [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 4:51 AM
Subject: Servlet directory
I have put some servlet
Jeff,
The Javadocs for ServletContext.getRequestDispatcher( String pathname ):
The pathname must begin with a / and is interpreted as relative to the
current context root. Use getContext to obtain a RequestDispatcher for
resources in foreign contexts. This method returns null if the
Steve,
You _do_ have to admit that answering repeated queries on the same topic
gets a little frustrating...and your email has a pissed off tone too.
quote
Does anyone out there
have the
download link to access and then install this file WHICH I STILL DON'T
HAVE!
I am
getting sick and
This may be a bit basic, but besides setting the port to 80 in server.xml,
make sure you've got a valid DNS record to point your domainname to that IP
address. I got the impression from your message that they weren't linked.
Regards,
Michael
- Original Message -
From: Turner, John
Toby,
Not sure about the 'reserved' bit, but webapps is the default starting point
for Tomcat to look for directories that conform to the specs. Each
subdirectory should be a complete Context. I'm not sure if the name
'webapps' is actually specified, but that is beside the point. Tomcat will
Brian,
% path/to/your/jdk/bin/java -X
will print out the help for non-standard command line argument extensions
for the JVM.
You can increase the amount of heap space and other good stuff available to
the whole JVM.
AFAIK, Tomcat sets no limit on the amount of memory a servlet consumes.
I'm not so sure you want to do this anyway; besides the security
considerations, you're going to take an extra performance hit where every
request for dynamic content has to go back out over the web to your Tomcat
machine and come back ...
Why can't you just put Tomcat on the Linux box too? or
Tomcat 3.3.x provides the lib/apps directory (see the README file in there)
for Jar files that contains classes to be shared among all webapps.
Sessions are not cross-context. Sessions are specific to the webapp they are
created in for security reasons. Sessions are created via a
- Original Message -
From: Nathan Smith [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, July 28, 2002 7:28 PM
Subject: runaway queries with tomcat and Progress database using JDBC
driver.
Does anybody have any ideas on how I might implement the best
I'm assuming you're using some 4.0.x version, I think warp has been
deprecated and replaced by Coyote in 4.1.
This document isn't of much use...
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html
but you can probably find out the answer in the source
Nathan,
There is pretty good documentation both on the website and contained within
the distributions in the doc/ directory. There is no John Q's Chronicle of
Setting Up Tomcat 3.3.1 to the best of my knowledge. However, I think that
something like that would be a great thing to write and submit
Nathan,
The Tomcat homepage says that Version 4.0 implements the final released
versions of the Servlet 2.3 and JSP 1.2 specifications. As required by the
specifications, Tomcat 4.0 also supports web applications built for the
Servlet 2.2 and JSP 1.1 specifications with no changes.
So it looks
Hey all,
Are there any tomcat administration modules in the works
or do i have to build my own?
Specifically, I'm thinking about managing multiple JVM's/workers
for load balancing. I'd also like to be able to manage contexts
in a more secure manner than the current /admin context allows...
33 matches
Mail list logo