Mixed User Session

2021-01-15 Thread juan
Hi,

We were running tomcat 8.5.57 on CentOS 7 and together with CAS SSO, we
have multiple servers behind an AWS load balancer setup with sticky
sessions. We encountered a weird situation where a user who logged into
their application was presented with another users profile after login. Has
anyone encountered something similar to this? Both users hit the same
tomcat server seconds apart and the user was on his personal computer and
doesn't know the first user.

We have async-supported set to true for both default and jsp servlets and
using the http11.Http11NioProtocol connector with
sslImplementationName="org.apache.tomcat.util.net.openssl.OpenSSLImplementation"
and .
Unfortunately we could not find any errors in the logs.

We encountered something similar in the past when running on tomcat 8.0 and
it was related to low entropy on the environment and tomcat not able to
generate a session for the incoming user and reusing the jsessionid for a
previous user.  We did see errors for this in the logs. This was fixed by
adding service to increase entropy and upgrading to a later version of
tomcat 8.5.

Any suggestions or help is much appreciated regarding logging that might
help shed some light on this. We have also patched tomcat to that lastest
release 8.5.61 to see if it helps.

Thanks!

Juan Q.


Re: Mixed User Session

2021-01-15 Thread juan
Hi,

Below is the connector definition, we had 1 case reported that we know of
but during the reported incident couldn't find anything in the logs during
the transactions.  We haven't been able to reproduce the issue.  We do have
another environment that was added into the mix and handles the
authentication piece. So we receive information back from them which
provides the necessary data to CAS SSO to send to the client app that
initiated the request.  We did have conversations with them and they did
mention the possibility of session information for another user being
provided back.  We installed haveged to help us have sufficient entropy.
When we first encountered something like we handled authentication locally
on the environment and we saw errors in the tomcat logs, this time
authentication is handled externally and there are no errors found in the
log.








Thanks!

On Fri, Jan 15, 2021 at 11:05 AM Olaf Kock  wrote:

>
> On 15.01.21 15:57, juan wrote:
> > Hi,
> >
> > We were running tomcat 8.5.57 on CentOS 7 and together with CAS SSO, we
> > have multiple servers behind an AWS load balancer setup with sticky
> > sessions. We encountered a weird situation where a user who logged into
> > their application was presented with another users profile after login.
> Has
> > anyone encountered something similar to this? Both users hit the same
> > tomcat server seconds apart and the user was on his personal computer and
> > doesn't know the first user.
>
> I've seen stuff like this happening when a reverse proxy was over-eager
> in caching stuff that it saw. 100% of cases where I've seen this
> behavior had this as a root cause.
>
> "over-eager" might mean that Tomcat (e.g. your app) doesn't signal the
> upstream proxy that the content is private, or the upstream proxy
> ignoring such signals.
>
>
> It's been a long time since I last saw it (and back then I didn't
> fix it myself - just provided information like the above) so I barely
> remember the key points to configure or look after. Maybe it helps
> already, otherwise we'll have to wait for someone to point to the usual
> suspects in the individual configurations.
>
> Olaf
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Question About Tomcat 11.0.5

2025-04-06 Thread juan
Hi
I read it
But couldn't make it work

After hours i got it :


   
   



Thanks

On Sun, 6 Apr 2025 at 00:57, Chuck Caldarale  wrote:

>
> > On 2025 Apr 5, at 12:49, juan  wrote:
> >
> > Yes, I read it, but can't find which attributes from sslhostconfig
> should I
> > use
> > And on internet couldn't find any examples, all of them use clientAuth
>
>
> If you read the 9.0.x documentation for clientAuth, it says this:
>
> clientAuth
> This is an alias for the certificateVerification attribute of the
> SSLHostConfig <
> https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig>
> element with the hostName of _default_. If thisSSLHostConfig <
> https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig>
> element is not explicitly defined, it will be created.
>
>
> Is that not clear that you should now be using certificateVerification
> within SSLHostConfig?
>
>   - Chuck
>
>
> > On Sat, 5 Apr 2025, 19:13 Chuck Caldarale,  wrote:
> >
> >>
> >>> On 2025 Apr 5, at 10:55, juan  wrote:
> >>>
> >>> Hi
> >>>
> >>> I'm migrating from tomcat 9 to tomcat 11.0.5
> >>>
> >>> I need a client cert validation. Mi server.xml in tomcat 9 :
> >>>
> >>>
> >>>  >>> *keyAlias="karun-tomcat-server-cert"
> >>>
> >>>
> >>>
> keystoreFile="/home/german/Developement/eclipseAngular/tomcat-server.jks"
> >>> keystorePass="pass" maxThreads="150"
> >>>port="8448" protocol="org.apache.coyote.http11.Http11NioProtocol"
> >>> scheme="https" secure="true" sslProtocol="TLS"
> >>>
> >>>
> >>
> truststoreFile="/home/german/Developement/eclipseAngular/tomcat-server.jks"
> >>> truststorePass="pass"/>
> >>>
> >>> Adding clientAuth="true" does the trick, and my client has to have a
> >>> certificate provided by me.
> >>>
> >>> But in tomcat 11 clientAuth doesn't exist in connector and even reading
> >>> documentation i can't find how to do it in tomcat 11
> >>
> >>
> >> If you look at the 9.0.x SSL documentation, you’ll see that clientAuth
> was
> >> deprecated even then, and was replaced by attributes of the
> SSLHostConfig
> >> element.
> >>
> >> https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support
> >> https://tomcat.apache.org/tomcat-11.0-doc/config/http.html#SSL_Support
> >>
> >>  - Chuck
> >>
> >>
>
>


