Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Antonio Vidal Ferrer
It seems that you are using 32bits binaries in a 64 bits platform. 
Download 64 bits versions of tomcat6.exe and tomcat6w.exe, and replace them.


For doing so, go here:

http://commons.apache.org/proper/commons-daemon/download_daemon.cgi

Select browse download area, then go to binaries, then select windows, 
and download file commons-daemon-1.0.15-bin-windows.zip


Inside that zip file, you'll find prunmgr.exe and amd64/prunsrv.exe, 
replace your tomcat6w.exe and tomcat6.exe respectively, and restart 
service, it should start without further problem.


Hope it works.

Best,

Toni.

On 11/11/13 10:18, Jojy George wrote:

%1 is not a valid Win32




Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Antonio Vidal Ferrer
It seems that you are using 32bits binaries in a 64 bits platform. 
Download 64 bits versions of tomcat6.exe and tomcat6w.exe, and replace them.


For doing so, go here:

http://commons.apache.org/proper/commons-daemon/download_daemon.cgi

Select browse download area, then go to binaries, then select windows, 
and download file commons-daemon-1.0.15-bin-windows.zip


Inside that zip file, you'll find prunmgr.exe and amd64/prunsrv.exe, 
replace your tomcat6w.exe and tomcat6.exe respectively, and restart 
service, it should start without further problem.


Hope it works.

Best,

Toni.
On 11/11/13 10:18, Jojy George wrote:



HI All,

I am trying to set and run tomcat as a service after installing it as
binary instead using the windows installer. But i am not able to start it
after setting it as service, it is giving the below exception when i am
trying to start the tomcat service.

Do anybody has got any idea why this error is coming and anybody has got
any resolution for the same.




[2013-11-11 14:42:44] [info] Service Tomcat6 name Apache Tomcat 6.0 Tomcat6
[2013-11-11 14:42:44] [info] Service Tomcat6 installed
[2013-11-11 14:42:44] [info] Commons Daemon procrun finished.
[2013-11-11 14:42:52] [info] Commons Daemon procrun (1.0.2.0) started
[2013-11-11 14:42:52] [info] Debugging Service...
[2013-11-11 14:42:52] [info] Starting service...
[2013-11-11 14:42:52] [206  javajni.c] [error] %1 is not a valid Win32
application.
[2013-11-11 14:42:52] [985  prunsrv.c] [error] Failed creating java
C:\jdk1.7.0_15\jre\bin\server\jvm.dll
[2013-11-11 14:42:52] [1280 prunsrv.c] [error] ServiceStart returned 1
[2013-11-11 14:42:52] [info] Debug service finished.
[2013-11-11 14:42:52] [info] Commons Daemon procrun finished.
[2013-11-11 14:43:05] [info] Commons Daemon procrun (1.0.2.0) started
[2013-11-11 14:43:05] [info] Updating service...
[2013-11-11 14:43:05] [info] Service Tomcat6 updated
[2013-11-11 14:43:05] [info] Update service finished.
[2013-11-11 14:43:05] [info] Commons Daemon procrun finished.
[2013-11-11 14:43:12] [info] Commons Daemon procrun (1.0.2.0) started
[2013-11-11 14:43:12] [info] Updating service...
[2013-11-11 14:43:12] [info] Service Tomcat6 updated
[2013-11-11 14:43:12] [info] Update service finished.
[2013-11-11 14:43:12] [info] Commons Daemon procrun finished.
[2013-11-11 14:43:20] [info] Commons Daemon procrun (1.0.2.0) started
[2013-11-11 14:43:20] [info] Updating service...
[2013-11-11 14:43:20] [info] Service Tomcat6 updated
[2013-11-11 14:43:20] [info] Update service finished.
[2013-11-11 14:43:20] [info] Commons Daemon procrun finished.
[2013-11-11 14:43:29] [info] Commons Daemon procrun (1.0.2.0) started
[2013-11-11 14:43:29] [info] Running Service...
[2013-11-11 14:43:29] [info] Starting service...
[2013-11-11 14:43:29] [206  javajni.c] [error] %1 is not a valid Win32
application.
[2013-11-11 14:43:29] [985  prunsrv.c] [error] Failed creating java
C:\jdk1.7.0_15\jre\bin\server\jvm.dll
[2013-11-11 14:43:29] [1280 prunsrv.c] [error] ServiceStart returned 1
[2013-11-11 14:43:29] [info] Run service finished.
[2013-11-11 14:43:29] [info] Commons Daemon procrun finished.


