Krishnakant Mane wrote:
hello,
I refered to the docs in tomcat 5 for connection
pooling. the document is pritty comprehencive and I
understood the server.xml part of it.
but now I want to know how exactly can I use a
connection from the pool in my servlet.
the example in tomcat documentation is
Hi Patrick,
You use should use the servlet name you specified rather than the
class name.
Do you need the servlet-mapping as well ?
Here's a example from tomcat:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/admin/WEB-INF/web.xml?view=markup
Van
You need to release connections when you are done with them, con.close() ;
This is similar to using a direct connection to the jdbc except this
time the only difference is where you got the connection object from.
Calling con.close() ;
will release the driver back to the connection pool.
Lucie
Dan,
U have 10 application servers on one machine or 10 application on 10
distinct machines ?
Dan Foreman wrote:
Hi,
I have a setup of 10 application servers using Tomcat 4/5, jsdk 1.4.2_02, SMP,
win2k. In watching the performance under load I am
concerned that only one CPU is being
Tony Colson wrote:
This might be a re-post...sorry if it is...
Is Tomcat 4.1 (or even 5.0) EJB Compliant? If so, is it compliant with
the EJB 1.1 or 2.0 specification?
No it is not EJB Compliant. There's no need for it to be.
I can't seem to find appropriate documentation. Also, in the
What are you displaying in a JSP page that takes up 4 megs ?
Peter Guyatt wrote:
Hi There,
Can anyone possibly tell me what the maximum page size allowed when
compiling/presenting JSP page.
The question arises when I try and display a 4meg file.
If there is a limit is there any way to
Hmm maybe you can just write out the file to the response body in a
servlet ? Or do you need to do something in the jsp ?
Peter Guyatt wrote:
Hi there,
Its an XML file
Pete
-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: 17 December 2003 11:12
To: Tomcat
I think that is refering to a RDBMS realm. Last time I checked,
tomcat-users.xml
was only read on startup.
Ron Andersen wrote:
1) I configured the default authentication realm - UserDatabaseRealm, which is setup to use conf/tomcat-users.xml. However, I am confused about the following statement:
Hi list ,
With regards to the security manager in tomcat, is it possible to
ship a policy file with each webapp ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hmm maybe you are not returning connections after using them ?
In the tomcat docs they do give a pattern you could use in your code, like
try {
}catch(SQLException e) {
}finally {
try {
//Perform your close statements here.
}catch(SQLException e) {
}
}
HIH .
Isn't removeAbandoned deprecated ? If so is it still usable ?
Hmm... are you getting the error right away or only after a few requests?
Hard to say anything without further information. It is always a good
idea to make sure you properly close all Statements, ResultSets anc
Connections
This is where I saw it :
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/AbandonedConfig.html
But I think the code is still in there, just marked as deprecated :D
Philipp Taprogge wrote:
Hi!
Kwok Peng Tuck wrote:
Isn't removeAbandoned deprecated ? If so is it still
Dunno if this helps, but could you try stopping the webapp first ?
Pundalik Kudapkar wrote:
I am using Tomcat 4.1.27 to deploy my web application. I am using the manager application for deployment and undeployment. The deployment is working just fine, however, the undeployment is not deleting
So his 'Out of topic' is in fact out of topic ? :)
Achana, maybe you can have a look at many of the linux mailling list out
there ?
Might be better help than the tomcat list.
Oscar Carrillo wrote:
You are waay off topic here.
A google search is the way to go here.
Regards,
Oscar
On Mon,
Chaikin, Yaakov Y (US SSA) wrote:
Ok, I don't know why, but it's not letting me attach it.
I think the list discards attachments .
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
PROTECTED]
-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 9:53 PM
To: Tomcat Users List
Subject: Re: Lock on database file not being released...
Chaikin, Yaakov Y (US SSA) wrote:
Ok, I don't know why, but it's not letting me attach
You are missing the servlet.jar file, which contains the neccesary
classes for your servlet to compile.
Just make sure your compiler can find the jar file in your classpath. If
you have a IDE like netbeans
than you have it easy, just mount the jar file, and you will be able to
compile without
But this means I still have to get a connection, create a statement,
and execute a query or update on the statement in every servlet where I
want to use the connection. Yes, it locates the connection details
(i.e., the JDBC connection method, the database name, user and
password) somewhere
I think this link over here, might give you a hand.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
There are samples there for databases like mysql, but I think you should
be ok.
Todd O'Bryan wrote:
This may not be the right place to ask this, but if you
You can deploy your war file or unpacked app else where, just provide a
context file for your application and in it specify the location of your
web app. You can see that the manager app does this, just check out
manager.xml , should get you started.
sanjay paithankar wrote:
Hello ,
I'm new
What apps are you running ?
Maybe you are running something that consumes a lot of ram.
Dhruva B. Reddy wrote:
We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun JDK
1.4.1_02 (with 512MB allocated to it) The box has 1GB of RAM, 2GB of
swap space, and four Xeon processors.
This
It looks like getUser is actually passed a Connection object from
somewhere, otherwise why pass it a Connection object.
vic banta wrote:
in the getUser() method below, it has the parameter Connection connection, is the connection to the database established in this line or is a
Maybe the server.xml is malformed ?
You can check by running catalina.bat instead of using the icon. That
way it will run in the current window instead of disappearing. Try
'catalina run'
[EMAIL PROTECTED] wrote:
Harry, i follow through this problem...
but if i am not wrong, sancha start from
Fire up your text editor and edit away.
If you are on a penguin box, you can use 'vi'
or if you are on windows, just use notepad or wordpad.
Navanee wrote:
I don't have any idea of how to edit the web.xml file. Any pointers
would be helpful.
[EMAIL PROTECTED] wrote:
Navanee,
Please check and
Hello Simon,
Run the catalina batch file, passing in the argument run like
this(without the quotes of course):
catalina.bat run
This will run tomcat in the current window, from there you
should be able to see the errors that
tomcat throws out.
Simon Allen
The new version of DBCP should be able to cope with this as well.
I tested it with MaxDB and it works ok.
Veselin Kovacevic wrote:
Now, everything working fine. :)
Thanks Jon.
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 4:50 PM
settings?
-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 9:13 AM
To: Tomcat Users List
Subject: Re: Problem with ConnectionPool on Linux
The new version of DBCP should be able to cope with this as well. I
tested it with MaxDB and it works
If I remember correctly, you probably need to provide a servlet mapping
for your servlet.
Adam Dear wrote:
Schalk,
I added the following line to the server.xml file and restarted tomcat.
context path=/servlet docBase=servlet debug=0 reloadable=true /
That didn't work. Can you tell what is
Putting the sql driver every where at once makes life that much difficult.
Here's a document that points you in the right direction :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
HIH :)
ArcherDaPunk wrote:
Sorry if this is the second one, not sure if the
If I'm not mistaken, the security manager is turned off by default.
Stefan Frank wrote:
I tried to tweak the security manager of tomcat(using no restrictions
at all) - with no effect. And I have absolutely no idea how to set the
security-settings for the Webapp: And if i knew, does anyone know
Hello, meissa, please have a look at the email I sent to the commons-list.
[EMAIL PROTECTED] wrote:
I'm currently using the version which is shipped with
tomcat 4.18 distrib
I'm correctly closing all of my ressouces(connection,resulsets and
statement)
I'm still having the problem.
Meissa
Make sure you have a JDK in your machine and that JAVA_HOME env variable
points to it.
Then click on the startup script to run tomcat. Should be able to run.
S.Gokul wrote:
Hi,
I have installed tomcat 5 in my machine running windows 98. Is it compatible with 98 or do I have to do anything else
to run it.
It starts up and then after a few seconds it closes the tomcat window. I
think its throwing some java exception. Can u help me out.
Regards,
S.Gokul
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 1
Heh, you are quick dude.
So maybe he does need JDK 1.4 :D
Basavaraju P. Banakar wrote:
correct me if I'm wrong
Tomcat 5 requires JDK 1.4 I remember reading that java.nio packages are
used from JDK1.4
-
Basu..
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED
Run as service instead :D
Leo Larraquy wrote:
It ´s a good idea, and but my client is Microsoft-mind-ahead
- Original Message -
From: Dov Rosenberg [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 7:22 PM
Subject: Re: Windows freeze...
Fdisk
Yes, as long as you import the classes and make them available in your
webapp.
anunay ashish wrote:
If my bean and servlet are as package com.scheduler, then can I use make an
object of the bean class in the servlet?
-
To
Did you by any chance import the class in the first place ?
Like
import javax.servlet.ServletException ;
Billy Aplin wrote:
Greetings,
I am new to JSP development and I am trying to compile a simple
servlet from
the More Servlets and JavaServer Pages. I am getting the error cannot
resolve
This works: javac HelloServlet.java -classpath
c:\Tomcat\common\lib\servlet.jar
This doesn't: javac HelloServlet.java
Billy, the second line implies that you did not include the classpath to
servlet.jar, so that's why it is having problems
with javax.servlet.ServletException.
If you find it
attempt to compile, otherwise why
create the CLASSPATH variable in the first place?
Thanks
Billy
From: Kwok Peng Tuck [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Problem Compiling JSP Servlet
Date: Fri, 03 Oct 2003 09:47:43
You can set the classpath variable in the system environment.
Settings-Control Panel - System - Advance(tab) - Environment Variables
I don't think you need to reboot for this to take effect.
Billy Aplin wrote:
Windows 2000.
Thanks
Billy
Here: http://jakarta.apache.org/commons/dbcp/apidocs/index.html
It's from the link on the left navigation bar.
Or you can just download the nightly release and generate the docs on
your own.
Josh G wrote:
Can somebody point me to a mirror of the DBCP API javadocs? All I get
when looking
Hard to tell from a small snippet like that , but if I had to guess, it
doesn't appear to meet the dtd specified
by the web.xml. Try sending us the entire web.xml in your email.
Paul Wallace wrote:
Hi All,
After implementing my simple Servlet under Tomcat thus:
servlet
The digester error actually provides you more info than you think :
org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,
It's not complaining about you, just about some address registered on
the list. It looks like the tomcat list tried to forward a email to a user
at chiinc.com but was unable to do so for the reason listed below. I
get that from time to time as well.
Ilja wrote:
Why do I always get this
Classes for your webapp are looked for in either : WEB-INF/lib; as a
jar file or WEB-INF/classes; non jar files
So for example if you have a jar file that you want to use in your web
app, put them in your webapp's WEB-INF/lib.
You should be able to use them.
David LAFAY wrote:
Hello,
Tomcat
Another option is available to you John-Paul, specifically,
http://www.kannel.org which is a wap and sms gateway.
This gateway is based on linux although you can use cygwin to compile
and run it, far from ideal but it does work
and is usable enough for testing. The gateway does support most GSM
Perhaps this might also ease the pain: http://cewolf.sourceforge.net/
Bill Barker wrote:
Running headless means using awt-light. In particular, one of the things
you are forbidden from doing is creating heavy-weight components like
Frames. If you want to run headless, you will need to
Any JDBC driver for mysql (that works for you) will do.
Amy Cheung wrote:
so what kind of connection is best? using the
J/Connector or the OCBC one?
--- Bill Barker [EMAIL PROTECTED] wrote:
Assuming that you aren't using JDBCRealm, then it
should be enough to put
the jar file in
In the servlet or jsp you could do :
String text = request.getParameter(subject) ;
Then do whatever you want with it.
engp0510 wrote:
Thanks
I know maybe I should use session, but when I choose select box, the jsp
page will be reloaded. How do I save the value of INPUT tabIndex=1
If you poke around in the mailling list for the taglib project you will
find a mail or two about this,
if I remember correctly had something to do with the tag not confrming
to the taglib specification that tomcat provides.
You could use jstl instead, but from my experience SQL in the jsp is
Have a look a the source code for the Admin Webapp for tomcat. It uses
JMX.
s p wrote:
I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
Is there a specific need to make that directory a smb share directory ?
Hertenstein Alain wrote:
Hello,
We have a Red Hat Linux 7.2 Server with Tomcat v4.0.3 installed, and a web
application configured, let's say myApps.
In this webapps/myApps folder, there are folders which we have shared
Specifically what problems do you have when running the app as a war
file ?
Peter Harrison wrote:
I have spent the last three days trying everything to move from 4.0 to 4.1.
The problem is with the datasources. When the resource is in a specific
Context everything works, but when its in the
If I may ask how much physical memory do you have in the first place ?
Do you really have that much to give to the for the max heap size ?
Mike Cherichetti (Renegade Internet) wrote:
I've set CATALINA_OPTS to use -Xmx896m and -Xms384m. That works fine with
maxProcessors set to 384. Problem is,
If you copy the DB2 driver into $CATALINA_HOME/common/lib , then it
should be a jar rather than a zip or a tar file.
I think you should also change driverName to url.
Alan Nesbitt wrote:
We have been trying for over a week to solve this problem. It doesn't help
that we haven't used tomcat
Beware of the pitfalls that can come from using Runtime.exec()
Have a look at this article first :
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Cui Xiaojing-a13339 wrote:
Hello,
Thanks so much for the help. Now I only want to execute a SQL Server's import/export
utility
I think it has to be javax.sql.DataSource
Andoni wrote:
One last question:
Do you all use:
Resource name=jdbc/animo auth=Container
type=javax.sql.DataSource/
Or do you call a different type. Such as javax.sql.PooledDataSource
Andoni.
- Original Message -
From: Shapira, Yoav
It's in the intranet right ? Should be easy to track down :)
Antony paul wrote:
Hello,
I have Tomcat standalone running on a local Intranet. The server is
windows 2000 SP2. Today while checking the access log files I found the
following lines
xx.xx.xx.xx - - [11/Aug/2003:09:47:38 5050] GET
Can't replicate your problem, tried both linux and win2k
Version of tomcat is the same as yours.
Paul Sundling(Webdaddy) wrote:
I came across what appears to be a security hole when running tomcat.
I'm not sure how widespread it is, but my linux server is safe, yet my
windows XP, tomcat
Pedro, unjar-ed classes go under WEB-INF/classes/{SOME PACKAGENAME},
jar files
go under WEB-INF/lib
Your java beans will never be found if they just reside under WEB-INF .
Pedro Silva wrote:
I am really having a bad time using Apache Tomcat for the first time...
But I won't give up... Just
]
-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: segunda-feira, 4 de Agosto de 2003 8:15
To: Tomcat Users List
Subject: Re: Configuration Error?
Pedro, unjar-ed classes go under WEB-INF/classes/{SOME PACKAGENAME},
jar files
go under WEB-INF/lib
Your java beans will never
How about:
if(session.getAttribute(myattrib)==null) {
}
Tim Davidson wrote:
But surely theres a better way?
Whould I be better off replacing session.invalidate() with session = null?
-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:44
jcrontab works ok, it is modeled after the unix crontab entries.
Best bet is to try it and see if it meets ones needs :)
Anton Tagunov wrote:
So, what John is speaking about - spending
less effort on thread coding and using an
existing solution (native Unix crontab)
may also be pushing you to
You don't map class files to your folder in tomcat. You should pack
everything into your own webapp directory and deploy it
into the $TOMCAT_HOME/webapps directory. Here's a short article that
might help you out :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
For more info
Hello Riaan, you might want to check out jcrontab.
http://jcrontab.sourceforge.net
Riaan Oberholzer wrote:
Well, that was part of my question if I
cannot/don't implement daemon threads to do e.g.
automatic daily tasks, what else? E.g, at the end of
the day send an e-mail to a (real life)
I'm no expert in load balancing and stuff like that, but shouldn't you
load balance tomcat as well ?
Antonio Fiol Bonnín wrote:
Hello,
We have already gone live, and we actually spend too much time dead. I
hope some of you can help me a bit about the problems we have.
Architecture:
3 Apache
It's up to the database vendor to provide a JDBC driver, not tomcat. You
will have to figure out if inicio has a JDBC driver, and what kind
of JDBC support provided by that driver, whether it is Type 1, 2, 3 or 4.
dein_metzger wrote:
hi.
I was thinking that tomcat comes with a native jdbc
How about this : http://jcrontab.sourceforge.net ?
Works for me.
Tim Shaw wrote:
Linux RH8, TC 4.1.24
I have an app I want to run regularly, so I've exposed the URI, and
used wget to trigger it from a cron job. I also want to run this (or
sub-set) at a particular point in time (e.g. 3:27mins
If I wish to use JMX in my own webapp, is it necessary for me to write
my own implementation of ServerLifecycleListener in the webapp's
Context ?
Say for example :
Context ..
Listener
classname=com.company.mbean.ServerLifeCycleListener debug=0
descriptor=some
Are you using mozilla ? Works for me.
Thomas, Kevin wrote:
Yip. I can't even get them to filter.
-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: 11 July 2003 09:22
To: [EMAIL PROTECTED]
Subject: [OFF-TOPIC] possible virus No Valid Command Found
Has anyone else
: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: 11 July 2003 11:01
To: Tomcat Users List
Subject: Re: [OFF-TOPIC] possible virus No Valid Command Found
Are you using mozilla ? Works for me.
Thomas, Kevin wrote:
Yip. I can't even get them to filter.
-Original Message-
From: Tim Davidson
Why not use logrotate ?
Tim Funk wrote:
Nope - you need an external script.
Here is a quick possible one in perl that might do the trick (just
wrote, never tested - may be totally wrong due to type)
===
#!perl
use strict;
my @files;
my $oldest;
readdir(DIR, $TOMCAT_HOME/logs);
@files =
.java is the source file, the one you use to compose your program. It is
like any other text file, you can use any text editor to create a .java
source file.
The .class file is a compiled version of the .java file, ready for
execution by the servlet container.
For your second question, you
Sounds like you are after some sort of filter.
harsh wrote:
Can i restrict domains of the forms posting to
my form handling scripts.i.e only all the html
or jsps inside http://www.mysite.com/ can post
to my jsps,and noone writes his own HTML forms
and post to my site ..
i hope i m clear in
Try 'ps -elfm' ; the 'm' will show the other threads.
You can also achieve the same thing with top by using the 'H' command.
Shannon Scott wrote:
Hello,
I have noticed that tomcat uses only one process on my new redhat 8.0 machine.
( ps -elf | grep tomcat )
There is an interesting explanation
I think it is fairly self-explanatory:
http://[your ip]:8080/manager/
If you have installed the rpm copy of tomcat then you may need to
download another file to get the manager webapp. The windows installer
has it by default.
The document which describes this is over here :
What do you mean by persisting? Session issue? Or is it the case where
you changed the code in your servlet and the changes are not showing up
? If it is then just use the webapp manager to reload the context the
servlet resides in.
Paul Wallace wrote:
Hello,
Can someone please tell
For the connector you can specify a new attribute :
|'disableUploadTimeout=true'
which apparently allows the servlet container to use a different
longer connection timeout while a servlet is being executed (well that's
what
the docs say). I'm not sure where we can actually specify the
The rpm installation of tomcat includes a start up script that is
placed in /etc/rc.d/init.d/ which allows tomcat to be started up on
reboot. However, the service is not added by default. Tomcat can be made
to start up by using chkconfig
It's possible to write your own script, if you want to
If you tried src=/$WEB-APP/Hestia/coolmenus.js does it work ?
MARTIN Franck wrote:
Hi all,
I am using Tomcat 3.2.1 and i have created a sub-directory in the webapps directory.
It is named Hestia.
In this sub-directory i placed my home page with the following source code.
html
head
titleALTA -
It's something about running tomcat headless I think.
http://sourceforge.net/forum/forum.php?thread_id=859094forum_id=192228
Try adding this to the tomcat startup scripts :
-Djava.awt.headless=true (which you can only do with JDK1.4 or higher) .
Tim Funk wrote:
Ouch! wacky issues between
Why would the client stall in the first place ? If you can figure out
that problem, the webapp
could probably scale higher than 5 clients.
Richard Heintze wrote:
I had an interview with a prospective client today who
has problems with a current web application (written
in lotus notes?). He
You can have a context for your application defined in a seperate xml
file but not in the web.xml. If you read the dtd for the web.xml you'll
see that this is not allowed.
Simply copy your context that works and paste into a new xml file, which
has the same name as your webapp.
So if you had
how many threads did your app launch?
Billy Ng wrote:
Hi folks,
Would anybody tell me how to monitor the count of the exisitng threads in my java app because I get the All Threads are busy, waiting error from tomcat.
Billy Ng
Any other stuff get printed besides that ?
Steve Burrus wrote:
Hello all, I need help with not using the Tomcat server, but with
actually getting it set up correctly. Every single time that I try to
run it, it seems to be going good for a while, but then I always get a
Fatal Parse Error, and it
*,env-entry*,ejb-ref*,ejb-local-re
f*).
What could be wrong anyway?
Kwok Peng Tuck wrote:
Any other stuff get printed besides that ?
Steve Burrus wrote:
Hello all, I
Write a dbkeep-alive, schedule it to run say every 15 minutes. Works for
me.
I use jcrontab.sourceforge.net to schedule this.
I think DBCP also does something like this, you might want to look at
their docs as well.
Mindaugas Genutis wrote:
a couple of days ago a post went by talking about
Yes it does have to be in order :) . Check the dtd that it references.
Terje Hopsø wrote:
Thanks!!
It was out of order. Now it start without errors. I was not aware of that it
had to be in a spesific order.
- Terje
-Original Message-
From: Brian Buchanan [mailto:[EMAIL PROTECTED]
That's because it's javac -classpath.
Jonathan Michael Nowacki wrote:
I'm compiling with root,
$ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
javac: invalid flag: -cp
Usage: javac options source files
and if I change my classpath to:
$ echo $CLASSPATH
.
Jonathan Michael Nowacki wrote:
Holy cow!!! It worked. Thank you very much Kwok Peng Tuck
It's still puzzles me why
javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java
works yet
javac doesn't when I set my class path variable.
$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar
No. You may use it even if it is connected to apache or some other webserver
Dominic Parry wrote:
Hi
I'm I right to assume that the /admin app is only needed to configure the Tomcat if it is used as a standalone web server.
Thanks
Dom
Just curious Filip, but is any of this going to make it's way into a
future version of Tomcat as a standard feature (the clustering and
session replication, not the bugs.) ?
Filip Hanik wrote:
hey ya'all,
Running today on Solaris I discovered a bug in the way java.nio is
implemented on
Check and see if the password and username is correct for the database
you setup.
Victor Gonzalez wrote:
The message is...
java.sql.SQLException: Connection refused: connect
at net.sourceforge.jtds.jdbc.TdsConnection.allocateTds(Unknown
Source)
at
Fortunately there is documentation for what you want and it is in the
link listed below.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
Included are sample configurations and a small class example.
What's jtds by the way ?
Hope it helps you out.
Victor
For servlet development you don't need the whole package, you can just
make do with a servlet/jsp container.
Tomcat fits the bill perfectly. To compile the servlet, get yourself a
java jdk (1.2 or higher) and compile the source servlet
with javac. I *think* there is a tutorial on Sun's
just download
those from sun. i think that
will fix my problem.
Jonathan Schachter
[EMAIL PROTECTED]
cell: 917 912-1079
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 31, 2003
Subject: Re: win 98 :displaying a simple
Send a copy of your server.xml file, I don't see that commented out in
mine. I'm pretty sure it isn't though.
Tony LaPaso wrote:
Hi all,
I posted this question over the weekend but nobody really seemed to know the
answer. Several people speculated but nobody knew. Altough I'm sincerely
hoping
If you put this :
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
in your web.xml then you can use this to load your own servlets without
defining them.
If remember correctly ; then the class that would be loaded in this
example :
The servlet invoker lets you call your servlet in the webapp without
actually mapping one in the web.xml
So you can do this in the browser:
http://localhost/myapp/servlet/stuff
You're not really missing much.
Don't know if the other containers do that.
Sven Köhler wrote:
servlet-mapping
java.sql.SQLException: Update failed, possible duplicate entry
Let's see you have a table info with one field and that field is a primary key right?
If I remember correctly, primary keys in a table have to be unique, so maybe you are calling
your method with the same data again and again ?
1 - 100 of 235 matches
Mail list logo