This is the code:
java.sql.Timestamp time = new Timestamp(System.currentTimeMillis());
...
pstmt = this.conexion.prepareStatement(INSERT);
...
pstmt.setTimestamp(1, time);
should I use java.sql.Date instead of java.util.Data?
thanks
Christopher Schultz escribió:
-BEGIN PGP SIGNED
I install tomcat 5.5 package on Ubuntu, it run server on port 8180 by
default.
I start Tomcat 5.5 by running /etc/init.d/tomcat script, it responses:
* Starting Tomcat servlet engine tomcat5.5 [ OK
]
but when check its running status, it is:
* Tomcat servlet
According to your log, i fails to parse the tomcat xml password file. It
is malformed from xml point of view. Perhaps you have characters not
allowed in xml like or or in a password field? or maybe you forgot
to close a xml tag?
hints on reading the log:
Error at line 11 column 2: The markup
Will,
as long as you don't post your configuration (context.xml and web.xml
of your web-app, your servlet / jsp-code accessing the datasource),
nobody will be able to help you.
That is, since we all ran out of cristal balls telling us the solution
for your problems...
Gregor
--
what's puzzlin'
Hi Christopher,
- Which version of Apache?
- Which version of mod_jk?
- Which platform?
Most likely you only need to add
AllowEncodedSlashes On
to your Apache configuration (see the Apache httpd docs). Such URLs get
otherwise rejected by Apache itself. Note that there are goodf security
Fabbris Pierluigi wrote:
Hello,
I've this Exception in the Log:
7-ago-2007 10.38.05 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet invoker threw exception
java.util.MissingResourceException: Can't find bundle for base name
LocalStrings, locale it_IT
Yes and it doesn't work!!!
And I still haven't been unsubscribed.
Thanks
Kind Regards
Sheila Cullen
ext 2699
-Original Message-
From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED]
Sent: 06 August 2007 17:53
To: Tomcat Users List
Subject: Re: Unsubscribe me please
Yes,
Send email to [EMAIL PROTECTED]
with the same email address as the one you use to send emails to mailing
list.
You will receive a confirmation email within a few minutes. you must
reply to that email and the mailing list server will say you bye bye
If you don't get the confirmation email, check
Proabably, you have wronly edited server.xml or tomcat-users.xml. Revert the
changes or get fresh files then try again.
On 8/8/07, R Y [EMAIL PROTECTED] wrote:
I install tomcat 5.5 package on Ubuntu, it run server on port 8180 by
default.
I start Tomcat 5.5 by running /etc/init.d/tomcat
The Tomcat 6 documentation says that the MBean values 'type=Cluster' and
'type=Cluster,host=${HOST}' should be available like they were in Tomcat
5.5. However, they are not visible via jmx using jconsole or Probe.
Does anyone know how to view Cluster information in Tomcat 6?
Thanks
Mark
Then you should email users-owner [at] tomcat.apache.org and ask one of
the list owners to unsubscribe you. This question has been asked and
answered repeatedly in the recent past.
--David
[EMAIL PROTECTED] wrote:
Yes and it doesn't work!!!
And I still haven't been unsubscribed.
Hi Chad,
yes, it looks like that's a bug in mod_proxy_ajp. You should log a bug
in bugzilla for httpd. I checked the code for Apache httpd 2.2.4 and
also shortly for 2.2.x head and trunk.
The situation is as follows (you might include this in the bug description):
Apache httpd decodes HTTP
We still need to see these files (sanatized for passwords if any are
present):
$CATALINA_HOME/conf/server.xml
$CATALINA_HOME/conf/Catalina/localhost/[appName].xml
$CATALINA_HOME/webapps/[appName]/WEB-INF/web.xml
The problem is in one of these files. No help can be offered until we
see these.
That looks ok. Timestamp is the correct thing to use.
You have two systems: one that works, one that doesn't. So, check for
differences in the SQL sub-systems between the two:
Are the drivers of the same (uptodate) version?
Are the database schemas using the same column type? (ie the one that
Oh, and that second file may also be located at
$CATALINA_HOME/webapps/[appName]/META-INF/context.xml
--David
David Smith wrote:
We still need to see these files (sanatized for passwords if any are
present):
$CATALINA_HOME/conf/server.xml
$CATALINA_HOME/conf/Catalina/localhost/[appName].xml
From: David Smith [mailto:[EMAIL PROTECTED]
Then you should email users-owner [at] tomcat.apache.org and
ask one of
the list owners to unsubscribe you. This question has been asked and
answered repeatedly in the recent past.
Yes, it has. Which is a shame, as possible technological
Hi!
Exists some tool to monitor more than one instance of Tomcat in the same
server?
Lambda Probe is an excellent tool, but only monitoring instance where is
installled.
In a simple way I want to have a web page showing tomcat status and some
other information:
Tomcat1 - Status Running
Tomcat2
Hi everybody,
I am having a problem with an old class no longer in used in my
application.
I am using tomcat 5.0.18 with jdk 1.5 from ibm.
I undeployed the application, suppressed the class and every references
to it (I am sure of that!), and then deployed again in tomcat.
And in the
Hi,
I've been getting a lot MsgAjp Overflow messages recently. The strange
this is only seems to happen only 1 app server at a time and seems to
stop and start in bursts of sometimes over an hour, but then nothing for
several hours after that.
This is with Tomcat 5.5.20 and mod_jk 1.2.23.
Did you delete all your .class of your application and rebuild them
after removing myclass.java?
It could be another class was referencing that class and was not
recompiled, and as such can not be loaded anymore because reference
another non existing class.
The stacktrace of Exception could be
I did delete all my .class. I can affirm it is not referenced anywhere
in my code anymore.
In fact, i deleted all my application and deployed the new one from the
entire .war.
Here is the stack trace :
2007-08-08 12:04:12 fileStore[/]: java.lang.ClassNotFoundException:
org.medias.amma.sgbd.Jeu
From: Mastrorillo Laurence
2007-08-08 12:04:12 fileStore[/]: java.lang.ClassNotFoundException:
[...]
at
org.apache.catalina.session.FileStore.load(FileStore.java:336)
I suspect Tomcat persisted its session state to disk at shutdown, and is
trying to re-read those sessions.
THANKS PETER, I found out how to delete tomcat sessions that persists
after un-deployement.
That did it !!
No more exceptions !
Peter Crowther a écrit :
From: Mastrorillo Laurence
2007-08-08 12:04:12 fileStore[/]: java.lang.ClassNotFoundException:
[...]
at
Will,
The tomcat isn't able to find the database jdbc driver class. Make sure you
put database-jdbc.jar file inside tomcat/common/endorsed/ folder. Lets say you
were using MySql database. MySql provides a jdbc jar file to connect to the
database. Get that jar file and put it in /endorsed/
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Hole wrote:
Exists some tool to monitor more than one instance of Tomcat in the same
server?
Lambda Probe is an excellent tool, but only monitoring instance where is
installed.
Why not contact the fine folks at Lambda Probe to see
I also had the same problem when using struts Datasource.
I noticed this depends of the struts version, tomcat version or even the
jdk but was unable to really find out what the problem was.
I solved it by not using the struts datasource description in the
struts-config.xml anymore.
I instead
Added as PR: 43060
Thanks for the info and the analysis... I'll take a look
and tune as required.
On Aug 8, 2007, at 5:46 AM, Rainer Jung wrote:
Hi Chad,
yes, it looks like that's a bug in mod_proxy_ajp. You should log a
bug in bugzilla for httpd. I checked the code for Apache httpd
Hi Rob,
I would prefer to find out, what kind of requests cause this behaviour.
Are there log messages in the mod_jk log file? The mod_jk log file
contains the pid and thread-ID of the web server thread processing the
request. Dependent on the platform an web server, you casn also log the
Azhar, can you give us a little more information as to what the
refusal takes? What are the symptoms? That you cannot connect from a
browser on the same machine / different machine? Does netstat -an |
grep 8443 show a port in LISTENING state?
- Peter
-Original
Is there an error message given by Tomcat? Maybe its an access problem
to the keystore file by tomcat process.
Are you sure that you have no other process using that port?
2007/8/8, Waseem Azhar [EMAIL PROTECTED]:
Hi All,
I am stuck, any idea how to enable tomcat SSL on linux ? I have
Rainer,
Thanks for the comprehensive reply. We're using Apache on RHEL4. I'll try
and investigate the actual URL. It is a very busy environment ( 25 million
hits a day) so it'll take me some time to pick through.
Yes it does look like a response. I'm assuming this doesn't just mean it's a
big
On 8/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi Hassan,
I did exactly that way you described to me,
but the 2nd deployment still dosn't work properly.
You might want to create a very simple WAR file and see if it behaves
the same way...
The only way that works (not always) is to
if he's using Oracle, a date field should take any kind of timestamp variable.
Oracle does have a Timestamp field/data type, but you don't have to make it as
such to get this to work.
Could have been that my JDK API differed slightly from your's.
-Original Message-
From: Jon Wingfield
did something get changed in your configuration file or welcome attribute?
-Original Message-
From: Philippe Couas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2007 9:14 AM
To: [EMAIL PROTECTED]
Subject: http ip server lost ?
Hi,
Tomcat 4.1.36 lost prefix ip server ?
Usually
Connecting to 127.0.0.1:8443... failed: Connection refused is the message i
get. I get the same message 'Connection refused' when try to connect from
the browser remotely. I have tried using netstat -an | grep 8443 command
but nothing show up. seems tomcat is not listening. What could be the
I've got a Tomcat installation that is acting strange, and not being
much of a Tomcat geek, I'm feeling a bit lost. We just rebuilt the java
application it's supposed to be serving, and restarted Tomcat. It appears
(from 'ps' and the log files) to start up just fine; netstat shows a
process
It's a long time since my last Oracle project ;)
The OP was finding milliseconds weren't being stored. I was under the
impression this would be the case if the date datatype were being used
instead of a timestamp.
Propes, Barry L wrote:
if he's using Oracle, a date field should take any kind
On 8/8/07, Waseem Azhar [EMAIL PROTECTED] wrote:
Connecting to 127.0.0.1:8443... failed: Connection refused is the message i
get. I get the same message 'Connection refused' when try to connect from
the browser remotely. I have tried using netstat -an | grep 8443 command
but nothing show up.
Hi,
I've only recently returned to using tomcat since tomcat 4.0.1 and I
note that things have moved on somewhat. I'm currently working with the
Tomcat 5.5.xx line. I would like to know is :
What exactly is the advantage of using the tomcat-native library?
I work with some fairly large
no I think they will, you just have to alter the session's NLS date format,
correct? To see them, I mean?
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2007 10:13 AM
To: Tomcat Users List
Subject: Re: [OT] JDBC problem:
On 8/8/07, David Doughty [EMAIL PROTECTED] wrote:
, and restarted Tomcat.
It appears
(from 'ps' and the log files) to start up just fine; netstat shows a
process listening on the port (8080); but when we point a browser to the
port, we get
Are you entering to a static or dynamic (ie servlet, jsp) page? Maybe
its a database timeout, or the application you are running is too
heavy (a performance bug).
Try entering a static page in order to discard an application /
database problem.
2007/8/8, David Doughty [EMAIL PROTECTED]:
I've
Ah, I see. So the OP's data may be intact but he may be covering one eye
and squinting when looking at the results...
Propes, Barry L wrote:
no I think they will, you just have to alter the session's NLS date format,
correct? To see them, I mean?
-Original Message-
From: Jon
From: Waseem Azhar [mailto:[EMAIL PROTECTED]
Connecting to 127.0.0.1:8443... failed: Connection refused is
the message i
get. I get the same message 'Connection refused' when try to
connect from
the browser remotely. I have tried using netstat -an | grep
8443 command
but nothing show
yeah, possibly, and my apologies if it appears I hijacked the thread in
anywayeven though it's marked OT.
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2007 10:35 AM
To: Tomcat Users List
Subject: Re: [OT] JDBC problem:
Yes, I got it working. Tomcat wasn't able to locate certificate file. netstat
-an | grep 8443 was a really good tip.
Thanks a lot Peter.
On 8/8/07, Peter Crowther [EMAIL PROTECTED] wrote:
From: Waseem Azhar [mailto:[EMAIL PROTECTED]
Connecting to 127.0.0.1:8443... failed: Connection
Hi,
I am trying to upload a file size of 2MB to my server. Doing it without SSL
takes only 1 sec but doing it over SSL takes so long that the server time out.
Longer than 10 min!
I have searched everywhere but I can't find any solution. Please help.
Server Specs:
Window XP
Tomcat 6
Hello everyone,
Over the past couple of months, I have been working with some Tomcat
instances on RHEL 5 and wondered: what is the recommended method to
startup/shutdown Tomcat? After reading the Tomcat documentation, they
talk about compiling the jsvc source under the bin directory and using
Mark Faircloth wrote:
The Tomcat 6 documentation says that the MBean values 'type=Cluster' and
'type=Cluster,host=${HOST}' should be available like they were in Tomcat
5.5. However, they are not visible via jmx using jconsole or Probe.
Does anyone know how to view Cluster information in
make sure you delete all the .ser files, that is where your session info
is stored
even stored during a restart
Filip
Mastrorillo Laurence wrote:
Hi everybody,
I am having a problem with an old class no longer in used in my
application.
I am using tomcat 5.0.18 with jdk 1.5 from ibm.
I
Alec Bickerton wrote:
Hi,
I've only recently returned to using tomcat since tomcat 4.0.1 and I
note that things have moved on somewhat. I'm currently working with
the Tomcat 5.5.xx line. I would like to know is :
What exactly is the advantage of using the tomcat-native library?
no longer
feel free to open a bugzilla item, and attach a test case, and I will
look at it
http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%206
Filip
Hoa Doan wrote:
Hi,
I am trying to upload a file size of 2MB to my server. Doing it without SSL
takes only 1 sec but doing it over SSL
Hi there,
starting Tomcat from a path containing a pound sign (#) somewhere
results in a ClassNotFoundException.
I've checked this with
- Solaris Sparc/X86 + Mac OS X
- Java 5 + 6
- Tomcat 5.5.23 + 6.0.13
example:
- mkdir /export/home/markus/tomcat#1
- extract tomcat within this directory
-
Are you allowed to create symbolic links with normal names?
- Alexey.
Markus Schiegl wrote:
Hi there,
starting Tomcat from a path containing a pound sign (#) somewhere
results in a ClassNotFoundException.
I've checked this with
- Solaris Sparc/X86 + Mac OS X
- Java 5 + 6
- Tomcat 5.5.23 +
The # character starts a comment in the shell. Try quoting the pathname, or
put a \ in front of the #.
I would bet that your mkdir and cd commands didn't do what you think they did.
-Original Message-
From: Markus Schiegl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2007 1:54
What does this mean on Tomcat 5.5.23? How do I fix it?
Hi,
being root (for these tests) should give me enough permissions. I have
no problems creating sym-links at all (with or without #) although my
test-case involves no symbolic links.
Any specific test?
kind regards,
Markus
Alexey Solofnenko wrote:
Are you allowed to create symbolic links
Do you happen to be using Java Server Faces in your application?
http://icefaces.org/JForum/posts/list/4918.page
Original Message Follows
From: Susan Richards [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: WARNING: Parameters:
It's a vendor's application, so I'm not sure, but I don't think so. I
don't see a faces-config.xml file on the web server.
Nathan Hook [EMAIL PROTECTED] 8/8/2007 4:14 PM
Do you happen to be using Java Server Faces in your application?
http://icefaces.org/JForum/posts/list/4918.page
Hi,
as far as i see the shell has no problems passing the # character.
I've added ps auxwww |grep java after the java call in catalina.sh,
just to verify the java-program itself is called with the correct
values, see below:
$ ~/tomcat#1/apache-tomcat-6.0.13/bin$ ./startup.sh
Using CATALINA_BASE:
Why not just change it to /export/home/markus/tomcat_1 or something
and be done with it. Is trying to make it work with a # really worth
the time an effort? Think in terms of hours spent * hourly rate or
hour spent that you could be doing something else.
Just my opinion.
On 8/8/07, Markus
I've been trying for days now to establish a jdbc resource for mysql in
tomcat 6.0.13
To whom it may correspond:
I get the following error
Unable to get connection, DataSource invalid:
org.apache.tomcat.dbcp.dbcp.SQLNestedException
: Cannot create JDBC driver of class '' for connect URL 'null'
Did you ask why they are implementing on Plesk with Tomcat?
If its *NOT* a political consideration Im sure the folks at Plesk would be
willing to accomodate
Maybe the Tomcat Ports 8005/8009/8080 are bound to some System service?
Topic 2:
Is there anyone out there who can get ANY work done on
Susan Richards [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
What does this mean on Tomcat 5.5.23? How do I fix it?
Most likely, it means that your parameters (POST body or query-string) is
ending with a '' character (e.g. something like /mypage.jsp?foo=bar).
Other patterns
Hello,
I have some troubles with firefox and form authentication running on
Tomcat 5.0.28.
It happens as followed:
User requests restricted Page and is redirected to a LoginServlet
which forwards the request to a Login.jsp. Nothing special here.
Instead of logging in, the user waits, for
Hi Ben,
this is exactly the question. As these directories are created and used
by other software changing the # sign to something else involves
modifications to these programs and therefore hours/days of work too.
I've decided to put in a few hours to evaluate the situation before
making a
66 matches
Mail list logo