Question About Tomcat 11.0.5

2025-04-05 Thread juan
Hi

I'm migrating from tomcat 9 to tomcat 11.0.5

I need a client cert validation. Mi server.xml in tomcat 9 :




Adding clientAuth="true" does the trick, and my client has to have a
certificate provided by me.

But in tomcat 11 clientAuth doesn't exist in connector and even reading
documentation i can't find how to do it in tomcat 11

Thanks...


Re: Question About Tomcat 11.0.5

2025-04-05 Thread juan
Yes, I read it, but can't find which attributes from sslhostconfig should I
use
And on internet couldn't find any examples, all of them use clientAuth
Thanks

On Sat, 5 Apr 2025, 19:13 Chuck Caldarale,  wrote:

>
> > On 2025 Apr 5, at 10:55, juan  wrote:
> >
> > Hi
> >
> > I'm migrating from tomcat 9 to tomcat 11.0.5
> >
> > I need a client cert validation. Mi server.xml in tomcat 9 :
> >
> >
> >  > *keyAlias="karun-tomcat-server-cert"
> >
> >
> > keystoreFile="/home/german/Developement/eclipseAngular/tomcat-server.jks"
> > keystorePass="pass" maxThreads="150"
> > port="8448" protocol="org.apache.coyote.http11.Http11NioProtocol"
> > scheme="https" secure="true" sslProtocol="TLS"
> >
> >
> truststoreFile="/home/german/Developement/eclipseAngular/tomcat-server.jks"
> > truststorePass="pass"/>
> >
> > Adding clientAuth="true" does the trick, and my client has to have a
> > certificate provided by me.
> >
> > But in tomcat 11 clientAuth doesn't exist in connector and even reading
> > documentation i can't find how to do it in tomcat 11
>
>
> If you look at the 9.0.x SSL documentation, you’ll see that clientAuth was
> deprecated even then, and was replaced by attributes of the SSLHostConfig
> element.
>
> https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support
> https://tomcat.apache.org/tomcat-11.0-doc/config/http.html#SSL_Support
>
>   - Chuck
>
>


HttpRequest in a LoginModule

2007-03-26 Thread Juan Damasceno

Hello, I´m using JAASRealm and i would like to know if there´s any kind of
"HttpCallback" allows access the HttpServletRequest.

I already read some threads about it in this list, but all using a custom
Authenticator.

Obs.: pardon my bad english.


--
__

Juan Damasceno
__


Re: HttpRequest in a LoginModule

2007-03-26 Thread Juan Damasceno

Thanks for the quick answer Martin but my question is about JAAS and it´s
architecture, more specifically how to interact with the HttpServletRequest
in a LoginModule using Tomcat´s JAASRealm.


On 3/26/07, Martin Gainty <[EMAIL PROTECTED]> wrote:


Hello Juan-

On the client side
An Ajax control has a Javascript callback function which allows the
HTTPServlet to post information back to client (Javascript function) when
ready to xmit completed XML

Is this what you're looking for?

Martin--

---
This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

---
Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: "Juan Damasceno" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, March 26, 2007 2:58 PM
Subject: HttpRequest in a LoginModule


Hello, I´m using JAASRealm and i would like to know if there´s any kind of
"HttpCallback" allows access the HttpServletRequest.

I already read some threads about it in this list, but all using a custom
Authenticator.

Obs.: pardon my bad english.


--
__

Juan Damasceno
__





--
__

Juan Damasceno
__

"Eu fiz essa carta maior que o normal, somente porque não tive tempo de
faze-la mais curta" Blaise Pascal

"Computadores não resolvem problemas, eles executam soluções." Laurent
Gasser


How to configure Tomcat for simulating SSL

