So what you're comparing here is and Object of type Date and an Object of
type Class. Those are not the same. However if you had something like
this:
class DateZ extends Date {
public DateZ() {
super();
}
}
DateZ
Ok. How do I code it incorrectly then? :)
I want it to be unique to each session. Is there anyway I can do that?
-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 2:31 PM
To: Tomcat Users List
Subject: RE: Loading Singleton Classes
Howdy,
The problem is that I want to test if an object is subclass of a
java.lang.Class INSTANCE... Nonsense example:
Maybe I'm still not understanding ;) But why doesn't the instanceof
operator work for you?
Your example:
java.util.Date date1 = new java.util.Date();
java.sql.Date date2
Hi,
I am running apache web server and mod_jk, AJP to forward JSP request to tomcat. The
platform is Solaris, JDK 1.3, Tomcat 4.01. Occasionally I see a failure in what
appears to be the data coming from apache over to tomcat. Here is the exception.
Anybody know what causes this and how I
On Thursday 20 February 2003 12:51 pm, Wendy Smoak wrote:
On advice given here, I've got tomcat configured to _not_ unpack my .war
file. Then my ant 'deploy' target [not task] simply copies the .war file
over to /path/to/tomcat/webapps.
Wendy, why are you dealing with war files during
Thanks a lot. I don't know why I didn't try that. I guess I'm was just
think more from a PERL-regex point-of-view that it wouldn't allow
parameters without the * . Anyway, that fixed it and a few other
mapping problems I had. Thanks a lot.
[EMAIL PROTECTED] 02/20/03 12:06PM
Howdy,
There
Wendy, why are you dealing with war files during development at all? Ant
does
a great job installing and reloading from docBases at arbitrariry
locations
on the filesystem.
At the moment, I don't have my development files arranged in a webapp
structure (with WEB-INF, etc.). I was developing
Erik wrote:
Does your ant task provide the HTTP authentication credentials?
According to the example build.xml comments, you need to set a
manager.username and manager.password property for the ant script to
access the /manager app with.
It's taken almost straight from the example:
target
I seached the archive and only saw one message pertaining to this.
Is anyone doing this at all? And if so how?
Thanks,
John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If anyone can help, here is my
problem:
I can go to http://localhost:8080/examples and I
get the directory listing images/ jsp/ servlets/. BUT when I go to http://localhost/examples I get the
forbidden error?!?
Any ideas? The permissions are all
good.
I go to
Howdy,
In the general case, no there are no problems creating threads off of
your servlets to do background processing and other tasks.
If you're running inside a full J2EE container, there may be problems,
but I don't think that applies to your current situation.
I've seen/implemented a number
Hello,
I have started an external process from servlet's doPost method
(using Runtime.exec method). The process continues to work
after return from doPost.
The servlet receives and processes subsequent requests from
the same session.
But in case of session timeout it stop working.
The servlet
Howdy,
I'm not doing this, and I'm one of those people who cleans their cache
every time their browser is closed (12Ghosts auto wash is among the
greatest tools I've ever seen for any computing purpose, ever), so
Remember Me functionality doesn't typically work for me, but...
Is anyone doing
But does this work with Form based authenticaiton and realms... How do
you let the realm know that the user remembered so the login can be
bypassed?
John
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 3:23 PM
To: Tomcat Users List
Wendy Smoak wrote:
It's taken almost straight from the example:
target name=reload description=Reload Web application depends=
reload url=${manager.url} username=${manager.username}
password=${manager.password} path=/${context}/
/target
(With the appropriate properties set, of
* Paul Yunusov [EMAIL PROTECTED] [0245 19:45]:
On Thursday 20 February 2003 12:51 pm, Wendy Smoak wrote:
On advice given here, I've got tomcat configured to _not_ unpack my .war
file. Then my ant 'deploy' target [not task] simply copies the .war file
over to /path/to/tomcat/webapps.
To code it correctly follow the pattern. :)
Should look something like this:
class Singleton {
public static Singleton s = new Singleton();
protected Singleton() {
super();
}
public static
What if he actually needs a singleton? That wouldn't help any.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 11:37 AM
To: Tomcat Users List
Subject: RE: Loading Singleton Classes
Actually you'll want to make
public static Singleton s = new Singleton();
be
private static Singleton s = new Singleton();
So a wise guy doesn't do this:
Singleton.s = null;
-Tim
Mike Jackson wrote:
To code it correctly follow the pattern. :)
Should look something like this:
class
Then again if it's a singleton there's no need to put a reference to it in
the session, that's just a needless use of memory.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 12:41 PM
To:
Or even
public static final Singleton s = new Singleton();
:-)
On Thu, 2003-02-20 at 17:43, Tim Funk wrote:
Actually you'll want to make
public static Singleton s = new Singleton();
be
private static Singleton s = new Singleton();
So a wise guy doesn't do this:
Singleton.s
Erik wrote:
Hmm... not to be contradictory but those two URLs are not the same, if
you look closely. (One is manager/html/reload, the other is
manager/reload.) But I do not know much about the /manager app, so this
might not be the source of your problems.
One is what you use when
Oops. Although I wouldn't implement it a private, I'd use protected, that
way a class that inherits can override the class returned.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 12:43 PM
You could use final if you didn't want inherited versions to be able to have
themselves be returned.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 12:44 PM
To: Tomcat Users List
The Servlet is listening for requests. When a request is made it sends a response.
The request is one of the parameters to the servlet, and you can tell that it has
content in it, but you can not get the content from the request with getInputStream
and I don't know why that is. Maybe I am
You could give me practical exemple of why I would do that?
On Thu, 2003-02-20 at 17:49, Mike Jackson wrote:
You could use final if you didn't want inherited versions to be able to have
themselves be returned.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: John Trollinger [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 12:31 PM
Subject: RE: Form based security and Remember Me
But does this work with Form based authenticaiton and realms... How do
you let the realm know that the user remembered so the login can be
bypassed?
This was
Has anyone successfully installed a purchase root
certificate? I've purchased a cert from installssl.com
and they haven't been much help.
I've done everything I am supposed to but it just
won't get recognized when I hit the page. I know the
Tomcat SSL is working because a self-generated one
works
No, just saying that you might not want to limit yourself.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 12:50 PM
To: Tomcat Users List
Subject: RE: Loading Singleton Classes
The version I released yesterday had a severe problem with improperly
setting the java.endorsed.dirs which probably resulted in the service
always failing to start. Sorry!!!
It's been fixed now, and you can download an updated copy at the link
below.
Tomcat Service Manager will manage one or
From what I understand, some different certificate vendors require different
installation methods... Did they include instructions for IIS or Apache, for
instance?
Worst possible case you could front-end your site(s) with Apache and use
connectors to get to Tomcat.
- Original Message -
A thought (just started following the thread).
I can see a problem, in that the cookies may never get initialised because
of the use of the checkbox. If the checkbox hasn't been selected, you'll
always receive null from the form.
Would suggest using a radio button instead, where the parameter
Hi, all,
I have multiple servlets running within tomcat 4.1.18 for which I need
individual log files. I also wish to update individual servlets without
restarting tomcat. To achieve this I:
copy (via ant) servlet foo.war files to $TOMCAT_DIR/webapps/fooDir/.
Copying them to a subdirectory
Hi,
I have to do some thing like this,
From my jsp i want to pass some object to servlet, but
do not want to use session for it
so what i am trying is , in my jsp i have
form action=/testapp/servlet/TestServlet
method=post
%
request.setAttribute(myObject, myObject);
%
input type=submit
you are misusing the request.setAttribute, use session.setAttribute for what you want
to achieve.
request.setAttribute is only used to store data for the lifespan of the request.
Filip
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20,
Hi Filip,
I know, but i want to achieve some thing like
reqeust.setAttribute(), i dont want to save the object
in session, as then i will have to put some logic to
get it out of session, or size of session will go on
increasing, and will create problem in future
Ashish
--- Filip Hanik [EMAIL
the session is the only thing that can hold data for you between requests.
Request.setAttribute is used when you wanna pass data between jsp pages while doing a
forward or include
Filip
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003
Hello Judd,
The catalina-ant deploy task does this if you include a
META-INF/context.xml file in your .war file.
Note: deploy uses HTTP PUT, so you cannot achieve this through your
browser. Use the ant deploy task or some other custom piece of
software that supports HTTP PUT.
Jake
Thursday,
Hello All,
I have beening messing with trying to get apache2 with tomcat4
working together with SSL for a while now. I can get them to talk to each
other and handle jsps but never with SSL. So I thought I would start from
the beginning. So I used
I believe that 8443 is a secure port on Tomcat, depends on your server.xml of course,
so you should use https://
try www.johnturner.com/howto/
Filip
-Original Message-
From: Shufelt, Jonathan S. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 2:19 PM
To: 'Tomcat Users
Hello Rob,
Look at the logs in CATALINA_HOME/logs. There could have been a
parsing error of your web.xml or any of a number of other problems.
The logs will usually tell you what happened.
Jake
Thursday, February 20, 2003, 2:52:19 AM, you wrote:
RAI When I run 'ant install', I get the
The problem does go away with jdk 1.3 using jsse software instead of jdk 1.4.
How do we fix it for jdk 1.4?
Tony
Tony Dahbura wrote:
Bill:
Can you tell me how or point me to some docs on how to do the tcp traces
you are requesting?
I can certainly run some test cases and deposit them
I am a peruvian student and i have a problem about apache web server and its
relation whit tomcat. i have apache web server 1.3 and tomcat 4.0. what i
have to do for a good understandig between this two.
plus i need to now how i got to call my servlets from my web page. before i
use to call
Ashish Kulkarni wrote:
Hi Filip,
I know, but i want to achieve some thing like
reqeust.setAttribute(), i dont want to save the object
in session, as then i will have to put some logic to
get it out of session, or size of session will go on
increasing, and will create problem in future
www.johnturner.com/howto/
Filip
-Original Message-
From: christian morales [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: apache web server and Tomcat
I am a peruvian student and i have a problem about apache web server and its
You can use requestDispatcher to forward your req to your servlet.
i.e. getServletContext().getRequestDispatcher(url).forward(reqest,response);
Hope this help.
Michael
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 1:58 PM
To:
Hi managers
I have runing Tomcat with aparache, this evening httpd send this error:
[04/01/2000 16:37:33:547] (EMERGENCY) ajp12[1]: cannot scan servlet
headers
(500)
[04/01/2000 16:37:33:547] (ERROR) an error returned handling request via
protocol ajpv12
And jsp doesn't run
try to configure your Apache to use the AJP13 protocol instead of AJP12.
Filip
-Original Message-
From: MARIO HENLEY BECERRIL GELDIS [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 3:30 PM
To: [EMAIL PROTECTED]
Subject: error htdocs
Hi managers
I have runing Tomcat
Somebody has some experience or example in the
configuration and use of pool of connections with the
commons-dbcp.
I am a little lost and I don't know through where to
begin.
All information will be well arrival.
I thank the help in advance
Hi,
I am looking for a way of accessing a web application
context from a standalone desktop application. Is this
even possible? Basically, I have a connection pool in
my web application's context and would like to access
that from the application. I would also like to
extract some string and
Tomcat is not sending the right header back( Content-type probably).
Telnet into port 80, simulate a web request and see what the server
repsonse header is and adjust tomcat accordingly.
-Tim
David Epstein wrote:
I have a website that serves up files, which are often .csv files. When
I run the
It is strange that RequestDispatcher considers only
jsp and html, why not other extns like jpg/gif or why
not just any other resource - is this because of any
security concern?
Also, I have not understood your workaround Mr Edson,
can you please tell me in more detail how to get
around my
*** I am re-sending this email with the attachment 'kt.bat' removed and
the text of the batch file included in email body - after being flooded
with anti-virus messages from a couple dozen ISP's that have labelled
'.bat' files as potential viruses. ***
Matt,
I'm sorry I didn't see this
You shouldn't put anything in your finalize() method, it's a bad practice
because it can cause issues with the jvm's gc.
In your case, you should implement connection and treat the connection just
like normal with JDBC access. In your own connection, keep a reference to
your connection cache and
This is a bit off topic.
Par for the course lately :)
I am using connection pooling, and in my code, I open all the connection I
need in an object constructor.
Then I will close this connection in finalize(), which (according
to what I
read) will be executed during java garbage collect.
I apologize for not being familiar with this, but I have some insight to
offer. Bear with me:
Is ConnCache your own class (i.e., did you write it)? If it is, I'd put a
call to close() in the finalize method of that ConnCache, not GeneralConn.
If it's not, I would expect that has already been
And now all these other guys say that using finalize() is bad practice. I
have to ask... Is it bad practice just for the reasons Mike Jackson
described, or does the use of finalize() in general actually cause problems
with the JVM? I've not heard that before. The 1.4 API makes no mention of
any
I am making call Oracle Function on remote database .
The values are taken in result set.The numbers of records in
result set are aroung 6000.
when I do
while(rs.next())
{
//My logic
}
This takes aroung 5 min(300 sec) to get completed
Now I commented all my logic inside while loop of rs.next()
If you're reading out 6K rows remotely, you're limited by bandwidth. Especially if the
webserver only has one ethernet card and you're viewing the pages from another client.
If you're concerned about performance, I would suggest writing a simple test bean to
do the same exact query and time
how to integrate Borland Together Control Center with jdk 1.4?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Firstly I would *Strongly* recommend filing a bug report at
http://nagoya.apache.org/bugzilla, simply so that it doesn't get lost in the
traffic on this list.
The basic problem is that the JSSE that ships with JDK1.4 doesn't allow
simply sending back a re-handshake request. It won't actually
101 - 161 of 161 matches
Mail list logo