I have installed tomcat4.0 Milestone 4 on my w2000 pc. The examples do
run fine, however I get the following exception everytime I run one of
the examples.
Here is what I have added in startup.bat and shutdown.bat:
set CATALINA_HOME=C:\Java\tom4.0m4
With tomcact4.0 Milestone 1 or tomcat3.2 beta
Following code will do the job
-
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class Controller extends HttpServlet {
public void service(ServletRequest req, ServletResponse res) throws
ServletException, IOEx
> -Original Message-
> From: G Michael Sawka [mailto:[EMAIL PROTECTED]]
>
> We've been trying to set up Tomcat 3.1 on our Win2k box, which is
> running Netscape Enterprise Server 4.0. We followed the directions
> online at the Jakarta website, but have been completely unsuccessful
> in ge
I know that out is an implicit object in a JSP.
I did set the contenttype to image/jpeg or similar, but what I track the
issue to is that JSP does not like grabbing the output stream twice. I have
already
written the servlet and get no problem, it just too bad to need to do this
just for three
li
Hi,
We've been trying to set up Tomcat 3.1 on our Win2k box, which is
running Netscape Enterprise Server 4.0. We followed the directions
online at the Jakarta website, but have been completely unsuccessful
in getting the redirector to work. There are no errors when the
redirector is loaded, but
Title: Build mod_jk.so
I tried to run: apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c *.c ../jk/*.c and am getting this error:
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/in
clude/apac
Hany,
I run a little site in an NT with using the ODBC-JDBC
bridge (and Tomcat 3.1...) and everything works fine. Can you be more
specific?
- What set of ODBC:JDBC drivers are you using (Use the one
that comes with JDK1.3...)..
- To what type of database are you connecting
If you can s
Hello,
Unless I missed something I believe there is a deficiency in Form
Authentication mechanism.
Which does not let us to protect entire context:
When protected resource is entire context:
/*
tomcat enters endless loop
trying to call login form
FORM
Example Form-Based A
I am testing Tomcat standalone with client authentication on, and getting
some odd results. It works fine if client authentication is not turned on
(for both IE and Netscape browsers). If I turn on client authentication,
Netscape claims that I do not have a personal certificate, and IE asks me t
Jens et. al,
I have seen several requests/attempts to figure out how to have more
than one redirector hooking TomCat to IIS. I also need this, as I need
to run some servlets inside SSL (credit cards), and others just normal
http (for performance). Jens, did you ever have an opportunity to write
a
hi team,
i started developing a web-based email system few weeks back.
everything was just fine untill someday last week, this error began to
happen on some of the links. The links point to some jsp files which run
well before. And they were not modified at all when the error happened.
Thanks to all!
This works like a charm.
Note: I needed to add -
export JAVA_HOME=/usr/local/jdk1.2.2
to the script since the tomcat.sh could not find my java.
Hope this helps others
Tony
-Original Message-
From: Mike La Budde [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2
I find tomcat to be an elegant solution as a standalone web server but
I would probably hitch it to apache if i needed an advanced feature
like mod_rewrite and such.
Sandor Spruit wrote:
> Simon
>
> On Tuesday, November 14, 2000, 10:18:50 AM, you wrote:
>
> Kitching> Hi,
>
> Kitching> No, 3.1
try this:
<%@ page import="java.io.*" %>
<%
FileWriter tempFile = new FileWriter("/tmp/gold.txt",false);
String data = "To be or not to be";
PrintWriter toFile = new PrintWriter(tempFile);
toFile.println(data);
toFile.close();
%>
this writes "To be or not to be" into /tmp/gold.txt on a uni
Tony:
If you want full sysv init-style scripts you can put this in /etc/rc.d/init.d:
#!/bin/sh
#
# Startup script for Tomcat
#
# chkconfig: 345 93 06
# description: start|stop|restart Tomcat (the JSP/Servlet engine)
#
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were ca
From: "Tony Mueller" <[EMAIL PROTECTED]>
> Im running RedHat 6.2 and Tomcat 3.1.
> I would like to have Tomcat automatically start up at boot time.
> Does anyone have a way to do this?
Depends a little on your installation. If you just need
to issue a startup.sh command, you can just append the
Hi,
Im running RedHat 6.2 and Tomcat 3.1.
I would like to have Tomcat automatically start up at boot time.
Does anyone have a way to do this?
Thanks in advance!
Tony Mueller
Hi,
If you can find the server configuration problem then you will get free
hosting.
I have virtual hosts that need to be able to have JSP pages or servlets in
any directory.
I would prefer a shared jvm.
I will provide all files here and if one is not here I can email it to you.
I prefer to b
I'm trying to utilize the xml tag in my ant build file to automate
testing (ala the test demo app).
1) Is there any documentation on using gtest?
2) I'd like to process POSTs w/ some test data filled in, any tips on how
to use the "content" attribute?
3) Any hints/caveats/warnigns/suggestion
I feel U must check your classpath for the servlet.
--- Rasika <[EMAIL PROTECTED]> wrote:
> Hello,
> I have installed TOMCAT with Apache. I followed your
> user guide and then tomcat faqs to install tomcat.
> Now I am able to run .jsp files using both tomcat as
> well as Apache. I can also run sam
Hi,
1.
Pl add servlet mapping tag.Like below
-
hi
/hi
2.
Check out for the server root and port number .
3.
Check for the classpath of hi.class
Good luck,
Ravi
Dynacom
--- Rasika <[EMAIL PROTECTED]> wrote:
> Hello,
> I have installed TOMCAT with Apache. I followed your
> user guide an
Hi,
U must encode the filenames.EncodeUrl etc functions
will support.Pl check
Bye,
Ravi
Dynacom
--- Craig May <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I can't seem to get a file of the server if it's
> name contains spaces. Is
> there a work-around for this?
>
> Regards,
> Craig May
>
> Enth Dime
Thanx much for the quick response ... may I inquire further please?
: For our system, we're managing it all through sessions. When the
person logs
: in, their login information is checked against a database object.
If it
: matches, they're logged in. Otherwise, they're asked to provide a
corre
Joe Laffey wrote:
>
> On Mon, 13 Nov 2000, John Ellis wrote:
>
> > All you need to do is create a virtual browser:
> >
> > URL pageYouWant = new URL(completeRequestString);
> > InputStream in = pageYouWant.openStream();
> > // burn off the header from in, then write the rest to a file...
> >
> >
Need help with my JSPs compiling over and over
again. I run the JSP examples that come with tomcat, and when you load the
page the first time the JSP compiles and takes a little while to load.
Every time after that, it loads the class from the work folder and it is much
faster.
However
Hi,
I am using Apache SOAP 2.0 with Tomcat 3.1. I built a Java client that sends a DOM
element, and receives a DOM element also. This works fine, but my Tomcat server stops
running on each call and displays the following error: Java.exe - application error -
The instruction at "0x77f6coe6" r
I am having the same problem. The pages have the autoflush attribute set
and the server.xml file says to refresh pages when they are changed...
-Original Message-
From: Marty McKeever [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 9:27 AM
To: [EMAIL PROTECTED]
Subject: JSP p
Platform: Redhat 7.0, OpenSSL 0.9.6, Apache 1.3.14 w/ mm 1.1.3 and mod_ssl
2.7.1, tomcat 3.2b5
Vanilla configurations from fresh builds.
Apache works fine on its own in both HTTP and HTTPS. Tomcat works find
standalone.
When I turn on mod_jk in apache to run servlets from the apache server, it
Hello,
I've noticed a difference in behaviour in Tomcat 3.1, 3.2b7, and 4.0m4
regarding Windows SMB paths, like this one:
I included this same element (paths are altered here for security) on all three
server.xml. Tomcat 3.1 and 4.0m4 handle it fine, 3.2b7 gives a 404. All three
instance
Hi,
I can't seem to get a file of the server if it's name contains spaces. Is
there a work-around for this?
Regards,
Craig May
Enth Dimension
http://www.enthdimension.com.au
By searching the archive at
http://archives.real-time.com/rte-tomcat/
[see "READ THIS First! Mailing-list archive and good tips" posted periodically
on this list]
you will find:
http://archives2.real-time.com/pipermail/tomcat-users/2000-August/008481.html
that gives the details about long JSP
You can put the .dll in any directory you want, as long as the registry
reflects the path correctly and the virtual directory is set correctly also.
If you use a trailing \ in either the TOMCAT_HOME or the JAVA_HOME it will
be recognized in the variable as a \\, look at the environment slash in t
Thanks.
Any idea what the following error means?
org.apache.jasper.JasperException: Unable to open taglibrary test.tld :
Parse Error in the tag library descriptor: Element "taglib" does not allow
"urn" here.
I put the test.tld file in install_dir/webapps/Root -- the same place where
my JSP fil
"Reynshteyn, Leonid" wrote:
> Here are the contents of the JSP file:
> -
> <%@ raglib uri="/test.tld" prefix="leo" %>
^
Not that I've used this before, but isn't that supposed to spell "taglib"?
--
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BB
I had to put the isapi_redirect.dll in the
c:\winnt\system32\inetsrv\ directory for it to be
recognized. Also it might be worth mentioning thay
you do not want your TOMCAT_HOME to have the ending
slash ie d:\tomcat not d:\tomcat\. For java_home the
ending slash seems to be fine.
There is a typo in your first line.
<%@ raglib uri="/test.tld" prefix="leo" %>
^
taglib
-- Pierre
"Reynshteyn, Leonid" wrote:
>
> The directive is a custom tag that Tomcat does not recognize, I think.
>
> tag_test.jsp is a JSP file I mentioned below. It's not in C:, but in
How about using stock Jasper, and then applying an XSL transformation to the
HTML output to clean out the HTML specific code. Seems like extra work, but
would you would not need to modify the Jasper code itself.
Regards,
Paul
-Original Message-
From: Jaroslav Gergic [mailto:[EMAIL PROT
On Tuesday 14 November 2000 16:51, you wrote:
> If you can install tomcat with virtual hosts on a RH linux 6.1 box, then I
> will pay you money. I have no more hair to pull out..
If you haven't already, use Tomcat 3.2 - it has support for virtual hosting
which Tomcat 3.1 did not. Not properly at
As subject: Our website uses a large number of servlets reference through
URLs of the form /servlets/. We got this to work
on Tomcat 3.1 by putting in a servlet-mapping tag in the webapp's WEB-INF
file thus:
invoker
/serv
> -Original Message-
> From: Wyn Easton [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Please Look - 3.2 beta 7 problem - RequestDispatcher
> inclu de()
>
> Fair enough.
> I did notice the addition of:
>
> // NOTE:
If you can install tomcat with virtual hosts on a RH linux 6.1 box, then I
will pay you money. I have no more hair to pull out..
please msg on icq: 48465297
or
email: [EMAIL PROTECTED]
THanks
-
Adam Kling
CEO, MyBizHosting
http://www.MyBizHosting.com
P.S. C
This is just a guess, but maybe it has something to do with the extension
(.jpg). Maybe IIS is resetting the mime type after you have sent it. Try (if
you are trying this already then disreguard this message) making the servlet
mapping more like this:
/root/binaries/image/*, then build the query
Sandor,
> Isn't Tomcat supposed to be used in conjunction with a good
> webserver like Apache ?
>
Supposedly. But I think what's happening is a lot of people are finding
out that Tomcat is good enough that you don't really need Apache,
although you might still want it at least for load balancin
Do you have spaces in your file/directory names?
-Original Message-
From: Ari Volcoff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 3:45 PM
To: [EMAIL PROTECTED]
Subject: long file names when compiling *.jsp files
We receive this message when trying to run a jsp file
Inte
From: "Peter Choe" <[EMAIL PROTECTED]>
> i am working on a jsp to list some mail. when i change the jsp and view
> it in a web browser, for some reason the changes in the html tags
> doesn't show. is there something in tomcat that causing some type of
> caching of the old jsp files somewhere?
I
We receive this message when trying to run a jsp file
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
D:\jdk1.3\jakarta-tomcat\work\localhost_8080%2FRio\_0005f_0005f\Online\Templ
ates\Classes\Forums_0005fObject_0005fClass\Ari\_0002f_0
Hmm...
I know that if I'm in the doPost() of a servlet and I include() another
servlet the included servlet's doPost() method will be called.
I'm not sure which method in the servlet is called when you do the
include from a JSP to a servlet.
Maybe you could put a System.out.println() in the doGet
--- 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, to periodically dump a formatted
> report
> to a static file, so that daily reports are available and can be
> processed
> during sys
Friends,
All of a sudden it seems, whenever i make changes to a JSP and commit them
to CVS, they aren't being recompiled on the next request (the old version
is still being served). To get the new page, i have to manually delete the
cache and then restart tomcat.
There are other developers wor
Hi
I'm new to Apache/Tomcat so expect a obvious question.
I'm currently designing a multi-tier internet application based upon J2EE
blueprints. To implement security in J2EE Web Tier the normal approach is
to denote Web Resources (JSPs, Servlets etc) as protected (e.g. form-based
authentication
The directive is a custom tag that Tomcat does not recognize, I think.
tag_test.jsp is a JSP file I mentioned below. It's not in C:, but in
C:/jakarta-tomcat/webapps/Root
I assume that I am not configuring it right and it can't recognize the
custom tags and gives me this error.
Here are the con
i am using tomcat 3.2 on a freebsd machine.
i am working on a jsp to list some mail. when i change the jsp and view
it in a web browser, for some reason the changes in the html tags
doesn't show. is there something in tomcat that causing some type of
caching of the old jsp files somewhere?
pet
Thanks, I've tried the code, the JSP produces my layout/menus and stuff,
but theres no output from the servlet.
getRequestDispatcher appears to work correctly as rd is not null, but
nothing seems to be included. I have tried
both the bookholidayshow, and /servlet/bookholidayshow. The servlet wor
What about:
bookholiday.jsp:
> -Ursprüngliche Nachricht-
> Von: carnell [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 14. November 2000 14:10
> An: [EMAIL PROTECTED]
> Betreff: Re: Integrating servlet output into JSP
> If in my JSP page, say bookholiday.jsp, I would like to
> i
Hi tonmcat users,
I’m not able to get a directory listing when running tomcat as NT
service, when the docBase is outside of the tomcat directory.
This does not work properly when I run tomcat as a NT service.
reloadable="true" >
But if I put it under the webapp root or us
See code added below.
--- carnell <[EMAIL PROTECTED]> wrote:
> If in my JSP page, say bookholiday.jsp, I would like to include
> output from
> bookholidayshow servlet...
>
> bookholiday.jsp:
>
>
> <%
RequestDispather rd = request.getRequestDispatcher("bookholidayshow");
if (rd != null)
Fair enough.
I did notice the addition of:
// NOTE: This *must* be done before the include flag is set for
// this request!
response.flushBuffer();
in RequestDispatcherImpl.java. That is probably the change that made
my include - forward stop working.
I guess it is OK by th
Hello,
Binary download crashes when attempting to access
admin's "view all contexts" jsp.
Failure is Nullpointerexception in ContextAdmin where getAttribute()
returns null:
public void init(HttpServletRequest request) {
FacadeManager facadeM=(FacadeManager)request.getAttribute(
Fac
Are there any issues with running batch files that call external programs
when Tomcat is set up as an NT service.
I have a problem that when using the startup.bat my COBOL routine gets
kicked off fine, but when Tomcat is a service the COBOL returns an error
code and never executes. I have a feeli
If in my JSP page, say bookholiday.jsp, I would like to include output from
bookholidayshow servlet...
bookholiday.jsp:
<%
RequestDispatcher.include(request, resource);
%>
bookholidayshow.java(class/servlet)
doGet(...)
{
out.println... etc..
}
But how do I use RequestDispatcher in t
> -Original Message-
> From: Wyn Easton [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 12:24 PM
> To: [EMAIL PROTECTED]
> Subject: Please Look - 3.2 beta 7 problem - RequestDispatcher
> include()
>
> Are you not suppose to mix URL access with a RequestDispatcher?
>
Title:
I'm having some trouble getting apache to find
a worker.I have the connector in server.xml, and can see that port 8009
is open using netstat:tcp
0 0
*:8009
*:*
LISTENI have workers.properties
configured:worker.list=localworker.local
Hi there,
I wonder if there is any more information available on
this subject.
I am looking into configuring the Tomcat 3.1 logger so
that the log file DOES NOT get overwritten on restart
and also to get some timestamps genereted
automatically.
What else is available in Tomcat 3.1 ???
TIA
Drasko
This may be over simplifying your problem, but have you looked
at the RequestDispather include() method?
It allows you to use the output of another servlet/JSP in the current
servlet/JSP.
--- carnell <[EMAIL PROTECTED]> wrote:
> I am currently migrating two projects that we have, both in Servlet
Are you not suppose to mix URL access with a RequestDispatcher?
Thanks.
Also, in 3.2 beta 6 I could do an include() then a forward().
Now in 3.2 beta 7 I get an illegalState error on the forward()
because of an open outputstream. I'm not opening an output stream.
The include() must be doing it.
Maybe you already knew this, but "out" is an implicit object in a JSP.
You probably need a response.setContentType() or the page directive
that doe the same thing to set your output stream for binary data.
--- kramer <[EMAIL PROTECTED]> wrote:
> I am getting this while using request.getOutputStr
Hi Folks any comments are welcome:
If Cookies are turned off in a browser the session-management by
url-rewriting does not work. This bug was introduced by 3.2 beta6 and is
still around in beta7
Just turn cookies off and try any of the session-examples in the
tomcat-distribution
Regards,
Andre
I am currently migrating two projects that we have, both in Servlets into
JSP.
Rather than rewriting everything into Model 2/with JSP architecture, is it
possible for me to write a JSP page that includes the output of the
Servlet(which make use of out.println a lot etc). I could simply remove the
Hi guys,
I have installed and setup Tomcat on my machine and managed to run the
examples that came with the Tomcat installation.
I then tried to understand how to set up a servlet by using Ant. I
proceeded to download the RI of jaxp and also Ant.
Then I did not know how to proceed on.
Could yo
Can someone get this to the developers? Thanks.
After some more research I do believe there's a bug in Tomcat somewhere. I
hosted my simple servlet in Allaire's JRun on Windows 2000, and it works
fine. Also when I host the servlet in Netscape's IPlanet it works fine. See
the code of the servlet b
Did you try http://localhost:8004/servlet/hi
?
Dom
- Original Message -
From:
Rasika
To: [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 7:41
AM
Subject: servlets problem is still
there
Hello,I have installed TOMCAT with Apache. I
followed yo
On the Servlet API javadocs.
Wellington Silva
UN/FAO
-Original Message-
From: Till Gartner [mailto:[EMAIL PROTECTED]]
Sent: 14 November 2000 11:11
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: AW: How many sessions are open?
Sounds interesting. Unfortunately I missed the thread
Sounds interesting. Unfortunately I missed the thread about
HttpSessionBindingListener. Any tip where to find some info about it?
-- Till.
-Ursprüngliche Nachricht-
Von: Samuel Yuen [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 9. November 2000 15:21
An: [EMAIL PROTECTED]
Betreff: Re:
Simon
On Tuesday, November 14, 2000, 10:18:50 AM, you wrote:
Kitching> Hi,
Kitching> No, 3.1 is not production quality - I know, I tried :-(
Kitching> However, 3.2 is due out in a matter of a week or two.
Kitching> I am using 3.2beta6 for a small-medium volume
Kitching> business-to-business
Hi,
No, 3.1 is not production quality - I know, I tried :-(
However, 3.2 is due out in a matter of a week or two.
I am using 3.2beta6 for a small-medium volume
business-to-business web site, and it is ok. Not
the fastest webserver in the world, but adequate,
open-source, free, standards-compli
75 matches
Mail list logo