2014-05-06 Thread juan fernandez
Hello,
we have HTTPS from the browser to the Oracle Web Cache server, and HTTP from 
Web 
Cache to the Tomcat server. 

We have seen analyzing the network traffic 
that after an HTTPS request there is an HTTP request and the status code is 
aborted. 

Example: 
(HTTPS request) https://myserver.com:4443/example/ 
-> (HTTP response – Error:This web page is not available) 
http://myserver.com:4443/example/index.htm 


Which configuration do we 
have to simulate HTTPS? 


Oracle Web Cache info (output “opatch lsinventory”): 

Oracle WebTier and Utilities CD 11.1.1.6.0 

Tomcat info: 
Apache 
Tomcat Version 6.0.35 

S.O info:Red Hat Enterprise Linux Server release 6.4 (Santiago) 
  

jasper ant task classpath

2018-02-26 Thread Juan Florez

Hello,

I'm trying to precompile the JSPs in a project, and so far I almost got 
it working, but I'm getting this error:


BUILD FAILED
.../iTrust/build.xml:10: org.apache.jasper.JasperException: 
file:.../iTrust/WebRoot/auth/hcp/editRepresentatives.jsp (line: 123, 
column: 0) Unable to load tag handler class 
"edu.ncsu.csc.itrust.tags.PatientNavigation" for tag "itrust:patientNav"


I'm guessing it is because this project is structured in a weird way. 
This is my ant target:


   
    
    

  

I have the compiled classes at "${webapp.path}/build", so if there is a 
way to set the classpath or put the classes in a place where jasper will 
find them, I think it would work. I don't need to run the project, I 
just need the JSPs precompiled to run some static analysis on the code.


Thank you.

--
Juan Manuel Florez
Software Engineering PhD Student



Re: jasper ant task classpath

2018-02-26 Thread Juan Florez
I did as Mark suggested and set the "classpath" property of the japer 
task to a jar containing the classes and it worked.


Thank you!


On 02/26/2018 06:29 PM, M. Manna wrote:

You can create an Ant directory variable which gets added to your job and
can be looked up for additional dependency. Check path,fileset from Ant
docs to see how you can add it to ant task




On 26 Feb 2018 9:52 pm, "Mark Thomas"  wrote:

On 26/02/18 20:22, Juan Florez wrote:

Hello,

I'm trying to precompile the JSPs in a project, and so far I almost got
it working, but I'm getting this error:

BUILD FAILED
.../iTrust/build.xml:10: org.apache.jasper.JasperException:
file:.../iTrust/WebRoot/auth/hcp/editRepresentatives.jsp (line: 123,
column: 0) Unable to load tag handler class
"edu.ncsu.csc.itrust.tags.PatientNavigation" for tag "itrust:patientNav"

I'm guessing it is because this project is structured in a weird way.
This is my ant target:


 
 

   

I have the compiled classes at "${webapp.path}/build", so if there is a
way to set the classpath or put the classes in a place where jasper will
find them, I think it would work. I don't need to run the project, I
just need the JSPs precompiled to run some static analysis on the code.

Thank you.

It looks like you need the JAR with the external tag library on Jasper's
class path. The jasper task has a class path attribute and I think
you'll need to set this to point to the JAR file(s). It should be
structured the same way you'd specify a class path on the command line.
I don't think is supports Ant's .

Mark


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



--
Juan Manuel Florez
Software Engineering PhD Student


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



Problems starting Tomcat 9.0.24 32-bit as a service

2019-08-27 Thread Juan Ramirez
Hello,

I'm currently having an issue with starting Tomcat 9.0.24 32-bit version as a 
service. After installing Tomcat9 using the windows service installer, I try to 
run Tomcat9 and get the windows service error:
"Windows could not start Tomcat9 service on Local Computer. Error 1067: The 
process terminated unexpectedly." I tried looking in the logs to see what could 
have caused the error, but no errors are logged. The only thing I could find in 
the logs is in the commons daemon log file:

[10860] Apache Commons Daemon procrun (1.2.0.0 32-bit) started.
[10860] Debugging 'tomcat9' service...
[10860] Starting service...

I also tried running Tomcat9 through the executable (tomcat9.exe) and get the 
error: "Apache Commons Daemon Service Runner has stopped working." I have also 
tried manually installing Tomcat9 through the 32-bit Windows zip and keep 
having the same errors as installing it through the installer. When I tried 
using the 64-bit version of Tomcat 9.0.24, it seems to work fine and I'm able 
to launch it as a service, which leads me to belive that something maybe wrong 
with the 32-bit version only. I'm using AdoptJDK 12.0.2+10 HotSpot 32-bit for 
Windows 10, as well as the 64-bit version when I tried the 64 bit version of 
Tomcat9. The last thing I tried was running Tomcat 9.0.24 32-bit through the 
command line window with the provided startup.bat file in the bin folder and I 
was able to run Tomcat9 and even reach the default web page. I'm just not able 
to run it as a windows service.

