Thanks, Yoav. I really could not tell what the question was.
At 03:27 PM 8/15/2003 -0700, Yoav Shapira wrote:
Howdy,
I believe he was referring to external access to tomcat's JNDI provider,
which is tricky. In-memory is easy and you're right a JDBC resource can
be configured (just like any other
"Madere, Colin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> That is a concrete path and you must be joking if you are suggesting to
> explicitly define each and every URL as a "web-resource". The idea of
> hierarchical authorization of resources is a very sound idea and other
au
There have been very many client-cert changes since 4.1.12. For using Sun's
JVM (which you seem to be using), you probably need to upgrade to at least
4.1.24. For other vendors, you need to upgrade to 4.1.27. In particular,
4.1.12 uses JSSE 1.0.x, so you need to upgrade to take advantage of JSSE
Does Tomcat support two way trust (HTTPS) between the client and itself,
where the server requests for a X509 certificate from the client connecting
to it? I read somewhere that this feature isn't complete in the 4.1.x
version of Tomcat.
I've tried setting the config file as follows (I'm running
Hello,
I'm having a problem with 'exception.getMessage()' - whenever I throw
an IOException with a message (i.e. throw new IOException("error") ),
my error jsp page displays nothing.
I have the java.io.IOException mapped in web.xml to a jsp error page.
Thanks,
James
-
Hi folks;
Anybody knows where is the JSESSIONID cookie is? I search the whole Cookies folder, I
can't find it.
Billy Ng
This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com
I fixed my own problem. The call was moved from the <%! %> scope to the
<% %> scope, so that it made it inside the jsp service() method and it
was able to resolve the context.
Chris
Chris Cheshire wrote:
Hi,
Using tomcat 4.0.24, I have some s defined in my web.xml.
In my servlets, I am able
I'm using the latest oreilly class MultipartRequest to upload files into my
server. However, whenever I try to upload a big file (say, > 100k), I got
the following exception. With smaller file (< 50k), it works fine. I browse
through the tomcat archive list, as well as google site, both indicate th
Howdy,
I believe he was referring to external access to tomcat's JNDI provider,
which is tricky. In-memory is easy and you're right a JDBC resource can
be configured (just like any other JNDI resource).
Of course, if tomcat's JNDI provider moves into its own jakarta-commons
component as we've bee
Hi,
Using tomcat 4.0.24, I have some s defined in my web.xml.
In my servlets, I am able to access these values with
getServletContext().getInitParameter("some name")
However, if I try and do the same from a jsp page in this web
application I get the following NPE
java.lang.NullPointerExceptio
Sorry, I forgot to mention in my first post:
JkMount /*.jsp ajp13
JkMount /*/servlet/ ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
Where you have ajp13, mod_jk is expecting the name of the worker - in
this case testWorker. Try:
JkMount /*.jsp testWorker
JkMount /*/se
>
> Notice the shortly thereafter.
>
> That's a comment, so you have that Ajp13Connector commented out at the
> moment :)
>
> Try removing the from around the Connector tag and restart
> Jakarta.
>
Hi. Thanks for pointing that out. I didn't notice that before. I removed
that comment and
This is mistaken, if you mean what you say. There is a JDBC resource
available via JNDI in Tomcat. You have to code it, of course, but it
definitely is available.
At 02:53 PM 8/15/2003 -0500, Madere, Colin wrote:
I think your inclinations that Tomcat is not a naming service are correct.
I have
Uhm...
And I didn't touch the Connector Classname entry in server.xml:
shortly thereafter.
That's a comment, so you have that Ajp13Connector commented out at the
moment :)
Try removing the from around the Connector tag and restart
Jakarta.
I'm no expert, but one thing you have different from my configuration
is the connector. Mine looks like
I have this vague recollection of someone saying to use CoyoteConnector
instead of Ajp13Connector. But, that could just be a random synapse
misfire.
G. Wade
Henry Kwan wrote:
>
> Hi, I'
Hi Yoav,
Here it the jsp and servlet code I am using, again it
works when accessed directly but via Apache and WebApp
no.
Thanks,
Vid
Here is JSP Page---
<% //@ page errorPage="errPage.jsp" %>
<%
WebSql.GetRec nhdbRec = new WebSql.GetRec();
nhdbRec.init("select field1,field2,f
That is a concrete path and you must be joking if you are suggesting to
explicitly define each and every URL as a "web-resource". The idea of
hierarchical authorization of resources is a very sound idea and other auth
schemes follow this "trickle-down" idea that you secure the whole tree with
a ge
Howdy,
>I've checked the servlet specs and found that the request.getRemoteAddr
>() method does not throw any exceptions, but I'd like to know if this
>method is always guaranteed to return a non-null, valid IP address.
You should start a different thread for a different question ;) ;)
No, it's
Thanks! That solution worked out very well for me.
One other quick question, if you don't mind -
I've checked the servlet specs and found that the request.getRemoteAddr
() method does not throw any exceptions, but I'd like to know if this
method is always guaranteed to return a non-null, valid
Hi, I'm trying to setup a Apache/Tomcat test server and am having some
problems. Apache works fine on port 80 and Tomcat works fine on 8080 but I
can't get mod_jk to connect them. I'm running Solaris 8 SPARC and I
compiled Apache from source, grabbed the Tomcat binary, and compiled mod_jk
fro
I think your inclinations that Tomcat is not a naming service are correct.
I have not seen reference to anything that suggests you can set up resources
in Tomcat that are available via JNDI. JBoss, certainly, as it does provide
a JNDI server (whatever the appropriate name for that is), as I've use
Ok, so changing the "dataSourceName" attribute in the Realm config (as you
suggest which contradicts the HOWTO) to the short name I've given my
resource makes the Realm auth work with the globally defined datasource.
Yay!
However, when trying to connect to the datasource (moved the "jdbc/Auth"
res
Howdy,
Post the relevant code that throws the NPE. ;)
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Vid Bijelic [mailto:[EMAIL PROTECTED]
>Sent: Friday, August 15, 2003 3:13 PM
>To: [EMAIL PROTECTED]
>Subject: WebApp and database not working
>
>Hi,
>
>When I open w
Hi,
When I open web page with database connection directly
(not via Apache and WebApp) it works fine (displays
records from database), but when I open the same page
through Apache using WebApp I got Null Pointer
Exception.
I hope some one has a suggestion for this.
I am using Tomcat4.1, Apache2
Sorry Dan,
I used the Filter as is (using UTF-8) and removed the code to try to convert it again
and it works beautiflly for both Chinese and any type of Japanese I can throw at it.
Thanks again.
-- Nathan Christiansen
Tahitian Noni International
http://www.tahitiannoni.com
-Origin
I am working on a program that checks the file download progress and
audits the results. I have noticed with netscape browsers, that if a
user starts downloading a file, and the "Save As" window comes up, there
is a small amount ~200K worth of data that gets written to the browser.
Is there a
Howdy,
>The problem with that solution is this - I have written my own
>exception, and cannot override the list of exceptions associated with
>the doPost() method.
Hmmm... I think the error page might still be able to work. Try making
your exception a runtime one, so that you don't have to decl
Thanks for the info.
The problem with that solution is this - I have written my own
exception, and cannot override the list of exceptions associated with
the doPost() method.
Am I just misinterpreting your previous post, or is there another
solution for this?
Thanks for the help,
James
---
Thanks Dan.
I did download the filter code and tried all of the Simplified Chinese encodings
without luck.
I am unsure which encoding that the IME is sending (since I do not read Chinese myself
and can't read the help manual).
Looking through the filter code, it would be exactly similar if I a
thanks a zillion, that worked :)
On Friday, August 15, 2003, at 09:17 AM, Bill Barker wrote:
Assuming that your Tag extends TagSupport try:
pageContext.include("mySomething.jsp");
"Mufaddal Khumri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I know what the problem is and I kn
Howdy,
Seeing how a JSP is a servlet, I'd be very surprised if there was
something you could do with JSPs and not with a servlet ;)
Use the directive in web.xml ;) The Servlet Spec section
on the deployment descriptor has details and examples.
Yoav Shapira
Millennium ChemInformatics
>-Or
Is there a way to set the error page for a servlet (i.e. something
comparable to using the page directive with 'errorPage=error.jsp' in
jsp's)?
Thanks,
James
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Howdy,
I didn't even URLEncode the param value, I simply entered it into the
browser's address bar, and the servlet just does
request.getParameter("paramName"). No encoding or decoding.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Vijay Kandy [mailto:[EMAIL PROTEC
You are right. That's where I have an issue. Thank you.
Vijay
-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 11:10 AM
To: Tomcat Users List; 'Tomcat Users List'
Subject: Re: Request parameter value containing = is not parsed well
Hi
= encode
Thank you for your testing. So did you URLEncode the param value? Is there a
trick not to URLEncode and still retain the value. Because was alright on
3.2.3.
Sincerely,
vijay
Howdy,
I don't know (and don't really care much about at this point) 4.0.4, but
I can't reproduce what you claim on 4.1.27.
I have an annoying problem that I am trying to figure out.
I need to support Simplified Chinese in a webapp that also supports ISO-8859-1.
I figure the best way is to make my web pages encoded in UTF-8.
The database access and display works, but I am having trouble with getting post data
to com
Howdy,
I'm assuming you're using tomcat 4.x. Hopefully 4.1.27.
>I am new at using Tomcat and have a basic question. I have gone through
the
>config files but haven't been able to find out where to set the default
>catalina_home directory. I have a web application that is set to
c:\webapp.
CATAL
Greetings,
I am trying to create a standalone application that references a DBCP on Tomcat. I'm
not sure if I can do this; I've seem some articles that seem to suggest that it can be
done, but again, I'm not sure. I've read http://www.mail-archive.com/[EMAIL
PROTECTED]/msg08353.html.
I have
Hi
= encoded is %3D, so that's where you are missing something I think.
greetz
Hans
At 10:41 15/08/2003 -0500, Vijay Kandy wrote:
Hello All,
I have a servlet whose expected parameter is ZAZBZ and its value is
CZlYnXtAIBDC=D9W7V
So calling http://host/context/name?ZAZBZ=CZlYnXtAIBDC=D9W7V would cau
Howdy,
I don't know (and don't really care much about at this point) 4.0.4, but
I can't reproduce what you claim on 4.1.27. The behavior is correct
with equal signs in param value, they are retained.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Vijay Kandy [mailto
I've been digging around in the source for Tomcat 4.1.27, and this is
what I've found.
The problem I've had with not being able to get load balancing to work
in my application is a problem with Basic Authentication. Since Basic
authentication never sends a JSESSIONID cookie, the jvmRoute is never
I am new at using Tomcat and have a basic question. I have gone through the
config files but haven't been able to find out where to set the default
catalina_home directory. I have a web application that is set to c:\webapp.
I would like to set Tomcat to see that directory and use it as default for
Hello All,
I have a servlet whose expected parameter is ZAZBZ and its value is
CZlYnXtAIBDC=D9W7V
So calling http://host/context/name?ZAZBZ=CZlYnXtAIBDC=D9W7V would cause
System.out.println(request.getParameter("ZAZBZ"));
to print CZlYnXtAIBDC=D9W7V in Tomcat 3.2.3. But in tomcat 4.0.4 the
prin
Ok, I finally got the script to execute correctly and I got the familiar
output:
Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4
Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4
Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp
Using JAVA_HOME: /opt/j
Hi all,
I've great problems with Tomcat and setting up a context in a 2nd
(virtual) host:
my environmemt:
OS: Redhat Linux
Platform: Intel x86
TC version: 4.1
tomcat4.conf:
--- cut -
CATALINA_HOME="/var/tomcat4"
JASPER_HOME="/var/tomcat4"
CATALINA_TMPDIR="/var/tomcat4/temp"
cut -
A complete html parser seems a bit over the top if you can ensure the html
is validated before it goes into the database.
If the html is validated you can perform a search and replace on known
cases, however I had the same problem and encodeURL only worked on url's
that could be resolved within
Thank you very much for your reponse. Probably we will want to take
advantage of Apache SSL and configure it to relay requests to Tomcat
instead of using Tomcat as "stand-alone". To do this, do I just need to
configure Apache and add the appropriate mappings or must I also install
the mod_jk (Apa
That is how it works. AFAIK there is nothing you can
configure to change this.
This is a thing that requires some logic to implement a
generic solution. It would require a complete html parser
that parses each response (Quite challanging and time
consuming). And what should this solution do wi
Oh yes, I forgot, because the URL lives within a big block of normal
text, I can't just call encodeURL on the whole thing. Seems like I need
a method that will search out an
/kurt
Kurt Overberg wrote:
Well, yeah it should, but I get the impression (from testing and seeing
it not do it) that
Well, yeah it should, but I get the impression (from testing and seeing
it not do it) that if the URL is coming from a database and the URL (a
href) is embedded in other text, that it won't automagically work.
Since the URL isn't in the JSP file at compile-time, it seems that it
just gets passe
Thanks Bill, that would work great.
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
> Sent: Friday, August 15, 2003 12:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: From which apache virtual host did a request come from?
>
>
> It seems that I had a mo
Only if you call encodeUrl on the link.
If you just write out some text it stays as it is
no matter if it contains links.
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 15, 2003 3:35 PM
> To: Tomcat Users List
> Subject: RE: URLEncoding urls (
Howdy,
Don't worry about it, the servlet container is required to do this for
your automagically (if the client doesn't support cookies).
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Kurt Overberg [mailto:[EMAIL PROTECTED]
>Sent: Friday, August 15, 2003 9:29 AM
>To
Gang,
I store text in my database that contains:
Hello there, user, please click this link.
I output this text to the user with the tag (I'm using
struts 1.0 & tomcat 4.1.27). Is there some way to make sure that my
JSESSIONID will get appended to these links (for people w/out cookies),
Cool, thanks for that.
barry
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 15 August 2003 14:01
To: Tomcat Users List
Subject: RE: PropertyMessageResources
Howdy,
Actually, you are using struts if you left the admin webapp installed, which
it appears you did
Howdy,
Actually, you are using struts if you left the admin webapp installed,
which it appears you did ;) These (as the INFO indicates) are just
harmless informative messages regarding the admin webapp's
initialization. You can remove the admin webapp if you don't need it,
and these will go away
I recently uninstalled tomcat 4.1.24 and installed 4.1.27(with hotfix) on
w2k professional. Whenever i start tomcat the following lines (aswell as
some other stuff) appear on the console:
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=tru
Howdy,
I completely agree with Senor Barker ;) If it's important for you, make
a patch for it yourself ;) This one particularly is fairly easy. We're
all busy enough to barely cover bugs that people designate as
showstoppers in bugzilla ;)
Yoav Shapira
Millennium ChemInformatics
>-Origin
Howdy,
>I would like to start and stop that Monitor Thread with tomcat so I
loaded
>from a (load-on-startup) servlet. It loads OK and works fine but when
Use a ServletContextListener instead of a load-on-startup servlet.
>I tried in Servlet destroy method...
> Monitor.stopNow(); // my t
Hi,
I tried to use the JK2 graceful shutdown feature through runtime
reconfig but my setup failed to work. Anyone has a working example?
My setup has Apache 2.0.47 and 2 instances of Tomcat 4.1.24 on Solaris
8. JK2 connector was used to load balance between the 2 Tomcat servers
through socket
Hi folks,
I will lose the session everytime I close the browser. Is there a way to persist the
session even I close the browser?
Thanks!
Billy Ng
This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfront
Infact no it didn't :o(
That was something I tried yesterday. I've still not got a .so file that I
have compiled.
What could I be doing wrong?
-Original Message-
From: Stuart Stephen [mailto:[EMAIL PROTECTED]
Sent: 15 August 2003 10:26
To: Tomcat Users List
Subject: RE: Getting mod_jk2
Hi all,
For your reference, I have now found out what the problem was.
I checked out more information about what the apxs is and found out that its
effectively a compiler of some sort. So I went to my $APACHEHOME/bin/
directory and ran it 'apxs'.
I got the message:
Can't exec "/usr/bin/apr-conf
Got it. Thank you so much!!
Regards,
-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: 2003年8月15日 14:42
To: Tomcat Users List
Subject: Re: Run Windows' command in Java method
Beware of the pitfalls that can come from using Runtime.exec()
Have a look at this artic
Xiaojing,
The API you're looking for is java.lang.Runtime. However, my personal
advice would be to use OS-dependent calls sparingly - it makes your
application platform dependent and typically makes it a lot less portable...
Cheers,
- Johan
---
Johan Krisar
johan.krisar(at)depicta.com
---
Any one know about scoreboard and slots?
When the tomcat&apache is up for long time, number of slots are getting
increased, when I restart the apache, jk start creating again.
What does a slot mean? why the number is growing?
In fact I am testing my new development server with JMeter (3x25 threa
Of course I could make a patch for this (it's really easy to do :). However
I won't, since I consider getting a patch submission to indicate that the
feature is actually important enough to someone that they would take the
time to figure out how to do it. If it's not that important to them, then
Does any know a good workaround.
I was thinking af putting af non-protected JSP in front of my protected
JSP, that just saves the needed info in session scope, before forwarding to
the protected JSP.
It is just not that good an idea, when you have such a complicated
structure of protected JSPs i
68 matches
Mail list logo