Thanks
Jojy





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Internal Server Error - Read

2013-07-11 Thread Antonio Vidal Ferrer
Hi Arnab

It seems that you have a misconfigured worker.properties file in apache.

Be sure to have the same AJP13 port configured in tomcat, and in the
worker.properties file.

If that doesn't work, then, send workers.properties file, and the
connectors section from server.xml to try to identify your problem

Best,

Toni.

On 07/10/2013 09:04 AM, Arnab Ghosh wrote:
 Hi All,

 I am receiving the following error message while accessing my application - 
 (apcahe web server +  tomcat through Mod jk)


 Internal Server Error - Read

 The server encountered an internal error or misconfiguration and was unable 
 to complete request.

 # Reference Number

 But there is no 500 error/exception in tomcat. One more interesting facts - 
 it says client closed the connection with response body -0


 Thanks,
 Arnab Ghosh




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: High memory consumption caused by BLOCKED Threads

2011-12-27 Thread Antonio Vidal Ferrer

Violeta:

We had issues once with date objects (same behavior you describe), and 
was caused because one of the objects is working as serialized. If your 
app has a lot of requests, then all of them will have to wait 
serialization, generating a lot of memory and resources consumption. May 
be this is not your case, but I recommend you to double check that, may 
be you can save a lot of profiling time.


Best,

Antonio Vidal Ferrer
Responsable Departamento Middleware
Globalia Sistemas y Comunicaciones SLU
T. 971.178.464
M. 647.995.481
mailto:antonio.vi...@globalia-sistemas.com


On 12/22/2011 10:05 AM, Violeta Georgieva wrote:

Hi,

I am using Tomcat 6.0.29 and SUN JVM.
I experience high memory consumption caused by BLOCKED Threads.

I would appreciate any help or suggestion how to solve the problem.

I can see the following in the thread dump:


http-8080-73 daemon prio=10 tid=0x7ff9a4586000 nid=0x7d3 waiting for
monitor entry [0x7ff9996d4000]

java.lang.Thread.State: BLOCKED (on object monitor)

at
sun.util.resources.TimeZoneNames.getContents(TimeZoneNames.java:185)

at
sun.util.resources.OpenListResourceBundle.loadLookup(OpenListResourceBundle.java:109)

- locked0x0006f95a49b8  (a
sun.util.resources.TimeZoneNames)

at
sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(OpenListResourceBundle.java:97)

at
sun.util.resources.OpenListResourceBundle.handleGetObject(OpenListResourceBundle.java:58)

at
sun.util.resources.TimeZoneNamesBundle.handleGetObject(TimeZoneNamesBundle.java:59)

at
java.util.ResourceBundle.getObject(ResourceBundle.java:368)

at
java.util.ResourceBundle.getObject(ResourceBundle.java:371)

at
java.util.ResourceBundle.getStringArray(ResourceBundle.java:351)

at
sun.util.TimeZoneNameUtility.retrieveDisplayNames(TimeZoneNameUtility.java:100)

at
sun.util.TimeZoneNameUtility.retrieveDisplayNames(TimeZoneNameUtility.java:81)

at java.util.TimeZone.getDisplayNames(TimeZone.java:399)

at java.util.TimeZone.getDisplayName(TimeZone.java:350)

at
java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:1110)

at
java.text.SimpleDateFormat.format(SimpleDateFormat.java:899)

at
java.text.SimpleDateFormat.format(SimpleDateFormat.java:869)

at java.text.DateFormat.format(DateFormat.java:316)

at
org.apache.tomcat.util.http.FastHttpDateFormat.getCurrentDate(FastHttpDateFormat.java:115)

- locked0x0006fbd04ee8  (a java.text.SimpleDateFormat)

at
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1606)

at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:956)

at org.apache.coyote.Response.action(Response.java:183)

at org.apache.coyote.Response.sendHeaders(Response.java:379)

at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)

at
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:273)

at
org.apache.catalina.connector.Response.finishResponse(Response.java:493)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:322)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:662)



Line 2485 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2536 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2625 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2660 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2703 :  - locked0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2741 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2758 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2775 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2792 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2848 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2865 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2891 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2908 :  - waiting to lock0x0006fbd04ee8  (a
java.text.SimpleDateFormat)