Any and all help is appreciated, thanks.
Juan


RE: Problems starting Tomcat 9.0.24 32-bit as a service

2019-08-27 Thread Juan Ramirez
On Tuesday, August 27, 2019 7:41 PM Juan Ramirez wrote:
>
>I'm currently having an issue with starting Tomcat 9.0.24 32-bit version as a 
>service. After installing Tomcat9 using the windows service installer, I try 
>to run Tomcat9 and get the windows service error:
>"Windows could not start Tomcat9 service on Local Computer. Error 1067: The 
>process terminated unexpectedly." I tried looking in the logs to see what 
>could have caused the error, but no errors are logged. The only thing I could 
>find in the logs is in the commons daemon log file:
>
>[10860] Apache Commons Daemon procrun (1.2.0.0 32-bit) started.
>[10860] Debugging 'tomcat9' service...
>[10860] Starting service...
>
>I also tried running Tomcat9 through the executable (tomcat9.exe) and get the 
>error: "Apache Commons Daemon Service Runner has stopped working." I have also 
>tried manually installing Tomcat9 through the 32-bit Windows zip and keep 
>having the same errors as installing it through the installer. When I tried 
>using the 64-bit version of Tomcat 9.0.24, it seems to work fine and I'm able 
>to launch it as a service, which leads me to belive that something maybe wrong 
>with the 32-bit version only. I'm using AdoptJDK 12.0.2+10 

>>Here's your problem. See my post to this list from July 26, 11:32 and earlier 
>>to which nobody has replied so far

>>http://mail-archives.apache.org/mod_mbox/tomcat-users/201907.mbox/%3CAM6PR03MB60075E5A12F40DAB9281E073BEC00%40AM6PR03MB6007.eurprd03.prod.outlook.com%3E


>>The OpenJdk installers don't configure the registry the same way as as Java 8 
>>did. procrun doesn't cope with it.

>>Workaround is to mess with JAVA_HOME or to install Java 8.

>>procrun needs to be fixed.


>>Michael

Thanks for the response Michael. I do have JAVA_HOME set as this is a required 
step to manually install Tomcat9, otherwise it fails to find the JDK, which is 
described in the post you linked. I think my issue maybe different since this 
only happens with Tomcat 9.0.24 32-bit version specifically. As I mentioned 
earlier, I did try Tomcat 9.0.24 64-bit version with the 64-bit version of 
AdoptOpenJDK 12.0.2+10 and Tomcat9 works and runs as a service. Currently I do 
have Tomcat 9.0.22 32-bit running with AdoptOpenJDK 12.0.2+10 32-bit, so I 
don't think this issue is the same as mine. 

Do please keep in mind that this issue only occurs with Tomcat 9.0.24 32-bit as 
if I use a previous 32-bit version of Tomcat9, Tomcat9 works just fine with no 
problems. 

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



Classloader question

2007-07-17 Thread Juan Ignacio Garzón

Hi,
I'm working with Tomcat 4.1.

I have a library that has to be shared between all the applications,
but it has singletons that should have one instance per application.

In a normal situation, each application could have the .jar in it's
WEB-INF/lib directory, but there is a requirement saying that this is
not possible.

So, is there a way for making a .jar available to all the
applications, but using each application's class loader, so that
static fields are not shared between applications?

Thanks in advance!

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



Classloader question

2007-07-17 Thread Juan Ignacio Garzón

Hi,
I'm working with Tomcat 4.1.

I have a library that has to be shared between all the applications,
but it has singletons that should have one instance per application.

In a normal situation, each application could have the .jar in it's
WEB-INF/lib directory, but there is a requirement saying that this is
not possible.

So, is there a way for making a .jar available to all the
applications, but using each application's class loader, so that
static fields are not shared between applications?

Thanks in advance!

-
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: enabling tomcat SSL on linux

2007-08-08 Thread Juan Ignacio Garzón
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 configured
> tomcat on windows machine and its working perfectly. However when i tried to
> port my configurations (server.xml) on linux machine, it refuses to work. I
> am listing down a very simple SSL configuration below:
>
> 
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>enableLookups="false" redirectPort="8443" acceptCount="100"
>connectionTimeout="2" disableUploadTimeout="true" />
>
> 
>
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>enableLookups="false" disableUploadTimeout="true"
>acceptCount="100" scheme="https" secure="true"
>clientAuth="false" sslProtocol="TLS" keystoreFile="
> keystore.store" keystorePass="secret"/>
>
>
> 
> enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
> />
>
>
>
> My certificate is setup properly. No exception, tomcat is listening properly
> on http. I have even tried disabling AJP connector but no use.
> Any idea? is there some special setup require to make it work ?
>
> Thanks
> -Azhar
>

