Hi,
On your Linux box type “locale” + enter. The results should be UTF 8. If not
change it. You can also set it in the file encoding java environment
variable as suggested above as extra safety measure.
Tomcat’s logic of determining the encoding from the request only applies
when Tomcat is parsin
Without stopping the JVM you want to change the files that the JVM is using?
I wonder. Hopefully, you can copy the files to another location, if the
application dont have any open inputstream. But the JVM current execution
path will not change if you donot restart it.
Thanks & Regards
Anirban Talu
On unix (posix, linux) systems you can move anything even when in use.
Files that are open will remain open, and the application will continue
to use them. Problems will arise when the application attempts to open
new files, because then they have to be at the expected location.
If you really want
Have a look on the demo hello world program in JNI, you can find it over
net, and instead of printing the Hello world message just return the process
id, which can be found from the linux API.
please find the article
http://www.pacifier.com/~mmead/jni/cs510ajp/index.html
Thanks & Regards
Anirba
Thanks alot anirban for your help. No i want to get the java process id from
linux only. Can you help me with some script to get the same?
THanks,
Phani.
On Wed, Dec 2, 2009 at 12:14 PM, Anirban Talukdar <
talukdar.anir...@gmail.com> wrote:
> In java i don find any API that returns the id of the
In java i don find any API that returns the id of the process. Hopefully, It
is because process ID is not standard for all the operating system. I am not
sure about this.
But in linux you can write a simple C/C++ function to get the process id.
And that later can be integrated with java through JN
Hi friends,
When i ran tomcat and shut it down my java process is not closing along with
shutdown.i need to kill it explicitly. So I would like to know how to
identify the java process of the logged in user who started the server. so
that i can kill the process id from the shutdown.sh script itse
"Rajat Gupta05" wrote in message
news:784ae6e0ec8c2343975b7ff4daeaa34b0ce6638...@blrkecmbx06.ad.infosys.com...
>Hi,
>
>I am trying to create a AJP connector on Tomcat5.5 which is running in
>Embedded mode by using following API's
>
> Embedded em = new Embedded();
// create new engine
>Standard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
On 12/1/2009 10:26 AM, André Warnier wrote:
> groupalias v wrote:
>>
>> httpd.conf
>> -
>>
>> LoadModule jk_module modules/mod_jk.so
>>
>>
>
> What the h.. is this line for : ?
It's for conditional inclusion of Apache http
> From: Ashok Kumar [mailto:asho...@gmail.com]
> Subject: Re: Debugging tomcat<->apache(mod_jk) bridge
>
> Thanks for your reply. I am using the standalone tomcat app server, no
> web server.
You replied to the wrong thread - the subject line should have given you a
clue. No one has attempted t
Thanks for your reply. I am using the standalone tomcat app server, no web
server.
We are using tomcat 6.0.20. We installed the self signed certificate on it,
its working fine.
Now we installed the CA (goDaddy) certificate in order to use CA certificate
and updated the server.xml and restarted th
groupalias v wrote:
See answers inline -
On Tue, Dec 1, 2009 at 7:26 AM, André Warnier wrote:
groupalias v wrote:
httpd.conf
-
LoadModule jk_module modules/mod_jk.so
What the h.. is this line for : ?
I don't understand. Am I using the wrong module identifier? Or
Hi,
We are using tomcat 6.0.20. We installed the self signed certificate, its
working fine.
Now we installed the CA (goDaddy) certificate in order to use CA certificate
and updated the server.xml and restarted the tomcat server. But tomcat ssl
port is still picking the old self-signed certs. Do y
See answers inline -
On Tue, Dec 1, 2009 at 7:26 AM, André Warnier wrote:
> groupalias v wrote:
>>
>> httpd.conf
>> -
>>
>> LoadModule jk_module modules/mod_jk.so
>>
>>
>
> What the h.. is this line for : ?
I don't understand. Am I using the wrong module identifier? Or a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
On 11/30/2009 7:39 PM, André Warnier wrote:
> Well, just make a simple test :
> (I don't really know how to handle JSP pages, I only do servlets and
> filters, otherwise I'd do it myself).
:)
> - create a simple html form with a UTF-8 charse
Ok i will turn tomcat off then move the directory.
Dean
On Tue, Dec 1, 2009 at 9:30 PM, Peter Crowther
wrote:
> 2009/12/1 Dean Chester :
> > Ok thanks what i meant is that the tomcat directory is in
> > ~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home
> directory
> > ~/. Basically
2009/12/1 Dean Chester :
> Ok thanks what i meant is that the tomcat directory is in
> ~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home directory
> ~/. Basically was it safe to do it while tomcat is still running.
No, that is not safe. Tomcat may access any file in a webapp at any
Ok thanks what i meant is that the tomcat directory is in
~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home directory
~/. Basically was it safe to do it while tomcat is still running.
On Tue, Dec 1, 2009 at 9:12 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:
> > From
> From: Dean Chester [mailto:dean.g.ches...@googlemail.com]
> Subject: Safe to move tomcat directory while tomcat running?
>
> I have to move the tomcat directory with in my user and i ask is it
> safe if i do it while tomcat is running as i need to avoid downtime
> of my application.
Generally,
I would be doing it on red hat. Would it just be easier to email all the
users and say its down for maintenance and then just move it?
Dean
On Tue, Dec 1, 2009 at 9:02 PM, David kerber wrote:
> Dean Chester wrote:
>
>> Hi,
>> I have to move the tomcat directory with in my user and i ask is it sa
Dean Chester wrote:
Hi,
I have to move the tomcat directory with in my user and i ask is it safe if
i do it while tomcat is running as i need to avoid downtime of my
application.
Thanks in Advance
Dean
I doubt you would even be able to do so, at least not in Windows.
--
Hi,
I have to move the tomcat directory with in my user and i ask is it safe if
i do it while tomcat is running as i need to avoid downtime of my
application.
Thanks in Advance
Dean
> I want to manage the log's files on a centralized basis
Does this help?
http://linux.die.net/man/1/mergelog
Neil
--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day free trial, Google Checkout
-
No, we always create a session (or want to).
The only <%@ in the welcome page are
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt"; prefix="c" %>
As I mentio
> From: Ken Bowen [mailto:kbo...@als.com]
> Subject: SessionListener not being invoked
>
> I have a SessionListener which is not being invoked when I connect to
> the webapp, and I don't understand why.
Most likely because your webapp didn't choose to create a session. You'll need
to look at th
My setup: Mac OS X 10.5.8, Tomcat/6.0.20[from apache], java version
"1.6.0_15"
I'm starting Tomcat with ~bin/startup.sh.
I have a SessionListener which is not being invoked when I connect to
the webapp,
and I don't understand why.
The SessionListener works correctly in a a slight variatio
Hi,
Thanks for the great advice.
On placing singletons etc in jar libraries in tommcat /lib directory,
that would be a very simple hack that could keep code pretty much as is.
Thank you for that suggestion, it may well be a runner, I didnt think
that was possible.
In terms of fronting everything
> From: olivier giorgi [mailto:olivier_gio...@yahoo.fr]
> Subject: Tomcat 6 as a windows service fails to start with -server
> option
>
> Looks like tomcat is able to start when launched from startup.bat, but,
> if we intend to configure tomcat as a service, the -server flag causes
> the process t
Hello to all,
Struggling to enable UTF-8 encoding on apache tomcat 6 Windows service.
The option we used to activate (within startup.bat) was
-Dfile.encoding=UTF-8 -server
Looks like tomcat is able to start when launched from startup.bat, but, if we
intend to configure tomcat
Hi, I have a cluster with many tomcat and I want to manage the log's files
on a centralized basis in order to collect, display, analyze and manage all
files of logs from a single client. Do you know a system that allows me to
do? Many thanks.
groupalias v wrote:
httpd.conf
-
LoadModule jk_module modules/mod_jk.so
What the h.. is this line for : ?
Alias /test/ "/srv/tomcat6/webapps/A"
It kind of contradicts these next lines :
JKMount/test/ A
JkMount /test/* A
Because of the Alias line, I
Caldarale, Charles R wrote:
>> From: jkv [mailto:j.kumara...@gmail.com]
>> Subject: Singletons in Tomcat(6.0)
>>
>> Is using singleton patterns in Tomcat (in servlets programming and
>> deploying them in tomcat) a really bad idea??
>
> No, it's fine.
>
>> One really useful post is
>> http://wiki.
Hi,
I am trying to set up mod_jk to forward requests to the webapp in
tomcat. The webapp itself works when accessed directly. But I get a
400 error in mod_jk when I try to access it (even the index.jsp)
through apache.
I see the error 400 in mod_jk.log but see nothing in tomcat logs. Its
as if th
> From: jkv [mailto:j.kumara...@gmail.com]
> Subject: Singletons in Tomcat(6.0)
>
> Is using singleton patterns in Tomcat (in servlets programming and
> deploying them in tomcat) a really bad idea??
No, it's fine.
> One really useful post is
> http://wiki.apache.org/tomcat/OutOfMemory
Unfortuna
everything below is just my knowledge :-)
comments inlined
On Tue, Dec 1, 2009 at 2:01 PM, jkv wrote:
>
> Hello,
>
> Is using singleton patterns in Tomcat (in servlets programming and deploying
> them in tomcat) a really bad idea?? I came accross many forum posts and
> wikis that warn about of OO
Resolved AuthenticationFailureException issue. This is coming because i have
used basic-authentication scheme. If basic-authentication scheme used, we
need remove hasAlgorithm and hasEnconding properties in
josso-gateway-auth.xml file.
Now Josso session id is getting created. But getting the belo
Hello,
Is using singleton patterns in Tomcat (in servlets programming and deploying
them in tomcat) a really bad idea?? I came accross many forum posts and
wikis that warn about of OOM errors. One really useful post is
http://wiki.apache.org/tomcat/OutOfMemory
http://wiki.apache.org/tomcat/OutOf
User name and password are correct only.
Pid Ster wrote:
>
> On 01/12/2009 12:37, vramanaj wrote:
>>
>> I have passed through this DataSource look up problem. I altered
>> context.xml/web.xml of josso webapp. And also used short JNDI names at
>> tomcat/web.xml/context.xml level (e.g. jdbc/Defau
On 01/12/2009 12:37, vramanaj wrote:
I have passed through this DataSource look up problem. I altered
context.xml/web.xml of josso webapp. And also used short JNDI names at
tomcat/web.xml/context.xml level (e.g. jdbc/DefaultDS), and full JNDI name
at Josso configuration level (e.g.
java:comp/env
No, DataSource is working fine now. Thank yoy very much for all of your
support in resolving that problem.
New issue has come in configuring the authentication scheme.
Pid Ster wrote:
>
> On 01/12/2009 11:41, vramanaj wrote:
>>
>> I have removed path and docbase from webapp.xml file. I have
On 01/12/2009 11:41, vramanaj wrote:
I have removed path and docbase from webapp.xml file. I have tried the db
connection from a servlet as below. I have gone through the josso source
codes. It is failing at below getDataSource function.
protected DataSource getDataSource() throws SSOIdent
I have passed through this DataSource look up problem. I altered
context.xml/web.xml of josso webapp. And also used short JNDI names at
tomcat/web.xml/context.xml level (e.g. jdbc/DefaultDS), and full JNDI name
at Josso configuration level (e.g.
java:comp/env/jdbc/DefaultDS).
Now when i try to
Peter Crowther wrote:
2009/12/1 Anthony Jay :
As for cross application communication I will have to revisit our own
code to see if there are static/singleton services that can be
re-engineered and decoupled.
This may be one of the few appropriate times where you may want to put
code for the si
Added context.xml in META-INF directory. And also added resurce-ref in josso
webapp. Still getting the same error.
Mikolaj Rydzewski-2 wrote:
>
> vramanaj wrote:
>> I have used jdbc/DefaultDS. Added ResourceLink to
>> Catalina/localhost/webapp.xml.
>>
>> > docBase="/usr2/tomcat/sso/apache-tomca
2009/12/1 Anthony Jay :
> As for cross application communication I will have to revisit our own
> code to see if there are static/singleton services that can be
> re-engineered and decoupled.
This may be one of the few appropriate times where you may want to put
code for the singletons (and all th
I have removed path and docbase from webapp.xml file. I have tried the db
connection from a servlet as below. I have gone through the josso source
codes. It is failing at below getDataSource function.
protected DataSource getDataSource() throws SSOIdentityException {
if (_datasource
vramanaj wrote:
I have used jdbc/DefaultDS. Added ResourceLink to
Catalina/localhost/webapp.xml.
And also added resource-ref to WEB-INF/web.xml.
Stacktraces you have posted originate from josso webapp, not from test
app. You need to alter context.xml / web.xml of josso webapp.
--
Mikol
Thanks all for your comments, I do appreciate the expert assistance.
As I suspected I will have to split the webapp into seperate apps based
on the authentication method required.
Seems like a funny way to arrange an application but such is life.
As for cross application communication I will have t
I have used jdbc/DefaultDS. Added ResourceLink to
Catalina/localhost/webapp.xml.
And also added resource-ref to WEB-INF/web.xml.
-
Mikolaj Rydzewski-2 wrote:
>
> vramanaj wrote:
>> 1. Defined DataSource within GlobalNaming
On 01/12/2009 10:36, vramanaj wrote:
Full Stack Trace:
Dec 1, 2009 1:46:58 AM
org.josso.gateway.identity.service.store.db.DataSourceIdentityStore
getDataSource
SEVERE: Error during DB connection lookup
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apa
Hi,
I am trying to create a AJP connector on Tomcat5.5 which is running in Embedded
mode by using following API's
Embedded em = new Embedded();
// create new engine
StandardEngine engine = (StandardEngine) em.createEngine();
engine.setName("Catalina");
engine.setDefaultHost("localhost");
Stri
vramanaj wrote:
1. Defined DataSource within GlobalNamingResources
As already mentioned here, you should rather use jdbc/DefaultDS.
* add JNDI support to josso webapp (e.g. and ResourceLink to
META-INF/context.xml and resource-ref to WEB-INF/web.xml)
Did you miss th
Ich werde ab 01.12.2009 nicht im Büro sein. Ich kehre zurück am
07.12.2009.
Ihre E-Mail wurde nicht weitergeleitet.
Bitte wenden Sie sich bei dringenden Fragen telefonisch an unseren Customer
Support unter der für Ihre Frage zutreffenen Nummer.
Produkt Telefonnummer
VED
vramanaj wrote:
Still getting the same error after changing Data Source name to
'jdbc/DefaultDS'. Added resource link in webapp.xml.
Error : Error During Lookup Name jdbc is not bound in this Context
Are there any extra customizations required for Josso+Tomcat6?
The 'trick' with Jos
Full Stack Trace:
Dec 1, 2009 1:46:58 AM
org.josso.gateway.identity.service.store.db.DataSourceIdentityStore
getDataSource
SEVERE: Error during DB connection lookup
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingCo
On 01/12/2009 05:13, vramanaj wrote:
Still getting the same error after changing Data Source name to
'jdbc/DefaultDS'. Added resource link in webapp.xml.
Error : Error During Lookup Name jdbc is not bound in this Context
What is the full stack trace?
Are you adding it to tomcat/con
56 matches
Mail list logo