Line 2925

RE: Tomcat Consultant

2010-11-18 Thread Antonio Vidal Ferrer
Good Morning from Europe!

It is a common disclaimer email message. Translated to English:

This message is confidential and may be privileged. If you are not the intended 
recipient, we kindly ask you to notify the sender. Any unauthorized 
distribution or copying of this is prohibited. This message is for 
informational purposes only and will have not any legal binding effect. Because 
email can be easily subject to manipulation, we can't accept no liability for 
content supplied.

Anyway, by now it has disappeared from Mulesoft's page. Maybe someone 
mistakenly pressed the wrong key while updating their web site. And of course, 
is nothing related with Tomcat

Good Night America!

Best,

Antonio Vidal.


-Mensaje original-
De: Rhino [mailto:rhi...@sympatico.ca] 
Enviado el: viernes, 19 de noviembre de 2010 6:35
Para: Tomcat Users List
Asunto: Re: Tomcat Consultant


  There are two languages in the cited message, German and French. I'm 
positive about that.

I'm not great in either language and certainly don't know all of the 
words but I think the French message is just a translation of the German 
message which appears to be a standard confidentiality clause of the 
kind found in many emails. You know the kind: This information is 
confidential and is only intended for whoever. If you receive it in 
error, do such-and-such.

I'm not clear about the context of this message but if you're thinking 
it's a Tomcat question, I'm pretty sure it's not.

--
Rhino


On 2010-11-19 00:20, Asangansi wrote:
 Lets wait and watch guys.

 
 skype: asangansi.ini
 +47 48295638



 On Fri, Nov 19, 2010 at 12:19 AM, Pidp...@pidster.com  wrote:

 On 18/11/2010 21:52, Martin Gainty wrote:
 can we get someone from the vatican to translate?
 I think there's a couple of Cardinals lurking on the list, but you might
 have to wait until it's working hours in Europe again.


 p

 Martin Gainty
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
 le destinataire prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
 de ceci est interdite. Ce message sert à l'information seulement et n'aura
 pas n'importe quel effet légalement obligatoire. Étant donné que les email
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
 aucune responsabilité pour le contenu fourni.




 Date: Thu, 18 Nov 2010 21:08:37 +
 From: ma...@apache.org
 To: users@tomcat.apache.org
 Subject: Re: Tomcat Consultant

 On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
 Um, can anyone translate this? Am I really seeing that?
 http://training.mulesoft.com/about/index.html
 It looks like Latin to me. Google translate will take a stab at it on
 that basis.

 Best guess, someone at Mulesoft's idea of a joke (not sure where the
 humour is) or their website has been hacked.

 Mark

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: MaxPermSize / Threads

2010-05-17 Thread Antonio Vidal Ferrer
Can you paste the original error from your catalina.out log?

Best


Toni