-
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 listening on port, but get timeout in browser

2007-08-08 Thread Juan Ignacio Garzón
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 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 listening on the port (8080); but when we point a browser to the
> port, we get a timeout.  There isn't another app listening on
> that port; no errors in the tomcat logs or /var/log/messages...
>   We've tried going back to older code, up to newer code, and always get the 
> same result.
>   Any suggestions?  Tomcat 4 on Redhat 7; Coyote connector by itself (ie. no 
> webserver).
>  Thanks,
>  David D.
>
>
> -
> 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]



tomcat6's home directory

2010-10-05 Thread Juan Carlos Afonso
Hello,

My tomcat6 executes as a daemon and I need to know where is its home directory, 
because tomcat6 user executes a pg_dump command and it needs to find the 
.pgpass file. Thanks in advance.



Re: jsp precompile options

2018-01-27 Thread Juan Pablo Perata
Hi Alex, how are you?

For option (a) and using maven, you can use this plugin: jetty-jspc-maven
plugin:
https://www.eclipse.org/jetty/documentation/9.3.x/jetty-jspc-maven-plugin.html

I have being using this plugin por a long time and it fits my needs.

Hope it helps,
Juan

On Sat, Jan 27, 2018 at 10:35 AM Alex O'Ree  wrote:

> Using tomcat 8.5...
>
> I have a web app that still uses jsp's and i'm looking into a few options
> to (a) aid development and (b) reduce or eliminate the need for the JDK in
> a production setup and just run a JRE.
>
> (a) Making development easier. My project is maven based and I'd like to
> run some kind of JSP precompile at build time to ensure that all jsp files
> can be compiled (no typos). I've tried a bunch of examples from SO but
> haven't found anything that functionally works.
>
> (b) Along the same lines, if the solution to question a can inject the
> precompiled jsp files into the WAR, and that is deployed to tomcat, my
> assumption is that the JDK and thus javac would not be necessary at
> runtime. Is this an accurate statement or do other elements within tomcat
> require the JDK? This is assuming that all JSP's deployed to tomcat are
> precompiled somehow.
>


Problem with Tomcat 5.5.15, [173 javajni.c] [error] %1 is not a valid Win32 application

2006-02-27 Thread Juan Jose Garcia Lau
Hi, I have installed successfully tomcat 5.5.15 for development, but now
I need it to install in a production server, but the Apache Tomcat
service doesn't start.  I think the problem it's the machine because it
an AMD Opteron 64Bit with Windows 2003.  

Anybody knows how can I resolve the issue?

Thanks in advance.

Juan Garcia


This is the log:

[2006-02-27 11:37:36] [info] Service Tomcat5 name Apache Tomcat
[2006-02-27 11:37:37] [info] Service Tomcat5 installed
[2006-02-27 11:37:37] [info] Procrun finished.
[2006-02-27 11:37:37] [info] Updating service...
[2006-02-27 11:37:38] [info] Service Tomcat5 updated
[2006-02-27 11:37:38] [info] Update service finished.
[2006-02-27 11:37:38] [info] Procrun finished.
[2006-02-27 11:37:39] [info] Updating service...
[2006-02-27 11:37:40] [info] Service Tomcat5 updated
[2006-02-27 11:37:40] [info] Update service finished.
[2006-02-27 11:37:40] [info] Procrun finished.
[2006-02-27 11:37:41] [info] Updating service...
[2006-02-27 11:37:41] [info] Service Tomcat5 updated
[2006-02-27 11:37:41] [info] Update service finished.
[2006-02-27 11:37:41] [info] Procrun finished.
[2006-02-27 11:37:46] [info] Running Service...
[2006-02-27 11:37:46] [info] Starting service...
[2006-02-27 11:37:46] [173  javajni.c] [error] %1 is not a valid Win32
application.
[2006-02-27 11:37:46] [924  prunsrv.c] [error] Failed creating java
D:\jdk1.5.0_06\jre\bin\server\jvm.dll
[2006-02-27 11:37:47] [1179 prunsrv.c] [error] ServiceStart returned 1
[2006-02-27 11:37:47] [info] Run service finished.
[2006-02-27 11:37:47] [info] Procrun finished.




This message contains information from Banco Cuscatlan Guatemala, which may be 
confidential
and privileged.  If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note that
such actions are prohibited.  If you have received this transmission in error,
please disregard it.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Eclipse plugins for tomcat

2006-04-06 Thread Juan Jose Garcia Lau
I've been working with sysdeo but then I switch to WTP.  

You need some effort to learn the tricks, and if you need to debug JSP, this is 
excellent.

Juan José García

-Original Message-
From: Zohar [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 06 de Abril de 2006 09:47 a.m.
To: Tomcat Users List
Subject: Re: Eclipse plugins for tomcat

take a look at WTP (http://www.eclipse.org/webtools/)
- Original Message - 
From: "Anandi Vyagrapuri" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, April 06, 2006 18:35
Subject: Eclipse plugins for tomcat


> Hi,
> 
> Can anyone comment on the best eclipse plugin for
> tomcat development. Tried sysdeo but had difficulties 
> running the application from eclipse. Anybody tried 
> the plugin called "Lombaz" ?
> Or, should i purchase My eclipse ?
> Any suggestions are welcome. 
> 
> Thanks
> Anandi
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This message contains information from Banco Cuscatlan Guatemala, which may be 
confidential
and privileged.  If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note that
such actions are prohibited.  If you have received this transmission in error,
please disregard it.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with Tomcat 5.5.15, [173 javajni.c] [error] %1 is not a valid Win32 application

2006-04-06 Thread Juan Jose Garcia Lau
No Matt I didn't get answer, but I think the problem it's the program that run 
as a service: tomcat5w.exe.  It runs as 32bit, so when this tries to start the 
tomcat at 64 bit gives the error.

 

But I resolve temporally this way:

 

I make this bat file, just fix the path for your machine.

 

---

 

if "%OS%" == "Windows_NT" setlocal

 

SET JAVA_HOME=d:\jdk1.5.0_06

SET CATALINA_HOME=d:\Tomcat_5.5.15

 

start "Tomcat 5.5.15" "%JAVA_HOME%\bin\java" -classpath 
"%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar" 
-Dcatalina.home="%CATALINA_HOME%" -Dcatalina.base="%CATALINA_HOME%" 
-Djava.endorsed.dirs="%CATALINA_HOME%\common\endorsed" 
-Djava.io.tmpdir="%CATALINA_HOME%\temp" 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=%CATALINA_HOME%\conf\logging.properties 
-Djava.security.manager 
-Djava.security.policy=="%CATALINA_HOME%\conf\catalina.policy" 
org.apache.catalina.startup.Bootstrap start

 

---

 

The problem, it's that tomcat is not running as a service and you need to be 
logged with an account.

 

You may also find useful to download this tcnative-1.dll for AMD win64 at

http://tomcat.heanet.ie/native/1.1.2/binaries/win64/amd64/ 

 

Hope this help you.

 

If you find how to run Tomcat as a service in win64 don't forget to tell me.

 

Good luck and Regards,

 

Juan José García Lau
Información y Tecnología

____

From: Matt Hill [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 05 de Abril de 2006 09:11 p.m.
To: Juan Jose Garcia Lau
Subject: Problem with Tomcat 5.5.15, [173 javajni.c] [error] %1 is not a valid 
Win32 application

 

Hi Juan,

 

Did you ever get an answer to the problem below? We are having the same issue:

 

Hi, I have installed successfully tomcat 5.5.15 for development, but now
I need it to install in a production server, but the Apache Tomcat
service doesn't start.  I think the problem it's the machine because it
an AMD Opteron 64Bit with Windows 2003.  
 
Anybody knows how can I resolve the issue?
 
Thanks in advance.
 
Juan Garcia
 
 
This is the log:
 
[2006-02-27 11:37:36] [info] Service Tomcat5 name Apache Tomcat
[2006-02-27 11:37:37] [info] Service Tomcat5 installed
[2006-02-27 11:37:37] [info] Procrun finished.
[2006-02-27 11:37:37] [info] Updating service...
[2006-02-27 11:37:38] [info] Service Tomcat5 updated
[2006-02-27 11:37:38] [info] Update service finished.
[2006-02-27 11:37:38] [info] Procrun finished.
[2006-02-27 11:37:39] [info] Updating service...
[2006-02-27 11:37:40] [info] Service Tomcat5 updated
[2006-02-27 11:37:40] [info] Update service finished.
[2006-02-27 11:37:40] [info] Procrun finished.
[2006-02-27 11:37:41] [info] Updating service...
[2006-02-27 11:37:41] [info] Service Tomcat5 updated
[2006-02-27 11:37:41] [info] Update service finished.
[2006-02-27 11:37:41] [info] Procrun finished.
[2006-02-27 11:37:46] [info] Running Service...
[2006-02-27 11:37:46] [info] Starting service...
[2006-02-27 11:37:46] [173  javajni.c] [error] %1 is not a valid Win32
application.
[2006-02-27 11:37:46] [924  prunsrv.c] [error] Failed creating java
D:\jdk1.5.0_06\jre\bin\server\jvm.dll
[2006-02-27 11:37:47] [1179 prunsrv.c] [error] ServiceStart returned 1
[2006-02-27 11:37:47] [info] Run service finished.
[2006-02-27 11:37:47] [info] Procrun finished.

 

 

Thanks,

Matt Hill




This message contains information from Banco Cuscatlan Guatemala, which may be 
confidential
and privileged.  If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note that
such actions are prohibited.  If you have received this transmission in error,
please disregard it.



RE: Question on csv import using browser into MySQL database

2006-05-23 Thread Juan Jose Garcia Lau
If you want to upload files, take a look at

http://jakarta.apache.org/commons/fileupload/

Cheers, 

Juan 

-Original Message-
From: Christopher Molnar [mailto:[EMAIL PROTECTED] 
Sent: Martes, 23 de Mayo de 2006 10:17 a.m.
To: Tomcat Users List
Subject: Question on csv import using browser into MySQL database

Hello,

I need to ask a question from any of the java experts out there. Can 
anyone suggest or share a code segment that allows a web user to upload 
a csv file and then parse it on the server end with the end goal of it 
going into a mysql table?

I have searched everything I can think to search but can't find
anything.

Thanks,
-Chris


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




This message contains information from Banco Cuscatlan Guatemala, which may be 
confidential
and privileged.  If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note that
such actions are prohibited.  If you have received this transmission in error,
please disregard 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]



Install Tomcat 5.5 & Tomcat 6.0 in the same machine

2008-02-06 Thread Juan Jesús Cremades Monserrat
Hi!  I'm Triying install two differens versions of Tomcat in the same
machine. It's necessay for two projects that I'm developing.

I've installed successfully the Tomcat 5.5 with Java 1.5.0_14, but when I'm
try install Tomcat 6.0, the Windows Installer give me an error related with
the JVM. The message says: "Failed to install  Tomcat6 service. Check your
settings permissions" But I'm the administrator, cos this isn't a permission
problem. Could it be related with the JVM directly? Thanks


Install Tomcat 5.5 & Tomcat 6.0 in the same machine

2008-02-06 Thread Juan Jesús Cremades Monserrat
Hi!  I'm Triying install two differens versions of Tomcat in the same
machine. It's necessay for two projects that I'm developing.

I've installed successfully the Tomcat 5.5 with Java 1.5.0_14, but when I'm
try install Tomcat 6.0, the Windows Installer give me an error related with
the JVM. The message says: "Failed to install  Tomcat6 service. Check your
settings permissions" But I'm the administrator, cos this isn't a permission
problem. Could it be related with the JVM directly? Thanks


Undeploying apps

2009-07-30 Thread Juan Pablo Romero Méndez
Hello all,

I noticed something strange undeploying a small web app. Within the
tomcat manager, after clicking "undeploy" on my app, the link to my
app it still there. No only that, but it is listed as "started".

Is this normal?

Regards,

  Juan Pablo

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



Deploying grails application

2009-07-30 Thread Juan Pablo Romero Méndez
Hello all,

I'm stuck here: After deploying a war created by grails, everything
seems fine (tomcat says OK), but the application is not available in
the path it should be. The log files give no warning at all. Where
could I search for the problem?

Regards,

  Juan Pablo

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



Re: Deploying grails application

2009-07-30 Thread Juan Pablo Romero Méndez
It turned out there is some delay between clicking the link to deploy
and the application being available. I somehow expected this process
to be almost instantaneous.

But the application is running fine now. Thanks!

By the way, what is the preferred way to deploy war files to a tomcat
installation? from the admin console? copying the file directly?

My setup:
Tomcat 6.0.20
os: Windows Server Enterprise 2008
JVM: 1.6.0_14-b08
Grails 1.1.1

Regards,

  Juan Pabllo

2009/7/30 Christopher Schultz :
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Juan,
>
> On 7/30/2009 1:10 PM, Juan Pablo Romero Méndez wrote:
>> I'm stuck here: After deploying a war created by grails, everything
>> seems fine (tomcat says OK), but the application is not available in
>> the path it should be. The log files give no warning at all. Where
>> could I search for the problem?
>
> You could start by telling us:
>
> 1. Your Tomcat version
> 2. What your server.xml has configured in it
> 3. How you did your deployment
> 4. What error(s) you actually get when you try to access the app
> 5. Any error or warning messages in catalina.out
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkpx8W8ACgkQ9CaO5/Lv0PBvJgCdGdUPZzjgoCzeHS9WOij1Xgar
> RqQAnRBQUuqQPcHWmVN1xcyj0WB4xHAb
> =baQM
> -END PGP SIGNATURE-
>
> -
> 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: Fwd: Tomcat Thread Log

2015-04-09 Thread Luis San Juan Germán

Ah que estas en el de puertos también.

Ahora te quito no te preocupes.

El 09/04/15 a las 14:59, Christopher Schultz escribió:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mukund,

On 4/8/15 11:33 PM, Mukundaraman Valakumaresan wrote:

I have deployed an application in Apache tomcat 7.0.59.

When I copy the war to webapps folder and start tomcat. Tomcat
hangs and I coudln't see the admin screen as well for the first 30
minutes. Without this war, tomcat starts fine shows the admin
screen immediately.

Through google, I check a posts, which asked me to take a thread
dump. I use Sprint, Hibernate and Mysql. From the thread dump, I
could see that and could also see that the problem with the
connectivity to MySQL.

But I am not sure where exactly the problem lies and what needs to
be fixed. Any help is appreciated!! Thanks



"http-bio-8080-exec-1" daemon prio=10 tid=0x7fa11400c800
nid=0xa49 runnable [0x7fa124c87000] java.lang.Thread.State:
RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:152) at
java.net.SocketInputStream.read(SocketInputStream.java:122) at
com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.jav

a:113)



at

com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNec

essary(ReadAheadInputStream.java:160)



at

com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.jav

a:188)