El 17/05/2010 10:25, Ozgur Ozdemircili escribió:
 Hi,

 I am having a lot of Java Heap OutOfMemory issues. The first change I did
 was to add more memory to JVM:

 export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server

 Yet I have 2 questions

 - What are you real life configurations? In a very busy prod environment
 what parameters do you use?

 - Checking the Current and Busy threads I have Current at 145 and Busy at 6,
 is this normal? Shouldn`t Tomcat close unused threads?

 - After updating the server with -XX:MaxPermSize=512m -Xms512m -Xmx2048m
 -server parameter although the Max mem should show 2048+512M it shows
 1820.50 MB. Any ideas why?

 Thank you for all the help.



 Özgür Özdemircili
 http://www.acikkod.org
 Code so clean you could eat off it
 .

   


-- 
***
Antonio Vidal Ferrer Globalia Corporación Empresarial Senior System
Manager Carretera Arenal Llucmajor km 21.5 Globalia Sistemas y
Comunicaciones S.L. www.globalia-corp.com
antonio.vi...@globalia-sistemas.com 07620 Llucmajor - Islas Baleares –
España T: (0034) 971-178464 T: (0034) 971-178100 M: (0034) 647-995481
***


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: invalid certificate

2009-05-06 Thread Antonio Vidal Ferrer
Melanie:

Your certificate is invalid, as your navigator does not know the Certificate 
Authority who issued your server certificate (In this case, you). It's not 
related to expiration dates. You can find nice guides (using openssl :(  ) 
here: http://www.tc.umn.edu/~brams006/selfsign.html  and here: 
http://marc.info/?l=tomcat-userm=106293430225790w=2 that can help you to 
understand the process, and of course with the problem you are having

Best,

Toni





-Original Message-
From: Melanie Pfefer [mailto:melanie_pfe...@yahoo.co.uk] 
Sent: miércoles, 06 de mayo de 2009 12:04
To: users@tomcat.apache.org
Subject: invalid certificate


Hi,

I generated a new certificate according to 
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

First step:
keytool -genkey -alias tomcat -keyalg RSA -keystore /usr/local/tomcat/.keystore

Second step:

in servers.xml:

Connector protocol=org.apache.coyote.http11.Http11Protocol
   port=8443 minSpareThreads=5 maxSpareThreads=75
   enableLookups=true disableUploadTimeout=true
   acceptCount=100  maxThreads=200
   scheme=https secure=true SSLEnabled=true
   keystoreFile=/usr/local/tomcat/.keystore keystorePass=password
   clientAuth=false sslProtocol=TLS/


I am getting an error that the certificate is not valid when I access the https 
URL:

The error message is: uses an invalid security certificate


When I list the certificate:

Valid from: Wed May 06 11:52:13 MEST 2009 until: Tue Aug 04 11:52:13 MEST 2009

Can you please shed some light on this?

thanks



  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Help with mod_jk and Apache 2.2

2009-04-14 Thread Antonio Vidal Ferrer
Hi.

I guess the = sign in your jkmount file is wrong.
It should say:
/appsuite   worker1


Best,

Toni

-Original Message-
From: Security Management [mailto:list-subscripti...@secmgmt.com] 
Sent: martes, 14 de abril de 2009 15:29
To: 'Tomcat Users List'
Subject: Help with mod_jk and Apache 2.2

So, I have Tomcat 5.5, apache 2.2 on a linux 32 bit machine.  Tomcat and my
webapp work great, I just can't seem to get the connector working.  Sorry if
this is a basic question, but even with the debugging on I can't see what is
wrong.  I have listed 3 files here, my httpd config, my workers.properties,
and my uri mappings file.  I would appreciate any advice.  Here is the error
I'm getting:

[Tue Apr 14 09:20:34 2009] [565:3085756960] [debug] jk_child_init::mod_jk.c
(3068): Initialized mod_jk/1.2.28
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/appsuite/
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for sirrus.smc/appsuite/

I have tried changing the hostname from localhost to sirrus.smc, but with no
luck.

Here is the mod_jk config:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf.d/workers.properties
JkMountFile /etc/httpd/conf.d/uriworkermap.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkShmFile /var/log/httpd/JkShmFile


Here is the workers.properties:

workers.tomcat_home=/var/www/apache-tomcat-5.5.27/

# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/java/latest

# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

# The workers that your plugins should create and work with
#
worker.list=worker1

#-- DEFAULT ajp13 WORKER DEFINITION --
#-
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.worker1.type=ajp13
worker.worker1.host=localhost

Here is the JkMountFile:

/appsuite=worker1


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Slightly OT: ApacheCon Europe 2009

2009-02-10 Thread Antonio Vidal Ferrer
I'll be there from Mon to Fri. Hope to see ya!

Best

Toni.


-Original Message-
From: Rainer Jung [mailto:rainer.j...@kippdata.de] 
Sent: martes, 10 de febrero de 2009 17:21
To: Tomcat Users List
Subject: Re: Slightly OT: ApacheCon Europe 2009

On 30.01.2009 15:15, Gregor Schneider wrote:
 I'm just wondering if anyone of this list will be joining the
 ApacheCon in Amsterdam this year?

 If so, maybe we could set up kid of a userlist-meeting and see the
 faces behind those posts?

I'll be there Sunday to Friday. I'll be also at the Hackathon. It'll be 
nice to meet yo guys face to face!

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-18 Thread Antonio Vidal Ferrer
Hi,

It's your mysql listening on Localhost?
Have you tried to use the ip address instead of Localhost?


Best,

Toni

-Original Message-
From: Krapacs Ambrose [mailto:[EMAIL PROTECTED] 
Sent: martes, 18 de noviembre de 2008 13:22
To: users@tomcat.apache.org
Subject: Servlets / JSP can't connect to MySQL in Ubuntu Server

I have tried many different configurations and I have been unable to  
get my Servlets / JSP to connect to MySQL server running. I am trying  
to get this set up on my main server which is running Ubuntu 8.10  
Server with MySQL 5 and Tomcat6. I also tried setting up a Ubuntu 8.04  
server with Tomcat 5.5 and MySQL 5. I have even configured Tomcat  
running on the 8.10 server to try to connect to MySQL running on the  
8.04 server. Still no luck!

The exception that is thrown is here:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:  
Communications link failure
Last packet sent to the server was 0 ms ago.(jdbc:mysql://localhost? 
user=invuserpassword=admin))
 
org 
.apache 
.jasper 
.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
org.apache.jasper.runtime.PageContextImpl.access 
$1100(PageContextImpl.java:71)

org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java: 
768)
java.security.AccessController.doPrivileged(Native Method)
 
org 
.apache 
.jasper 
.runtime.PageContextImpl.handlePageException(PageContextImpl.java:766)
org.apache.jsp.install_jsp._jspService(install_jsp.java:141)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
org 
.apache 
.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:

342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
57)
 
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
43)
java.lang.reflect.Method.invoke(Method.java:616)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:

276)
 
org 
.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java: 
162)
I have verified that MySQL is running and everything with Tomcat seems  
to be configured correctly because I can execute servlets and JSP just  
fine it's just the connections to MySql to that fail. I have also  
executed a standalone java application using the MySQL Connector/J and  
that worked fine. I've even tried different ways of deploying the  
MySql Connector/J (which is the newest version available) to see if it  
was a permissions problem with the library.
The key to this is that the web applications that I am trying to  
deploy run flawlessly on my Mac OS X development machine with MySQL. I  
haven't tried Windows yet but if I can get this set up to host my web  
application I may have to set up a Windows machine to try it.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Antonio Vidal Ferrer
Hi,

Have you checked the configuration for this catalina opts?:

-Duser.language=es
-Duser.country=ES

Check that they are the same in both tomcats. (In this case, for instance,
is configured for Spanish-Spain)

Good Luck

Best,

Toni

-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: viernes, 12 de septiembre de 2008 16:58
To: Tomcat Users List
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem

Konstantin Kolinko wrote:
 2008/9/12 André Warnier [EMAIL PROTECTED]
 
 Konstantin Kolinko wrote:

 2008/9/12 André Warnier [EMAIL PROTECTED]:

 Caldarale, Charles R wrote:

 I'm not sure these days what the normal web character set really is.
  If
 you're referring to ASCII (aka Basic Latin), then no, the Pound
Sterling
 symbol is not present.  However, for any of the ISO-8859-x variants,
it
 is
 present, using the 163 (0xA3) value you noted (same as the Unicode
code
 point).  It's also in UTF-8 of course, but requires two bytes (0xC2
 0xA3) to
 represent the code point.

  I love these discussions about character sets. They seem to confuse
so
 many
 people; even I, who have been involved in them for 30 years...

 Anyway, I have a related question, which I don't think constitutes a
 hijack
 of this thread, because the underlying cause is probably similar.
 Here it goes :

 Tomcat (v 4.1, v 5.0, v5.5, have not tried yet in 6.x)
 The above Tomcat's running under the same Linux or Solaris, essentially
 set
 up the same way. The JVM may vary, but I don't think that is the
problem,
 because of the consistency of the problem as explained below.
 I am running a webapp from an external supplier, always the same binary
 version.  I don't have the code, can't see what's in it.
 The pages served by that webapp are the same html pages, all of them
 having
 a declaration meta http-equiv=Content-Type content=text/html;
 charset=iso-8859-1.
 The pages also *are* properly encoded as iso-8859-1 (100% positive, I
 know
 the difference).
 The browser receiving the pages is always the same one, same settings.

 Now,

 case a)
 in the Tomcat startup files, I do nothing, meaning I just take Tomcat
 out-of-the-box and run the webapp.
 Result : in any such html page that contains characters with an
ISO-8859
 codepoint above \xA0 (meaning the displayable characters of the high
 part
 of the table, where one finds things like uppercase A with umlaut),
 these
 characters
  - appear in the browser display as ? (minus the quotes)
  - also if I save the page from the browser to disk, and look at them
 with
 an iso-8859-1 capable editor, they are effectively ?.
 (So it's not the browser misunderstanding them, it is Tomcat sending
them
 that way).

 case b)
 In one of the Tomcat startup files (e.g. tomcat_dir/bin/startup.sh or
 even
 in /etc/init.d/tomcat5.5), I add the following line
 LC_CTYPE=en_us.iso88591
 (or whatever is valid on that host to specify an iso-8859-1 LC_CTYPE)
 (before the actual start of Tomcat)
 and restart Tomcat
 then the same page displays properly in the browser, and also is
correct
 iso-8859-1 when saved to disk and examined with the editor.
 (In other words, what previously were ? characters, are now the
correct
 iso-8859-1 character bytes).

 Now my question is :
 How can it matter which LC_CTYPE Tomcat is started under, that would
have
 the result above ?
 The behaviour above is consistent across different hosts, across the
same
 or
 different Tomcat versions, it is always the same webapp, always the
same
 html pages, always the same browser, etc.  Only that LC_CTYPE line
 changes
 the behaviour.
 On the face of it, the only thing I can think of that would explain
this,
 is
 that the webapp in question does something wrong, but what exactly
could
 it
 be doing ?
 Any ideas ?


 It is [EMAIL PROTECTED] pageEncoding=... % that is missing from those 
 pages.
 Thus JSP compiler does not know what encoding they are using for their
 source and messes them at compilation time.

 [...]

 But these pages, as far as Tomcat and the webapp are concerned, are not
 dynamic

 in any way.  They are straight static html pages.
 So is the JSP stuff relevant ?
 (I'm genuinely asking, since I know nothing about JSP pages)


 The static HTML pages, as well as all the other static files, are served
by
 the
 DefaultServlet. You should dig there. I think that fileEncoding
 initialization parameter
 of the servlet, as well as mime-mapping settings in web.xml come into
 play.
 
 JSP settings are irrelevant for them, of course.
 

Hi.
Thanks for the intent and answer above.
But I insist : these html pages are served by that webapp of which I am 
talking, not by the DefaultServlet.
Those pages are being accessed via URLs like
http://myhost.mycompany.com/myservlet?..(additional parameters 
indicating which static file to serve)..
It is on the way through that servlet that they get corrupted, unless 
I start Tomcat with LC_CTYPE=iso-8859-1.
That servlet, in its own web.xml config 

RE: Wily Introscope

2008-04-25 Thread Antonio Vidal Ferrer
Hi:

Actually, I have 10 tomcat 5.5 servers running on Solaris 10 (x86), and
using Wily Introscope 7.1.

If there is any doubt I can help you with, please let me know.

Best,



***
Antonio Vidal Ferrer   Globalia Corporación
Empresarial
Senior System Manager  Carretera Arenal Llucmajor km
21.5
Globalia Sistemas y Comunicaciones S.L.    www.globalia-corp.com 
[EMAIL PROTECTED] 07620 Llucmajor - Islas
Baleares – España
T: (0034) 971-178464   T: (0034) 971-178100
M: (0034) 647-995481

***



-Original Message-
From: Fred K [mailto:[EMAIL PROTECTED] 
Sent: viernes, 25 de abril de 2008 4:15
To: Tomcat Users List
Subject: Re: Wily Introscope

Hi,

yes (solaris and linux - no difference)  note that there is some
information about on the http://wilytech.com  community (this peer
support area is open to all customers).

Rgds - Fred
On Thu, Apr 24, 2008 at 6:13 PM, Vance A. Arocho
[EMAIL PROTECTED] wrote:

 Anyone have any experience using Wily Introscope with Tomcat (version 4.1)
 running under Solaris ?


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat JSP issues

2008-04-18 Thread Antonio Vidal Ferrer
Hi Landon,


Check if you have jasper.jar in you’re the application you recently added. If 
so, remove it  and restart tomcat. Then try again.

Best,

Toni

-Original Message-
From: Landon Fabbricino [mailto:[EMAIL PROTECTED] 
Sent: jueves, 17 de abril de 2008 21:30
To: users@tomcat.apache.org
Subject: Tomcat JSP issues

Hello,

We are using Apache Tomcat/6.0.16 and when we go to the sample JSP
pages or our own jsp application, it breaks with a servlet exception.
(BTW servlets are still working).  When I first installed tomcat all of
the example jsp loaded correctly, just recently (after added a new
application war file) they stopped loading - not sure if it was from the
application war file addition or not..

http://localhost:8080/examples/jsp/jsp2/simpletag/hello.jsp 
When we go to this page, here is the following error we see.
—
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.AbstractMethodError:
javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.lang.AbstractMethodError:
javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;

org.apache.jsp.jsp.jsp2.el.basic_002darithmetic_jsp._jspInit(basic_002darithmetic_jsp.java:22)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.16 logs.
—


Any suggestions would be very much appreciated.

Thanks in advanced.

Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7604
[EMAIL PROTECTED]

IMPORTANT NOTICE ! 
This E-Mail transmission and any accompanying attachments may contain
confidential information intended only for the use of the individual or
entity named above. Any dissemination, distribution, copying or action
taken in reliance on the contents of this E-Mail by anyone other than
the intended recipient is strictly prohibited and is not intended to, in
anyway, waive privilege or confidentiality. If you have received this
E-Mail in error please immediately delete it and notify sender at the
above E-Mail address.  
Agrium uses state of the art anti-virus technology on all incoming and
outgoing E-Mail. We encourage and promote the use of safe E-Mail
management practices and recommend you check this, and all other E-Mail
and attachments you receive for the presence of viruses. The sender and
Agrium accept no liability for any damage caused by a virus or otherwise
by the transmittal of this E-Mail. 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat user

2008-04-17 Thread Antonio Vidal Ferrer
Hi:


As with many other services, specially web oriented ones, you should use any 
user with a limited set of permissions on the host machine. So better use 
lambda ;)

Best,

Toni.

-Original Message-
From: ZB [mailto:[EMAIL PROTECTED] 
Sent: jueves, 17 de abril de 2008 10:10
To: users@tomcat.apache.org
Subject: Tomcat user

Hi everybody,

sorry but i'm new to tomcat !

which user id is preferred to run tomcat : root or lambda ?

Thank you

JLucas


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and jmx

2008-04-17 Thread Antonio Vidal Ferrer
Well, it can be done via CATALINA_OPTS. 

For example:

setenv CATALINA_OPTS -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=8123 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=true \
-Dcom.sun.management.jmxremote.password.file=conf/jmxremote.password \
-Dcom.sun.management.jmxremote.access.file=conf/jmxremote.access

You can check this here:
http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html

Best

Toni.



-Original Message-
From: ZB [mailto:[EMAIL PROTECTED] 
Sent: jueves, 17 de abril de 2008 15:38
To: users@tomcat.apache.org
Subject: Tomcat and jmx

Hi everybody,


i would like to monitor my Tomcat 6.0 with another port instead of .
How can I change the VM arguments within my Tomcat Service (Windows XP)

Thank you

JLucas



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: redirect port 80 to application server

2008-04-17 Thread Antonio Vidal Ferrer
Susan:

Is the aplication server a Tomcat? If so, you can use mod_jk. If not, may be
you will need to use mod_proxy.

Toni.

-Original Message-
From: Susan G. Conger [mailto:[EMAIL PROTECTED] 
Sent: jueves, 17 de abril de 2008 18:34
To: 'Tomcat Users List'
Subject: RE: redirect port 80 to application server

I have to have the Apache HTTP in front.  Don't want it there but it is
required by the customer.  So they type in http://myserver/webapp and expect
it to go to the application server.  I say just use the port
http://myserver:8080/webapp and you will get to the application server.
They say we don't want to type in the port just make 80 redirect to the
application server port.  So, I am here trying to figure out the easiest way
to redirect all traffic from 80 to 8080 and still have the apache running in
front.  Should I use remote proxies?

Thanks,
Susan  

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 17, 2008 12:26 PM
To: Tomcat Users List
Subject: RE: redirect port 80 to application server

 From: Susan G. Conger [mailto:[EMAIL PROTECTED] 
 Subject: redirect port 80 to application server
 
 But I have an Apache HTTP server front end and I want 
 to redirect port 80 so that it goes to port 8080.  

If by the above you mean you want to send all port 80 requests through
to Tomcat on port 8080, why are you bothering with httpd at all?  Just
take it out and configure Tomcat to use port 80.

Or maybe you need to supply more information...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]