- - locked <0xbaadb0d0> (a com.mysql.jdbc.util.ReadAheadInputStrea
m)

at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2428) at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2882) at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2871) at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3414) at
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936) at
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060) at
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536) -
locked <0xcfa6a1f8> (a java.lang.Object) at
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465) at
com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
- locked <0xcfa6a1f8> (a java.lang.Object) at
com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.jav

a:823)



at

com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl

.java:3350)



at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2045)

- locked <0xcfa6a1f8> (a java.lang.Object) at
com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:718) at
com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46) at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo

rAccessorImpl.java:57)



at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo

nstructorAccessorImpl.java:45)



at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at
com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:

282)



at java.sql.DriverManager.getConnection(DriverManager.java:571)

at java.sql.DriverManager.getConnection(DriverManager.java:187) at
org.springframework.jdbc.datasource.DriverManagerDataSource.getConnect

ionFromDriverManager(DriverManagerDataSource.java:173)



at

org.springframework.jdbc.datasource.DriverManagerDataSource.getConnect

ionFromDriver(DriverManagerDataSource.java:164)



at

org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getC

onnectionFromDriver(AbstractDriverBasedDataSource.java:153)



at

org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getC

onnection(AbstractDriverBasedDataSource.java:119)



at

org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionPro

viderImpl.getConnection(DatasourceConnectionProviderImpl.java:139)



at

org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProvider

JdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:279)



at

org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServ

icesImpl.java:124)



at

org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.confi

gureService(StandardServiceRegistryImpl.java:111)



at

org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeS

ervice(AbstractServiceRegistryImpl.java:234)



at

org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(

AbstractServiceRegistryImpl.java:206)



at

org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.j

ava:1885)



at

org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java

:1843)



at

org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java

:1928)



at

org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSes

sionFactory(LocalSessionFactoryBuilder.java:252)



at

org.springframework.

Erro getting PageContext from servlet

2005-12-23 Thread Juan Luis de Amaya Robles
hi everybody,
 
I use Tomcat 5.5 under windows, and i have a little webapp with a
servlet:
 
...
   JspFactory factory = JspFactory.getDefaultFactory();   
   resp.setContentType("text/xml");
   //int bufferSize = (JspWriter.DEFAULT_BUFFER <= 0) ? 1024 :
JspWriter.DEFAULT_BUFFER;
 
   PageContext pageContext = factory.getPageContext(this, req, resp,
null, true, 8192, true);
 ...
 
pageContext is null due to the next error (view log).
 
What's the problem?
 
thank you!
 
...
INFO: Server startup in 4340 ms
23-dic-2005 9:35:34 org.apache.jasper.runtime.JspFactoryImpl
internalGetPageContext
GRAVE: Exception initializing page context
java.lang.NullPointerException
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.ja
va:138)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.jav
a:123)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFacto
ryImpl.java:104)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.j
ava:61)
at
net.sf.regain.ui.server.SearchServlet.getPageRequest(SearchServlet.java:
126)
at
net.sf.regain.ui.server.SearchServlet.doPost(SearchServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)