Re: Flash and Javascript

2006-06-29 Thread Nikola Milutinovic
I currently have a Flash file which uses the ExternalInterface.call function to 
call some JavaScript functions I have on a JSP page running in Jetspeed 2. When 
I publish the file to an HTML in Flash and just view it on my computer it works 
great, but I have tried making a JSP page out of it and putting it up on my 
server and when I am clicking the buttons that should be calling these 
functions, nothing is happening. I really do not know if it is a Flash problem 
or a Tomcat problem, but I haven't been able to find anything on Flash 
messageboards about it.

[ ANSWER 
]

OK, this is not strictly a proper place, but I can think of no other, so here 
goes.

Your question is a bit vague. If I understand correctly, you have one JSP page, 
which could even be a plain HTML, as far as your problem goes. That page embeds 
a Flash, which calls a JavaScript, also present on thet page. This all is a 
client-side stuff, none of it is taking place on the server, right?

If this is the case, no wonder nobody responded :-)

This looks like a HTML problem, take a look at the source of the page and 
figure out what's wrong. From your description, it should be tottaly irrelevant 
whether the page is HTML or JSP (unless that JSP is doing something on the 
server-side, like querying DB). It should also be totally irrelevant if it is 
on your local machine or an the web server - in case of HTML. JSP would require 
JSP engine, like Jetty or Tomcat.

My advice to you is, make it work in pure HTML first, both on your local 
machine and on any web server (to rule out wrong links and similar gotchas). 
Then embody it in a JSP page. If that problem truly requires a JSP.

Nix.




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



context.xml best place

2006-06-29 Thread Giorgio Ponza

Hi all.
I am trying to configure multiple context for the same Host and i'm 
having some problems.
I just installed lambdaprobe, that needs privileged="true" in its 
Context tag
SO i edited the file context.xml in the /probe/META-INF folder. But, 
after a restart, Tomcat continued to say that the application needs the 
privileged="true".
So i created a file probe.xml inside the 
/conf/Catalina/[hostname]/[appname].xml with the same text as the one 
before, restarted, and magically the application worked.
Reading the tomcat documentation 
(http://tomcat.apache.org/tomcat-5.5-doc/config/context.html)

it says that it looks in
1- in the individual $CATALINA_HOME/conf/context.xml file: the Context 
element information will be loaded by all webapps
2- in the individual 
$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: 
the Context element information will be loaded by all webapps of that host
3- in individual files (with a ".xml" extension) in the 
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory
4- if the previous file was not found for this application, in 
individual file at /META-INF/context.xml inside the application files


So in my first attempt i used point 4 with no success, second attempt 
with point 3 with success. So i ask you if is better to put the file in 
/conf/[enginename]/[hostname]/[appname].xml (for the moments seems is 
the only way to make it work :D )
Has somebody some documentation links that explain better than tomcat 
docs how to configure Contexts, maybe with some examples? (yes, i 
googled already ;) )

Thanks all

Giorgio Ponza

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



Deployment Management & Auditing of Tomcat Applications

2006-06-29 Thread Narendra, Anand
Hi,

 

I like to know of "Tomcat Management & Monitoring Softwares". 

 

Looking for tools to manage application deployment, auditing application
deployment and controlling. 

 

Thanks in advance!

 

Aananda

 



Tomcat Datasource access

2006-06-29 Thread Narendra, Anand
Hi,

Can anybody give me details on DB connection parameters security? Iam
looking for proving that tomcat allows secure db connections similar to
WAS 

Thanks in advance
Aanandaa


RE: Deployment Management & Auditing of Tomcat Applications

2006-06-29 Thread Raghupathy,Gurumoorthy
http://www.lambdaprobe.org/d/index.htm

http://mc4j.org/confluence/display/mc4j/Home


http://manageengine.adventnet.com/products/applications_manager/monitor-tomc
at.html

Hope this helps 

Gurumoorthy Raghupathy
Web Support - Fidelity Investments International
* Tel: +44 1737 836798
* Internal: 8-724 6798
* Tel (R): +442086610646
* Tel (R): +447899033459
* Tel (S): +447736059647 
* Mail-Zone : XTW2A
* E-Mail: <>

Important: Fidelity Investments International, Fidelity Investment Services
Limited, Fidelity Pensions Management and Financial Administration Services
Limited (a Fidelity Group company) are all authorised and regulated in the
UK by the Financial Services Authority and have their registered offices at
Oakhill House, 130 Tonbridge Road, Hildenborough, Tonbridge, Kent TN11 9DZ.
Tel 01732 361144. Fidelity only gives information on products and does not
give investment advice to private clients based on individual circumstances.
Any comments or statements made are not necessarily those of Fidelity. The
information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. If
you received this in error, please contact the sender and delete the
material from any computer. All e-mails sent from or to Fidelity may be
subject to our monitoring procedures. 'Direct link to Fidelitys website.


-Original Message-
From: Narendra, Anand [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2006 11:55
To: users@tomcat.apache.org
Subject: Deployment Management & Auditing of Tomcat Applications


Hi,

 

I like to know of "Tomcat Management & Monitoring Softwares". 

 

Looking for tools to manage application deployment, auditing application
deployment and controlling. 

 

Thanks in advance!

 

Aananda

 



RE: Error while connecting to MySQL database

2006-06-29 Thread Jitendra Kharche
 
Hi,

I don't' know whether specifying db.properties works or not, but I
configured a datasource for mysql as follows:
1. Shutdown tomcat.
2. Enter followin in TOMCAT_HOME/conf/server.xml
(If you have an entry in server.xml for this update it as below)


3. Enter following in your-web-app/META-INF/context.xml file
  
4. Enter in your-web-app/WEB-INF/web.xml following 

jdbc/MyDB
javax.sql.DataSource
Container

5. Then in you code use the JNDI lookup to get the datasourec and
connetion as useual.
 
Regards,
Jitendra 

-Original Message-
From: navaneethan loganathan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 5:27 AM
To: users@tomcat.apache.org
Subject: Error while connecting to MySQL database

Hi,

I am facing a problem with my Apache-Tomcat-MySQL
installation.MyEnvironment is as follows:
Redhat ES4(2.6.9-5.EL), Apache-Tomcat-5.5.15, MySQL 4.1.12, Java version
1.5.0_06, Apache-Tomcat connector ajp13,
mysql-connector-java-3.2.0-alpha-bin.jar.

After installation and configuration I am unable to connect to the
database through the application and getting the following exception in
catalina.outlog file.

java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)

However, I am able to browse my site perfectly with
http://localhost/index.jsp (the connector also configured perfectly, so
that I do not need to specify the port number in URL).
 I put the mysql-connector-java-3.2.0-alpha-bin.jar file in
$CATALINA_HOME/common/lib and also specified in CLASSPATH.

I am able to login to MySQL through command and access the database
without any problem.

My db.properties is as under:

# MySQL database access properties
db.driver = org.gjt.mm.mysql.Driver
db.url = jdbc:mysql://localhost:3306/testdb
db.user = root
db.pwd =
Any clue will be very much helpfull.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: Application does not deploy

2006-06-29 Thread Giorgio Ponza

[EMAIL PROTECTED] wrote:

Can someone point me to the next place to look.

My class files are built...I receive a warning error when I compile.  I can
build a war file but nothing comes up in my browser.  I'm a bit of a newbie
to web deployment.

2006-06-28 15:06:56 StandardContext[/strutsBlank]Marking servlet action as
unavailable
2006-06-28 15:06:56 StandardContext[/strutsBlank]Servlet /strutsBlank threw
load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.struts.action.ActionServlet
  at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1011)
  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)



- Root Cause -
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
  at java.lang.Class.getDeclaredConstructors0(Native Method)
  at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
  at java.lang.Class.getConstructor0(Class.java:1930)
  at java.lang.Class.newInstance0(Class.java:278)
  at java.lang.Class.newInstance(Class.java:261)


Ops, i think you dont have commons-beanutils-1.x.x installed
Download the file from
http://jakarta.apache.org/site/downloads/downloads_commons-beanutils.cgi
and put it in your webapp/WEB-INF/lib and reload tomcat
Bye

Giorgio Ponza

-
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: MyPrincipal cannot be resolved to a type

2006-06-29 Thread Jon Wingfield
In addition, custom Realms merely need to create instances of Principal. 
There is no requirement for them to extend GenericPrincipal.


Our Realm classes are deployed to server/lib
Our extension to Principal is deployed to common/lib

See the thread "Is custom realm using user/role data in webapp 
possible?" from 26th May for more details.


HTH,

Jon

Nicholas Sushkin wrote:

"MyPrincipal cannot be resolve to a type"

when trying the following:

((MyPrincipal)request.getUserPrincipal()).getDisplayName();


Yuri,

Josso implemented their own Principal that has additional properties. You 
may want to poke around http://www.josso.org/developer-howto.html






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



URL Redirection in tomcat

2006-06-29 Thread santhoshs

Hi Everybody,

Am using Tomcat 5.0 . My requirement is to redirect the URL
"http://username.mysite.com"; to
"http://username.site.com/application.do?login_name=username";. The URL
should be nice URL , in the sense the New URL should not be reflected in the
address bar.

My Question is whether should i use apache for this redirection or can i
achieve this using tomcat itself ? If so what should I do to achieve this ?

Thanks and Regards, 
Santhosh
-- 
View this message in context: 
http://www.nabble.com/URL-Redirection-in-tomcat-tf1867090.html#a5101383
Sent from the Tomcat - User forum at Nabble.com.


How to suppress implicit conversions when spliiting up the query string into parameters

2006-06-29 Thread KHZ (SAW)
Hi world.
 
We’ve severe problems if a URL contains an umlaut. For URL usage we encode
strings using UTF-8, i.e. “ü” (which would be ü in HTML) can be viewed
as “%c3%bc”. Getting the request parameter I’ld expect the same string. But
we see 2 characters. Obviously it’s interpreted as ISO8859-1 and so we see
“ü”. It’s obviously p.i.t.ar. to convert such a thing directly to “ü”.
 
As a workaround we split the query string ourselves (Java) and store it in a
hash map. Using these data we can apply the decoding using UTF-8. There it
works good. But the application is big. So we want to remove the real
problem.
 
I assume that it’s some setting in some XML file. How can we suppress such
implicit conversions?
 
If my assumption is wrong that Tomcat splits up the query string then please
give me a hint which tool is responsible for that.
 
Best regards,Karl-Heinz.
 


Re: MyPrincipal cannot be resolved to a type

2006-06-29 Thread Yuri de Wit

Yes, in the spirit of "dont reinvent the wheel" I was trying to leverage as
much as possible from the catalina BaseRealm, but that implementation
requires GenericPrincipal to get the list of roles associated with the
principal.

Thanks for the pointer.

Any issues moving all the jar from server/lib to common/lib for a quick
workaround?

On 6/29/06, Jon Wingfield <[EMAIL PROTECTED]> wrote:


In addition, custom Realms merely need to create instances of Principal.
There is no requirement for them to extend GenericPrincipal.

Our Realm classes are deployed to server/lib
Our extension to Principal is deployed to common/lib

See the thread "Is custom realm using user/role data in webapp
possible?" from 26th May for more details.

HTH,

Jon

Nicholas Sushkin wrote:
>> "MyPrincipal cannot be resolve to a type"
>>
>> when trying the following:
>>
>> ((MyPrincipal)request.getUserPrincipal()).getDisplayName();
>
> Yuri,
>
> Josso implemented their own Principal that has additional properties.
You
> may want to poke around http://www.josso.org/developer-howto.html
>



-
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: MyPrincipal cannot be resolved to a type

2006-06-29 Thread Jon Wingfield
Fair enough. We also extend RealmBase and just override 
hasRole(Principal principal, String role), which is the only place 
GenericPrincipal is referenced in RealmBase. We use our own storage 
mechanism for Roles.


http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/RealmBase.java

As to moving server/lib/* to common/lib/*. Sounds scary to me :)

Yuri de Wit wrote:

Yes, in the spirit of "dont reinvent the wheel" I was trying to leverage as
much as possible from the catalina BaseRealm, but that implementation
requires GenericPrincipal to get the list of roles associated with the
principal.

Thanks for the pointer.

Any issues moving all the jar from server/lib to common/lib for a quick
workaround?

On 6/29/06, Jon Wingfield <[EMAIL PROTECTED]> wrote:


In addition, custom Realms merely need to create instances of Principal.
There is no requirement for them to extend GenericPrincipal.

Our Realm classes are deployed to server/lib
Our extension to Principal is deployed to common/lib

See the thread "Is custom realm using user/role data in webapp
possible?" from 26th May for more details.

HTH,

Jon

Nicholas Sushkin wrote:
>> "MyPrincipal cannot be resolve to a type"
>>
>> when trying the following:
>>
>> ((MyPrincipal)request.getUserPrincipal()).getDisplayName();
>
> Yuri,
>
> Josso implemented their own Principal that has additional properties.
You
> may want to poke around http://www.josso.org/developer-howto.html
>



-
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: Error while connecting to MySQL database

2006-06-29 Thread Gordon Smith
If Class.forName throws a null pointer exception, chances are it can't find
the driver because you have a Tomcat configuration problem or other
classpath-related problem relating to driver setup.  Please check out the
documentation on tomcat.apache.org for the details for your version of
Tomcat.

As an aside, please consult the MySQL documentation about setting a root
password and disabling unneeded accounts in the database.  You are leaving a
gaping security hole in your app by not establishing a root db pwd.  

Once you put a root pwd in place, there's no reason to share it in this
forum as long as you can connect by using that pwd from the MySQL client.

Hope this helps.

Cheers,
Gordon Smith

-Original Message-
From: navaneethan loganathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 7:57 PM
To: users@tomcat.apache.org
Subject: Error while connecting to MySQL database

Hi,

I am facing a problem with my Apache-Tomcat-MySQL installation.MyEnvironment
is as follows:
Redhat ES4(2.6.9-5.EL), Apache-Tomcat-5.5.15, MySQL 4.1.12, Java version
1.5.0_06, Apache-Tomcat connector ajp13,
mysql-connector-java-3.2.0-alpha-bin.jar.

After installation and configuration I am unable to connect to the database
through the application and getting the following exception in
catalina.outlog file.

java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)

However, I am able to browse my site perfectly with
http://localhost/index.jsp (the connector also configured perfectly, so that
I do not need to specify the port number in URL).
 I put the mysql-connector-java-3.2.0-alpha-bin.jar file in
$CATALINA_HOME/common/lib and also specified in CLASSPATH.

I am able to login to MySQL through command and access the database without
any problem.

My db.properties is as under:

# MySQL database access properties
db.driver = org.gjt.mm.mysql.Driver
db.url = jdbc:mysql://localhost:3306/testdb
db.user = root
db.pwd =
Any clue will be very much helpfull.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]



filter increase number of session

2006-06-29 Thread Enrico Giurin

Hi at all,
I have problem using filter in my web application under tomcat (tomcat 4.1 
on Windows 2k OS).
Client of the web application is an IVR (Interactive Voice Response) in the 
context of voice-xml application.
I have configured a filter in order to log all the request (included all the 
parameters) to my web application and I realize that tomcat makes a new 
session for every request to a URI of my web application.
So, especially if I set a high value for session timeout, when I have a 
discrete number of call in the same time, the number of active session 
increases vastly.
If I disable the filter that problem doesn't occur anymore and I have a 
single session for every phone call.


I am sure that it's not a problem of the filter cause if I simulate the load 
web test with jmeter I haven't this problem, that is, I have a single 
session for every sequence of http request.


I think that the problem is how the client (IVR) of my web application keeps 
the session (cookies or url rewriting), but this behaviour is quite strange, 
why I have this problem only if I use IVR and filter togheter?


Any suggestion?

Thanks,
Enrico. 

Chiacchiera con i tuoi amici in tempo reale! 
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


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



AW: Error while connecting to MySQL database

2006-06-29 Thread KHZ (SAW)
Hi Navaneeth.

Check whether you've an XML file according to your web app in the
conf/Catalina/ directory.

When removing the elder web app this file is also removed.

Regards,Karl-Heinz.


-Ursprüngliche Nachricht-
Von: Gordon Smith [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 29. Juni 2006 15:51
An: 'Tomcat Users List'
Betreff: RE: Error while connecting to MySQL database

If Class.forName throws a null pointer exception, chances are it can't find
the driver because you have a Tomcat configuration problem or other
classpath-related problem relating to driver setup.  Please check out the
documentation on tomcat.apache.org for the details for your version of
Tomcat.

As an aside, please consult the MySQL documentation about setting a root
password and disabling unneeded accounts in the database.  You are leaving a
gaping security hole in your app by not establishing a root db pwd.  

Once you put a root pwd in place, there's no reason to share it in this
forum as long as you can connect by using that pwd from the MySQL client.

Hope this helps.

Cheers,
Gordon Smith

-Original Message-
From: navaneethan loganathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 7:57 PM
To: users@tomcat.apache.org
Subject: Error while connecting to MySQL database

Hi,

I am facing a problem with my Apache-Tomcat-MySQL installation.MyEnvironment
is as follows:
Redhat ES4(2.6.9-5.EL), Apache-Tomcat-5.5.15, MySQL 4.1.12, Java version
1.5.0_06, Apache-Tomcat connector ajp13,
mysql-connector-java-3.2.0-alpha-bin.jar.

After installation and configuration I am unable to connect to the database
through the application and getting the following exception in
catalina.outlog file.

java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)

However, I am able to browse my site perfectly with
http://localhost/index.jsp (the connector also configured perfectly, so that
I do not need to specify the port number in URL).
 I put the mysql-connector-java-3.2.0-alpha-bin.jar file in
$CATALINA_HOME/common/lib and also specified in CLASSPATH.

I am able to login to MySQL through command and access the database without
any problem.

My db.properties is as under:

# MySQL database access properties
db.driver = org.gjt.mm.mysql.Driver
db.url = jdbc:mysql://localhost:3306/testdb
db.user = root
db.pwd =
Any clue will be very much helpfull.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]




-
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: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

2006-06-29 Thread Jay Burgess
Sorry, but I have no idea what that means.  Have you checked Bugzilla to see if
there's an outstanding issue with SSL and this version of Tomcat? 
Unfortunately, we're using TC 5.0.19, so I don't have any experience with TC 
5.5.

Good luck.  And maybe someone else will jump in with some guidance.

Jay
http://www.vtgroup.com/
 

-Original Message-
From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 5:00 PM
To: Tomcat Users List
Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Ah!  When I added debug="9" this appears in stdout.log:

Exception in thread "http-8443-1"
java.lang.IllegalMonitorStateException: current thread not owner
at java.lang.Object.notifyAll(Native Method)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1216)
at java.lang.Thread.run(Thread.java:595)

Now... any ideas what to do (!) ??

Thanks!!
Erik

- Original Message - 
From: "Jay Burgess" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, June 28, 2006 2:28 PM
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat


> I'm not an expert in this, but I thought I'd compare your setup with our 
> working
> setup and see if I could spot any differences. A couple of observations:
>
> * Have you tried using a keystoreFile location that doesn't contain 
> spaces?
> I've gotten bitten in other apps where a space in the path isn't handled 
> correctly.
>
> * Do you have lines like the following in stdout.log?
>
>  INFO: Initializing Coyote HTTP/1.1 on port 443
>  INFO: Starting Coyote HTTP/1.1 on port 443
>
> * I've also got debug="9" set in my  definition, but I'm not 
> sure if
> that really adds any logging or not.
>
> Jay
> http://www.vtgroup.com/
>
>
> -Original Message-
> From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 28, 2006 2:12 PM
> To: Tomcat Users List
> Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat
>
> Hi, its the default connector statement in server.xml, but I've tried 
> adding
> the arguments: keystoreFile, keystorePass, keystoreType.
>
>  minSpareThreads="25" maxSpareThreads="75" enableLookups="false"
> disableUploadTimeout="true" acceptCount="100" scheme="https"
> secure="true" clientAuth="false" sslProtocol="TLS"
> keystoreFile="C:\Documents and Settings\Administrator\.keystore"
> keystorePass="changeit" keystoreType="JKS" />
>
> Thanks!
> E
>
> - Original Message - 
> From: "Jay Burgess" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, June 28, 2006 1:55 PM
> Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat
>
>
>> Can you include your  definition so we can take a look?
>>
>> Jay
>> http://www.vtgroup.com/
>>
>>
>> -Original Message-
>> From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, June 28, 2006 1:48 PM
>> To: Tomcat Users List
>> Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat
>>
>> Hi,
>>
>> Someone asked that I try Firefox to see if it was a certificate issue 
>> with
>> MSIE.  I'm still having the same issue with Firefox: no response at all
>> from
>> Tomcat 5.5.17 over the HTTPS connector.  HTTP is fine.  Netstat shows
>> established connection by TCP/IP, just no response from TC.
>>
>> I've tried:
>> changing ports between 443 and 8443,
>> explicit path for .keystore,
>> switching from TLS to SSL,
>> explicit keystore type (JKS),
>> explicit keystore password (changeit),
>>
>> any more ideas?
>>
>> Thanks
>> E
>>
>>
>> - Original Message - 
>> From: "Erik Brakke" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Friday, June 23, 2006 2:52 PM
>> Subject: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat
>>
>>
>>> Hi,
>>>
>>> I have set up standalone Tomcat 5.5.17 on Windows 2000 + J2EE 5 JDK  and
>>> get the default ROOT webapp.  I cannot access the ROOT webapp  using
>>> HTTPS.
>>>
>>> I set up SSL using the HOW-TO: generate a self-signed JKS .keystore 
>>> file
>>> and enabled the HTTPS connector in server.xml.
>>>
>>> I'll open https://localhost:8443 in my browser, it connects (I can see
>>> it
>>> established with netstat), the browser states it is opening the  page,
>>> but
>>> Tomcat does not respond, I do not get a certificate warning  or the ROOT
>>> webapp.
>>>
>>> I can't find any errors in /logs.  The access log shows activity on 
>>> HTTP
>>> but nothings shows for HTTPS.
>>>
>>> I have tried changing ports between 443 and 8443,
>>> tried explicit path for .keystore,
>>> tried switching from TLS to SSL.
>>>
>>> Any ideas?  I tried upping logging to debug in server.xml but still no
>>> error messages.
>>>
>>> THANKS!!
>>> Erik
>>>
>>>
>>> -
>>> 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

Re: filter increase number of session

2006-06-29 Thread Leon Rosenberg

do you have something like
HttpSession session = ((HttpServletRequest)req).getSession() in your
filter code?

leon


On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:

Hi at all,
I have problem using filter in my web application under tomcat (tomcat 4.1
on Windows 2k OS).
Client of the web application is an IVR (Interactive Voice Response) in the
context of voice-xml application.
I have configured a filter in order to log all the request (included all the
parameters) to my web application and I realize that tomcat makes a new
session for every request to a URI of my web application.
So, especially if I set a high value for session timeout, when I have a
discrete number of call in the same time, the number of active session
increases vastly.
If I disable the filter that problem doesn't occur anymore and I have a
single session for every phone call.

I am sure that it's not a problem of the filter cause if I simulate the load
web test with jmeter I haven't this problem, that is, I have a single
session for every sequence of http request.

I think that the problem is how the client (IVR) of my web application keeps
the session (cookies or url rewriting), but this behaviour is quite strange,
why I have this problem only if I use IVR and filter togheter?

Any suggestion?

Thanks,
Enrico.

Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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: Error while connecting to M ySQL database

2006-06-29 Thread Kyle Wu

# MySQL database access properties
db.driver = org.gjt.mm.mysql.Driver
db.url = jdbc:mysql://localhost:3306/testdb
db.user = root

well, I guess you should specify "db.driver" attribute as 

db.driver = com.mysql.jdbc.Driver 

for value "org.gjt.mm.mysql.Driver" is obsoleted...

anyway,  the Connector-J's doc would be handy help

Gordon Smith <[EMAIL PROTECTED]> 写道: If Class.forName throws a null pointer 
exception, chances are it can't find
the driver because you have a Tomcat configuration problem or other
classpath-related problem relating to driver setup.  Please check out the
documentation on tomcat.apache.org for the details for your version of
Tomcat.

As an aside, please consult the MySQL documentation about setting a root
password and disabling unneeded accounts in the database.  You are leaving a
gaping security hole in your app by not establishing a root db pwd.  

Once you put a root pwd in place, there's no reason to share it in this
forum as long as you can connect by using that pwd from the MySQL client.

Hope this helps.

Cheers,
Gordon Smith

-Original Message-
From: navaneethan loganathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 7:57 PM
To: users@tomcat.apache.org
Subject: Error while connecting to MySQL database

Hi,

I am facing a problem with my Apache-Tomcat-MySQL installation.MyEnvironment
is as follows:
Redhat ES4(2.6.9-5.EL), Apache-Tomcat-5.5.15, MySQL 4.1.12, Java version
1.5.0_06, Apache-Tomcat connector ajp13,
mysql-connector-java-3.2.0-alpha-bin.jar.

After installation and configuration I am unable to connect to the database
through the application and getting the following exception in
catalina.outlog file.

java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)

However, I am able to browse my site perfectly with
http://localhost/index.jsp (the connector also configured perfectly, so that
I do not need to specify the port number in URL).
 I put the mysql-connector-java-3.2.0-alpha-bin.jar file in
$CATALINA_HOME/common/lib and also specified in CLASSPATH.

I am able to login to MySQL through command and access the database without
any problem.

My db.properties is as under:

# MySQL database access properties
db.driver = org.gjt.mm.mysql.Driver
db.url = jdbc:mysql://localhost:3306/testdb
db.user = root
db.pwd =
Any clue will be very much helpfull.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]




-
 Mp3疯狂搜-新歌热歌高速下   

Re: filter increase number of session

2006-06-29 Thread David Delbecq

could we see the code of this filter?

Enrico Giurin wrote:

Hi at all,
I have problem using filter in my web application under tomcat (tomcat 
4.1 on Windows 2k OS).
Client of the web application is an IVR (Interactive Voice Response) 
in the context of voice-xml application.
I have configured a filter in order to log all the request (included 
all the parameters) to my web application and I realize that tomcat 
makes a new session for every request to a URI of my web application.
So, especially if I set a high value for session timeout, when I have 
a discrete number of call in the same time, the number of active 
session increases vastly.
If I disable the filter that problem doesn't occur anymore and I have 
a single session for every phone call.


I am sure that it's not a problem of the filter cause if I simulate 
the load web test with jmeter I haven't this problem, that is, I have 
a single session for every sequence of http request.


I think that the problem is how the client (IVR) of my web application 
keeps the session (cookies or url rewriting), but this behaviour is 
quite strange, why I have this problem only if I use IVR and filter 
togheter?


Any suggestion?

Thanks,
Enrico.
Chiacchiera con i tuoi amici in tempo reale! 
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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: filter increase number of session

2006-06-29 Thread Enrico Giurin

Yes I have that,
I know that in this way if I hadn't a session tomcat makes new one, but If I 
had one I keep the old session.


So why for every request I have a new session on the server, and why only 
with IVR client and not using Jmeter like client?


Thanks,
Enrico.
- Original Message - 
From: "Leon Rosenberg" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 4:05 PM
Subject: Re: filter increase number of session



do you have something like
HttpSession session = ((HttpServletRequest)req).getSession() in your
filter code?

leon


On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:

Hi at all,
I have problem using filter in my web application under tomcat (tomcat 
4.1

on Windows 2k OS).
Client of the web application is an IVR (Interactive Voice Response) in 
the

context of voice-xml application.
I have configured a filter in order to log all the request (included all 
the

parameters) to my web application and I realize that tomcat makes a new
session for every request to a URI of my web application.
So, especially if I set a high value for session timeout, when I have a
discrete number of call in the same time, the number of active session
increases vastly.
If I disable the filter that problem doesn't occur anymore and I have a
single session for every phone call.

I am sure that it's not a problem of the filter cause if I simulate the 
load

web test with jmeter I haven't this problem, that is, I have a single
session for every sequence of http request.

I think that the problem is how the client (IVR) of my web application 
keeps
the session (cookies or url rewriting), but this behaviour is quite 
strange,

why I have this problem only if I use IVR and filter togheter?

Any suggestion?

Thanks,
Enrico.

Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28/06/2006




Chiacchiera con i tuoi amici in tempo reale! 
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-
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: filter increase number of session

2006-06-29 Thread David Delbecq
Looking at code of filter you sent me, i see nothing strange, except 
perhaps for the getSession. Do you have the IVR server code? Are ou sure 
it is using the container session? If not, that may mean the client does 
not care about the sessionid, and the server does not use container 
session.  The fact it does not create this with jmeter is probably 
either because you activate cookies handling in jmeter or gave it an url 
containing a sessionid.


Try in your filter to print the cookies client sent and the full request 
url, i bet a few cents the IVR client is neither sending a session 
cookie, neither providing a rewritten url.


David Delbecq

Enrico Giurin wrote:

Yes I have that,
I know that in this way if I hadn't a session tomcat makes new one, 
but If I had one I keep the old session.


So why for every request I have a new session on the server, and why 
only with IVR client and not using Jmeter like client?


Thanks,
Enrico.
- Original Message - From: "Leon Rosenberg" 
<[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 4:05 PM
Subject: Re: filter increase number of session



do you have something like
HttpSession session = ((HttpServletRequest)req).getSession() in your
filter code?

leon


On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:

Hi at all,
I have problem using filter in my web application under tomcat 
(tomcat 4.1

on Windows 2k OS).
Client of the web application is an IVR (Interactive Voice Response) 
in the

context of voice-xml application.
I have configured a filter in order to log all the request (included 
all the

parameters) to my web application and I realize that tomcat makes a new
session for every request to a URI of my web application.
So, especially if I set a high value for session timeout, when I have a
discrete number of call in the same time, the number of active session
increases vastly.
If I disable the filter that problem doesn't occur anymore and I have a
single session for every phone call.

I am sure that it's not a problem of the filter cause if I simulate 
the load

web test with jmeter I haven't this problem, that is, I have a single
session for every sequence of http request.

I think that the problem is how the client (IVR) of my web 
application keeps
the session (cookies or url rewriting), but this behaviour is quite 
strange,

why I have this problem only if I use IVR and filter togheter?

Any suggestion?

Thanks,
Enrico.

Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 
28/06/2006





Chiacchiera con i tuoi amici in tempo reale! 
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

2006-06-29 Thread Holst, Martina
Hi Eric, I may be mistaken but  

> keystoreFile="C:\Documents and Settings\Administrator\.keystore"
> keystorePass="changeit" keystoreType="JKS" />

looks to me as if you are trying to configure a JSSE keystore. The error
message referring to org.apache.tomcat.util.net.AprEndpoint suggests to
me that your Tomcat is configured to use the APR, and then Tomcat is
going to use OpenSSL - the configuration for OpenSSL is different (see
http://tomcat.apache.org/tomcat-5.5-doc/apr.html).

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 16:03
To: users@tomcat.apache.org
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Sorry, but I have no idea what that means.  Have you checked Bugzilla to
see if there's an outstanding issue with SSL and this version of Tomcat?

Unfortunately, we're using TC 5.0.19, so I don't have any experience
with TC 5.5.

Good luck.  And maybe someone else will jump in with some guidance.

Jay
http://www.vtgroup.com/
 

-Original Message-
From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 5:00 PM
To: Tomcat Users List
Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Ah!  When I added debug="9" this appears in stdout.log:

Exception in thread "http-8443-1"
java.lang.IllegalMonitorStateException: current thread not owner at
java.lang.Object.notifyAll(Native Method) at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1216)
at java.lang.Thread.run(Thread.java:595)

Now... any ideas what to do (!) ??

Thanks!!
Erik

- Original Message -
From: "Jay Burgess" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, June 28, 2006 2:28 PM
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat


> I'm not an expert in this, but I thought I'd compare your setup with
our 
> working
> setup and see if I could spot any differences. A couple of
observations:
>
> * Have you tried using a keystoreFile location that doesn't contain 
> spaces?
> I've gotten bitten in other apps where a space in the path isn't
handled 
> correctly.
>
> * Do you have lines like the following in stdout.log?
>
>  INFO: Initializing Coyote HTTP/1.1 on port 443
>  INFO: Starting Coyote HTTP/1.1 on port 443
>
> * I've also got debug="9" set in my  definition, but I'm
not 
> sure if
> that really adds any logging or not.
>
> Jay
> http://www.vtgroup.com/
>
>
> -Original Message-
> From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 28, 2006 2:12 PM
> To: Tomcat Users List
> Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat
>
> Hi, its the default connector statement in server.xml, but I've tried 
> adding
> the arguments: keystoreFile, keystorePass, keystoreType.
>
>  minSpareThreads="25" maxSpareThreads="75" enableLookups="false"
> disableUploadTimeout="true" acceptCount="100" scheme="https"
> secure="true" clientAuth="false" sslProtocol="TLS"
> keystoreFile="C:\Documents and Settings\Administrator\.keystore"
> keystorePass="changeit" keystoreType="JKS" />
>
> Thanks!
> E
>
> - Original Message - 
> From: "Jay Burgess" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, June 28, 2006 1:55 PM
> Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat
>
>
>> Can you include your  definition so we can take a look?
>>
>> Jay
>> http://www.vtgroup.com/
>>
>>
>> -Original Message-
>> From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, June 28, 2006 1:48 PM
>> To: Tomcat Users List
>> Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from
Tomcat
>>
>> Hi,
>>
>> Someone asked that I try Firefox to see if it was a certificate issue

>> with
>> MSIE.  I'm still having the same issue with Firefox: no response at
all
>> from
>> Tomcat 5.5.17 over the HTTPS connector.  HTTP is fine.  Netstat shows
>> established connection by TCP/IP, just no response from TC.
>>
>> I've tried:
>> changing ports between 443 and 8443,
>> explicit path for .keystore,
>> switching from TLS to SSL,
>> explicit keystore type (JKS),
>> explicit keystore password (changeit),
>>
>> any more ideas?
>>
>> Thanks
>> E
>>
>>
>> - Original Message - 
>> From: "Erik Brakke" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Friday, June 23, 2006 2:52 PM
>> Subject: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat
>>
>>
>>> Hi,
>>>
>>> I have set up standalone Tomcat 5.5.17 on Windows 2000 + J2EE 5 JDK
and
>>> get the default ROOT webapp.  I cannot access the ROOT webapp  using
>>> HTTPS.
>>>
>>> I set up SSL using the HOW-TO: generate a self-signed JKS .keystore 
>>> file
>>> and enabled the HTTPS connector in server.xml.
>>>
>>> I'll open https://localhost:8443 in my browser, it connects (I can
see
>>> it
>>> established with netstat), the browser states it is opening the
page,
>>> but
>>> Tomcat does not respond, I do not get a certificate warning  or the
ROOT
>>> webapp.
>>>
>>> I can't find any errors in 

Re: filter increase number of session

2006-06-29 Thread Pid
If you getSession() Tomcat looks for a session, and creates a new one if
it can't find one.

It looks for a cookie called JSESSIONID or a url variable ;jsessionid=.

If your voice app client can't handle cookies, and you have not URL
encoded each URL in the app, then a new session will be created each
time the filter processes a request.



David Delbecq wrote:
> Looking at code of filter you sent me, i see nothing strange, except
> perhaps for the getSession. Do you have the IVR server code? Are ou sure
> it is using the container session? If not, that may mean the client does
> not care about the sessionid, and the server does not use container
> session.  The fact it does not create this with jmeter is probably
> either because you activate cookies handling in jmeter or gave it an url
> containing a sessionid.
> 
> Try in your filter to print the cookies client sent and the full request
> url, i bet a few cents the IVR client is neither sending a session
> cookie, neither providing a rewritten url.
> 
> David Delbecq
> 
> Enrico Giurin wrote:
>> Yes I have that,
>> I know that in this way if I hadn't a session tomcat makes new one,
>> but If I had one I keep the old session.
>>
>> So why for every request I have a new session on the server, and why
>> only with IVR client and not using Jmeter like client?
>>
>> Thanks,
>> Enrico.
>> - Original Message - From: "Leon Rosenberg"
>> <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" 
>> Sent: Thursday, June 29, 2006 4:05 PM
>> Subject: Re: filter increase number of session
>>
>>
>>> do you have something like
>>> HttpSession session = ((HttpServletRequest)req).getSession() in your
>>> filter code?
>>>
>>> leon
>>>
>>>
>>> On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
 Hi at all,
 I have problem using filter in my web application under tomcat
 (tomcat 4.1
 on Windows 2k OS).
 Client of the web application is an IVR (Interactive Voice Response)
 in the
 context of voice-xml application.
 I have configured a filter in order to log all the request (included
 all the
 parameters) to my web application and I realize that tomcat makes a new
 session for every request to a URI of my web application.
 So, especially if I set a high value for session timeout, when I have a
 discrete number of call in the same time, the number of active session
 increases vastly.
 If I disable the filter that problem doesn't occur anymore and I have a
 single session for every phone call.

 I am sure that it's not a problem of the filter cause if I simulate
 the load
 web test with jmeter I haven't this problem, that is, I have a single
 session for every sequence of http request.

 I think that the problem is how the client (IVR) of my web
 application keeps
 the session (cookies or url rewriting), but this behaviour is quite
 strange,
 why I have this problem only if I use IVR and filter togheter?

 Any suggestion?

 Thanks,
 Enrico.

 Chiacchiera con i tuoi amici in tempo reale!
  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

 -
 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]
>>>
>>>
>>>
>>> -- 
>>> No virus found in this incoming message.
>>> Checked by AVG Free Edition.
>>> Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date:
>>> 28/06/2006
>>>
>>>
>>
>> Chiacchiera con i tuoi amici in tempo reale!
>> http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
>> -
>> 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: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

2006-06-29 Thread Erik Matthew Brakke

Disabling APR did it!  Thanks for spotting that in the exception.

I knew APR meant using OpenSSL, but the documentation led me to believe it 
was disabled by default.


Thanks everyone!!
Erik

- Original Message - 
From: "Holst, Martina" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 9:41 AM
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat


Hi Eric, I may be mistaken but


keystoreFile="C:\Documents and Settings\Administrator\.keystore"
keystorePass="changeit" keystoreType="JKS" />


looks to me as if you are trying to configure a JSSE keystore. The error
message referring to org.apache.tomcat.util.net.AprEndpoint suggests to
me that your Tomcat is configured to use the APR, and then Tomcat is
going to use OpenSSL - the configuration for OpenSSL is different (see
http://tomcat.apache.org/tomcat-5.5-doc/apr.html).

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 16:03
To: users@tomcat.apache.org
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Sorry, but I have no idea what that means.  Have you checked Bugzilla to
see if there's an outstanding issue with SSL and this version of Tomcat?

Unfortunately, we're using TC 5.0.19, so I don't have any experience
with TC 5.5.

Good luck.  And maybe someone else will jump in with some guidance.

Jay
http://www.vtgroup.com/


-Original Message-
From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 5:00 PM
To: Tomcat Users List
Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Ah!  When I added debug="9" this appears in stdout.log:

Exception in thread "http-8443-1"
java.lang.IllegalMonitorStateException: current thread not owner at
java.lang.Object.notifyAll(Native Method) at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1216)
at java.lang.Thread.run(Thread.java:595)

Now... any ideas what to do (!) ??

Thanks!!
Erik

- Original Message -
From: "Jay Burgess" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, June 28, 2006 2:28 PM
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat



I'm not an expert in this, but I thought I'd compare your setup with

our

working
setup and see if I could spot any differences. A couple of

observations:


* Have you tried using a keystoreFile location that doesn't contain
spaces?
I've gotten bitten in other apps where a space in the path isn't

handled

correctly.

* Do you have lines like the following in stdout.log?

 INFO: Initializing Coyote HTTP/1.1 on port 443
 INFO: Starting Coyote HTTP/1.1 on port 443

* I've also got debug="9" set in my  definition, but I'm

not

sure if
that really adds any logging or not.

Jay
http://www.vtgroup.com/


-Original Message-
From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 2:12 PM
To: Tomcat Users List
Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Hi, its the default connector statement in server.xml, but I've tried
adding
the arguments: keystoreFile, keystorePass, keystoreType.



Thanks!
E

- Original Message - 
From: "Jay Burgess" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 28, 2006 1:55 PM
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat



Can you include your  definition so we can take a look?

Jay
http://www.vtgroup.com/


-Original Message-
From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 1:48 PM
To: Tomcat Users List
Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from

Tomcat


Hi,

Someone asked that I try Firefox to see if it was a certificate issue



with
MSIE.  I'm still having the same issue with Firefox: no response at

all

from
Tomcat 5.5.17 over the HTTPS connector.  HTTP is fine.  Netstat shows
established connection by TCP/IP, just no response from TC.

I've tried:
changing ports between 443 and 8443,
explicit path for .keystore,
switching from TLS to SSL,
explicit keystore type (JKS),
explicit keystore password (changeit),

any more ideas?

Thanks
E


- Original Message - 
From: "Erik Brakke" <[EMAIL PROTECTED]>

To: 
Sent: Friday, June 23, 2006 2:52 PM
Subject: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat



Hi,

I have set up standalone Tomcat 5.5.17 on Windows 2000 + J2EE 5 JDK

and

get the default ROOT webapp.  I cannot access the ROOT webapp  using
HTTPS.

I set up SSL using the HOW-TO: generate a self-signed JKS .keystore
file
and enabled the HTTPS connector in server.xml.

I'll open https://localhost:8443 in my browser, it connects (I can

see

it
established with netstat), the browser states it is opening the

page,

but
Tomcat does not respond, I do not get a certificate warning  or the

ROOT

webapp.

I can't find any errors in /logs.  The access log shows activity on
HTTP
but nothings shows for HTTPS.

I have tried changing ports between 443 and 8443,
tr

cgi-bin doesn't seem to work

2006-06-29 Thread Sarah Parrott

Hi,

I'm trying to enable cgi on tomcat 5.5. I've uncommented the servlet and
servlet mappings from the web.xml and renamed the server/lib/servelts-
cgi.jar like it says in the howto, and then reinstalled tomcat.

There didn't seem to be a cgi directory so I've put one in. It is at

$CATALINA_HOME/webapps/ROOT/WEB-INF/cgi

and put the program I want to run (Mapserver. The file is just called
mapserv.) in that directory.

When I go to http://localhost:8080/cgi-bin/mapserv I just get a blank page.
No errors and not what I'm expecting to get. I've tried restarting tomcat,
and playing about with the URL but I either get an error or the same blank
page.

Any ideas what I'm doing wrong?

I'm running Suse 10.1.

Thanks in advance,
Sparrott


exec'ing ksh from Servlet

2006-06-29 Thread Martin Gainty
Good Afternoon All-

I am attempting to exec a kshell from a Servlet
I execute it fine but do not see any output or error messages from catalina.out 
or my debug file (a redirect of output inside the kshell)
In other words I have no clue as to what this kshell script is actually doing
Any Suggestions to find out what is happening???

Many Thanks,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.




Re: cgi-bin doesn't seem to work

2006-06-29 Thread Hassan Schroeder

On 6/29/06, Sarah Parrott <[EMAIL PROTECTED]> wrote:


 I'm trying to enable cgi on tomcat 5.5. I've uncommented the servlet and
servlet mappings from the web.xml and renamed the server/lib/servelts-
cgi.jar like it says in the howto, and then reinstalled tomcat.


?! "...and then reinstalled it"?

Wouldn't that wipe out your configuration changes?

--
Hassan Schroeder  [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: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg

I suppose you use Runtime.exec() ?
If yes, you should grab the process output and error streams from the
resulting Process class:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html

regards
Leon

On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

Good Afternoon All-

I am attempting to exec a kshell from a Servlet
I execute it fine but do not see any output or error messages from catalina.out 
or my debug file (a redirect of output inside the kshell)
In other words I have no clue as to what this kshell script is actually doing
Any Suggestions to find out what is happening???

Many Thanks,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.






-
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: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg

Alas, the getInputStream and getOutputStream methods are mixed up, the
getInputStream method gives you the stdout of the process and the
getOutputStream - the stdin.
Leon

On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:

I suppose you use Runtime.exec() ?
If yes, you should grab the process output and error streams from the
resulting Process class:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html

regards
Leon

On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Good Afternoon All-
>
> I am attempting to exec a kshell from a Servlet
> I execute it fine but do not see any output or error messages from 
catalina.out or my debug file (a redirect of output inside the kshell)
> In other words I have no clue as to what this kshell script is actually doing
> Any Suggestions to find out what is happening???
>
> Many Thanks,
> Martin --
> *
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
>
>
>



-
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: filter increase number of session

2006-06-29 Thread Leon Rosenberg

On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:

Yes I have that,
I know that in this way if I hadn't a session tomcat makes new one, but If I
had one I keep the old session.

So why for every request I have a new session on the server, and why only
with IVR client and not using Jmeter like client?


because JMeter can handle session cookies? :-)
replace getSession with getSession(false) (and check for null) to
prevent tomat from creating new sessions.
regards
Leon



Thanks,
Enrico.
- Original Message -
From: "Leon Rosenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 4:05 PM
Subject: Re: filter increase number of session


> do you have something like
> HttpSession session = ((HttpServletRequest)req).getSession() in your
> filter code?
>
> leon
>
>
> On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
>> Hi at all,
>> I have problem using filter in my web application under tomcat (tomcat
>> 4.1
>> on Windows 2k OS).
>> Client of the web application is an IVR (Interactive Voice Response) in
>> the
>> context of voice-xml application.
>> I have configured a filter in order to log all the request (included all
>> the
>> parameters) to my web application and I realize that tomcat makes a new
>> session for every request to a URI of my web application.
>> So, especially if I set a high value for session timeout, when I have a
>> discrete number of call in the same time, the number of active session
>> increases vastly.
>> If I disable the filter that problem doesn't occur anymore and I have a
>> single session for every phone call.
>>
>> I am sure that it's not a problem of the filter cause if I simulate the
>> load
>> web test with jmeter I haven't this problem, that is, I have a single
>> session for every sequence of http request.
>>
>> I think that the problem is how the client (IVR) of my web application
>> keeps
>> the session (cookies or url rewriting), but this behaviour is quite
>> strange,
>> why I have this problem only if I use IVR and filter togheter?
>>
>> Any suggestion?
>>
>> Thanks,
>> Enrico.
>>
>> Chiacchiera con i tuoi amici in tempo reale!
>>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
>>
>> -
>> 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]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28/06/2006
>
>

Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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: exec'ing ksh from Servlet

2006-06-29 Thread David Smith
How is that messed up?  Makes perfect sense from the perspective of the 
calling java code and is consistent with input and output streams for 
files, network connections, etc., ...


--David

Leon Rosenberg wrote:


Alas, the getInputStream and getOutputStream methods are mixed up, the
getInputStream method gives you the stdout of the process and the
getOutputStream - the stdin.
Leon

On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:


I suppose you use Runtime.exec() ?
If yes, you should grab the process output and error streams from the
resulting Process class:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html

regards
Leon

On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Good Afternoon All-
>
> I am attempting to exec a kshell from a Servlet
> I execute it fine but do not see any output or error messages from 
catalina.out or my debug file (a redirect of output inside the kshell)
> In other words I have no clue as to what this kshell script is 
actually doing

> Any Suggestions to find out what is happening???
>
> Many Thanks,
> Martin --
> *
> This email message and any files transmitted with it contain 
confidential
> information intended only for the person(s) to whom this email 
message is
> addressed.  If you have received this email message in error, 
please notify

> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
>
>
>



-
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: filter increase number of session

2006-06-29 Thread Enrico Giurin
Yes maybe yours is the best solution, but I have still the problem that I 
don't understand the different behaviuor.


Thanks,
Enrico.
- Original Message - 
From: "Leon Rosenberg" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 7:17 PM
Subject: Re: filter increase number of session



On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:

Yes I have that,
I know that in this way if I hadn't a session tomcat makes new one, but 
If I

had one I keep the old session.

So why for every request I have a new session on the server, and why only
with IVR client and not using Jmeter like client?


because JMeter can handle session cookies? :-)
replace getSession with getSession(false) (and check for null) to
prevent tomat from creating new sessions.
regards
Leon



Thanks,
Enrico.
- Original Message -
From: "Leon Rosenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 4:05 PM
Subject: Re: filter increase number of session


> do you have something like
> HttpSession session = ((HttpServletRequest)req).getSession() in your
> filter code?
>
> leon
>
>
> On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
>> Hi at all,
>> I have problem using filter in my web application under tomcat (tomcat
>> 4.1
>> on Windows 2k OS).
>> Client of the web application is an IVR (Interactive Voice Response) 
>> in

>> the
>> context of voice-xml application.
>> I have configured a filter in order to log all the request (included 
>> all

>> the
>> parameters) to my web application and I realize that tomcat makes a 
>> new

>> session for every request to a URI of my web application.
>> So, especially if I set a high value for session timeout, when I have 
>> a

>> discrete number of call in the same time, the number of active session
>> increases vastly.
>> If I disable the filter that problem doesn't occur anymore and I have 
>> a

>> single session for every phone call.
>>
>> I am sure that it's not a problem of the filter cause if I simulate 
>> the

>> load
>> web test with jmeter I haven't this problem, that is, I have a single
>> session for every sequence of http request.
>>
>> I think that the problem is how the client (IVR) of my web application
>> keeps
>> the session (cookies or url rewriting), but this behaviour is quite
>> strange,
>> why I have this problem only if I use IVR and filter togheter?
>>
>> Any suggestion?
>>
>> Thanks,
>> Enrico.
>>
>> Chiacchiera con i tuoi amici in tempo reale!
>>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
>>
>> -
>> 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]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 
> 28/06/2006

>
>

Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28/06/2006




Chiacchiera con i tuoi amici in tempo reale! 
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


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



tomcat startup problem

2006-06-29 Thread IMRANKHAN

I am facing problem regarding tomcat startup.
I started tomcat, from its log file it seems that tomcat server is running
successfully
but i can't browse the tomcat homepage that is
http://206.225.93.187:8180(tomcat
index page) says page can't be displayed.

I came to find that tomcat5.pid is not created in /var/run/
which i suppose means tomcat process is not built/created.

I did not upload any application. But still tomcat index page can't be
displayed
tomcat log trace are as follows:
Jun 29, 2006 9:04:29 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9099
Jun 29, 2006 9:04:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1173 ms
Jun 29, 2006 9:04:29 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 29, 2006 9:04:29 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Jun 29, 2006 9:04:29 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 29, 2006 9:04:29 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Jun 29, 2006 9:04:29 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml
Jun 29, 2006 9:04:30 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Jun 29, 2006 9:04:30 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Jun 29, 2006 9:04:30 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Jun 29, 2006 9:04:32 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/balancer.xml
Jun 29, 2006 9:04:32 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/manager.xml
Jun 29, 2006 9:04:32 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:/usr/local/jakarta-tomcat-5.0.28/webapps/ROOT
Jun 29, 2006 9:04:32 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:/usr/local/jakarta-tomcat-5.0.28/webapps/jsp-examples
Jun 29, 2006 9:04:32 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from URL
file:/usr/local/jakarta-tomcat-5.0.28/webapps/servlets-examples
Jun 29, 2006 9:04:32 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:/usr/local/jakarta-tomcat-5.0.28/webapps/tomcat-docs
Jun 29, 2006 9:04:32 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:/usr/local/jakarta-tomcat-5.0.28/webapps/webdav
Jun 29, 2006 9:04:32 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9099
Jun 29, 2006 9:04:33 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 29, 2006 9:04:33 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/30 
config=/usr/local/jakarta-tomcat-5.0.28/conf/jk2.properties
Jun 29, 2006 9:04:33 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3591 ms


help me in resolving this issue 
Thanks
-- 
View this message in context: 
http://www.nabble.com/tomcat-startup-problem-tf1868642.html#a5106638
Sent from the Tomcat - User forum at Nabble.com.


-
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 startup problem

2006-06-29 Thread Edoardo Panfili

IMRANKHAN ha scritto:

I am facing problem regarding tomcat startup.
I started tomcat, from its log file it seems that tomcat server is running
successfully
but i can't browse the tomcat homepage that is
http://206.225.93.187:8180(tomcat
index page) says page can't be displayed.


sorry for my answer but are you sure that tomcat is listening at port 8180?


Edoardo
--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

-
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: filter increase number of session

2006-06-29 Thread Leon Rosenberg

On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:

Yes maybe yours is the best solution, but I have still the problem that I
don't understand the different behaviuor.



:-)
the grid for knowledge! the driving force behind each good developer!

use tcpdump to examine requests from both clients and determine the differences
leon


Thanks,
Enrico.
- Original Message -
From: "Leon Rosenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 7:17 PM
Subject: Re: filter increase number of session


> On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
>> Yes I have that,
>> I know that in this way if I hadn't a session tomcat makes new one, but
>> If I
>> had one I keep the old session.
>>
>> So why for every request I have a new session on the server, and why only
>> with IVR client and not using Jmeter like client?
>
> because JMeter can handle session cookies? :-)
> replace getSession with getSession(false) (and check for null) to
> prevent tomat from creating new sessions.
> regards
> Leon
>
>>
>> Thanks,
>> Enrico.
>> - Original Message -
>> From: "Leon Rosenberg" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" 
>> Sent: Thursday, June 29, 2006 4:05 PM
>> Subject: Re: filter increase number of session
>>
>>
>> > do you have something like
>> > HttpSession session = ((HttpServletRequest)req).getSession() in your
>> > filter code?
>> >
>> > leon
>> >
>> >
>> > On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
>> >> Hi at all,
>> >> I have problem using filter in my web application under tomcat (tomcat
>> >> 4.1
>> >> on Windows 2k OS).
>> >> Client of the web application is an IVR (Interactive Voice Response)
>> >> in
>> >> the
>> >> context of voice-xml application.
>> >> I have configured a filter in order to log all the request (included
>> >> all
>> >> the
>> >> parameters) to my web application and I realize that tomcat makes a
>> >> new
>> >> session for every request to a URI of my web application.
>> >> So, especially if I set a high value for session timeout, when I have
>> >> a
>> >> discrete number of call in the same time, the number of active session
>> >> increases vastly.
>> >> If I disable the filter that problem doesn't occur anymore and I have
>> >> a
>> >> single session for every phone call.
>> >>
>> >> I am sure that it's not a problem of the filter cause if I simulate
>> >> the
>> >> load
>> >> web test with jmeter I haven't this problem, that is, I have a single
>> >> session for every sequence of http request.
>> >>
>> >> I think that the problem is how the client (IVR) of my web application
>> >> keeps
>> >> the session (cookies or url rewriting), but this behaviour is quite
>> >> strange,
>> >> why I have this problem only if I use IVR and filter togheter?
>> >>
>> >> Any suggestion?
>> >>
>> >> Thanks,
>> >> Enrico.
>> >>
>> >> Chiacchiera con i tuoi amici in tempo reale!
>> >>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
>> >>
>> >> -
>> >> 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]
>> >
>> >
>> >
>> > --
>> > No virus found in this incoming message.
>> > Checked by AVG Free Edition.
>> > Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date:
>> > 28/06/2006
>> >
>> >
>>
>> Chiacchiera con i tuoi amici in tempo reale!
>>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
>>
>> -
>> 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]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28/06/2006
>
>

Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

-
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 startup problem

2006-06-29 Thread MW Janssen
Starting Coyote HTTP/1.1 on http-9099 so 9099
 

-Oorspronkelijk bericht-
Van: Edoardo Panfili [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 29 juni 2006 19:39
Aan: Tomcat Users List
Onderwerp: Re: tomcat startup problem

IMRANKHAN ha scritto:
> I am facing problem regarding tomcat startup.
> I started tomcat, from its log file it seems that tomcat server is 
> running successfully but i can't browse the tomcat homepage that is 
> http://206.225.93.187:8180(tomcat index page) says page can't be 
> displayed.

sorry for my answer but are you sure that tomcat is listening at port 8180?


Edoardo
--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28-6-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28-6-2006
 


-
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: filter increase number of session

2006-06-29 Thread Leon Rosenberg

On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:

On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
> Yes maybe yours is the best solution, but I have still the problem that I
> don't understand the different behaviuor.
>

:-)
the grid for knowledge! the driving force behind each good developer!


s/grid/greed
Leon



use tcpdump to examine requests from both clients and determine the differences
leon

> Thanks,
> Enrico.
> - Original Message -
> From: "Leon Rosenberg" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Thursday, June 29, 2006 7:17 PM
> Subject: Re: filter increase number of session
>
>
> > On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
> >> Yes I have that,
> >> I know that in this way if I hadn't a session tomcat makes new one, but
> >> If I
> >> had one I keep the old session.
> >>
> >> So why for every request I have a new session on the server, and why only
> >> with IVR client and not using Jmeter like client?
> >
> > because JMeter can handle session cookies? :-)
> > replace getSession with getSession(false) (and check for null) to
> > prevent tomat from creating new sessions.
> > regards
> > Leon
> >
> >>
> >> Thanks,
> >> Enrico.
> >> - Original Message -
> >> From: "Leon Rosenberg" <[EMAIL PROTECTED]>
> >> To: "Tomcat Users List" 
> >> Sent: Thursday, June 29, 2006 4:05 PM
> >> Subject: Re: filter increase number of session
> >>
> >>
> >> > do you have something like
> >> > HttpSession session = ((HttpServletRequest)req).getSession() in your
> >> > filter code?
> >> >
> >> > leon
> >> >
> >> >
> >> > On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
> >> >> Hi at all,
> >> >> I have problem using filter in my web application under tomcat (tomcat
> >> >> 4.1
> >> >> on Windows 2k OS).
> >> >> Client of the web application is an IVR (Interactive Voice Response)
> >> >> in
> >> >> the
> >> >> context of voice-xml application.
> >> >> I have configured a filter in order to log all the request (included
> >> >> all
> >> >> the
> >> >> parameters) to my web application and I realize that tomcat makes a
> >> >> new
> >> >> session for every request to a URI of my web application.
> >> >> So, especially if I set a high value for session timeout, when I have
> >> >> a
> >> >> discrete number of call in the same time, the number of active session
> >> >> increases vastly.
> >> >> If I disable the filter that problem doesn't occur anymore and I have
> >> >> a
> >> >> single session for every phone call.
> >> >>
> >> >> I am sure that it's not a problem of the filter cause if I simulate
> >> >> the
> >> >> load
> >> >> web test with jmeter I haven't this problem, that is, I have a single
> >> >> session for every sequence of http request.
> >> >>
> >> >> I think that the problem is how the client (IVR) of my web application
> >> >> keeps
> >> >> the session (cookies or url rewriting), but this behaviour is quite
> >> >> strange,
> >> >> why I have this problem only if I use IVR and filter togheter?
> >> >>
> >> >> Any suggestion?
> >> >>
> >> >> Thanks,
> >> >> Enrico.
> >> >>
> >> >> Chiacchiera con i tuoi amici in tempo reale!
> >> >>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
> >> >>
> >> >> -
> >> >> 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]
> >> >
> >> >
> >> >
> >> > --
> >> > No virus found in this incoming message.
> >> > Checked by AVG Free Edition.
> >> > Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date:
> >> > 28/06/2006
> >> >
> >> >
> >>
> >> Chiacchiera con i tuoi amici in tempo reale!
> >>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
> >>
> >> -
> >> 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]
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28/06/2006
> >
> >
>
> Chiacchiera con i tuoi amici in tempo reale!
>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To

Re: exec'ing ksh from Servlet

2006-06-29 Thread Martin Gainty
I launch this process 
 p_Run_Mapper = Runtime.getRuntime().exec("usr/bin/ksh","my.ksh");
 while( p_Run_Mapper.waitFor() != 0 )
{
   System.out.println("Inside p_Run_Mapper.waitFor() waiting for normal 
exit..");
 }
 while( p_Run_Mapper.exitValue() !=0 )
 {
   System.out.println("Inside p_Run_Maper.exitValue() waiting for exitValue 
to return 0");
 }
exit..

so the servlet says the process runs thru to exit (completion) the process 
doesnt get hung up in waitFor or exitValue() != 0 while loops..
but alas I have no clue what ksh process is actually doing ..
???
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 1:24 PM
Subject: Re: exec'ing ksh from Servlet


> How is that messed up?  Makes perfect sense from the perspective of the 
> calling java code and is consistent with input and output streams for 
> files, network connections, etc., ...
> 
> --David
> 
> Leon Rosenberg wrote:
> 
>> Alas, the getInputStream and getOutputStream methods are mixed up, the
>> getInputStream method gives you the stdout of the process and the
>> getOutputStream - the stdin.
>> Leon
>>
>> On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
>>
>>> I suppose you use Runtime.exec() ?
>>> If yes, you should grab the process output and error streams from the
>>> resulting Process class:
>>>
>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html
>>>
>>> regards
>>> Leon
>>>
>>> On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>>> > Good Afternoon All-
>>> >
>>> > I am attempting to exec a kshell from a Servlet
>>> > I execute it fine but do not see any output or error messages from 
>>> catalina.out or my debug file (a redirect of output inside the kshell)
>>> > In other words I have no clue as to what this kshell script is 
>>> actually doing
>>> > Any Suggestions to find out what is happening???
>>> >
>>> > Many Thanks,
>>> > Martin --
>>> > *
>>> > This email message and any files transmitted with it contain 
>>> confidential
>>> > information intended only for the person(s) to whom this email 
>>> message is
>>> > addressed.  If you have received this email message in error, 
>>> please notify
>>> > the sender immediately by telephone or email and destroy the original
>>> > message without making a copy.  Thank you.
>>> >
>>> >
>>> >
>>> >
>>>
>>
>> -
>> 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: filter increase number of session

2006-06-29 Thread David Smith
There is also the RequestDumperValve which would list out all the 
request headers/parameters/cookies/etc. that tomcat is receiving.  See 
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html.


It does have a downside in that it locks you into the system's default 
encoding. :-(


--David

Leon Rosenberg wrote:


On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:


On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
> Yes maybe yours is the best solution, but I have still the problem 
that I

> don't understand the different behaviuor.
>

:-)
the grid for knowledge! the driving force behind each good developer!



s/grid/greed
Leon



use tcpdump to examine requests from both clients and determine the 
differences

leon

> Thanks,
> Enrico.
> - Original Message -
> From: "Leon Rosenberg" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Thursday, June 29, 2006 7:17 PM
> Subject: Re: filter increase number of session
>
>
> > On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
> >> Yes I have that,
> >> I know that in this way if I hadn't a session tomcat makes new 
one, but

> >> If I
> >> had one I keep the old session.
> >>
> >> So why for every request I have a new session on the server, and 
why only

> >> with IVR client and not using Jmeter like client?
> >
> > because JMeter can handle session cookies? :-)
> > replace getSession with getSession(false) (and check for null) to
> > prevent tomat from creating new sessions.
> > regards
> > Leon
> >
> >>
> >> Thanks,
> >> Enrico.
> >> - Original Message -
> >> From: "Leon Rosenberg" <[EMAIL PROTECTED]>
> >> To: "Tomcat Users List" 
> >> Sent: Thursday, June 29, 2006 4:05 PM
> >> Subject: Re: filter increase number of session
> >>
> >>
> >> > do you have something like
> >> > HttpSession session = ((HttpServletRequest)req).getSession() 
in your

> >> > filter code?
> >> >
> >> > leon
> >> >
> >> >
> >> > On 6/29/06, Enrico Giurin <[EMAIL PROTECTED]> wrote:
> >> >> Hi at all,
> >> >> I have problem using filter in my web application under 
tomcat (tomcat

> >> >> 4.1
> >> >> on Windows 2k OS).
> >> >> Client of the web application is an IVR (Interactive Voice 
Response)

> >> >> in
> >> >> the
> >> >> context of voice-xml application.
> >> >> I have configured a filter in order to log all the request 
(included

> >> >> all
> >> >> the
> >> >> parameters) to my web application and I realize that tomcat 
makes a

> >> >> new
> >> >> session for every request to a URI of my web application.
> >> >> So, especially if I set a high value for session timeout, 
when I have

> >> >> a
> >> >> discrete number of call in the same time, the number of 
active session

> >> >> increases vastly.
> >> >> If I disable the filter that problem doesn't occur anymore 
and I have

> >> >> a
> >> >> single session for every phone call.
> >> >>
> >> >> I am sure that it's not a problem of the filter cause if I 
simulate

> >> >> the
> >> >> load
> >> >> web test with jmeter I haven't this problem, that is, I have 
a single

> >> >> session for every sequence of http request.
> >> >>
> >> >> I think that the problem is how the client (IVR) of my web 
application

> >> >> keeps
> >> >> the session (cookies or url rewriting), but this behaviour is 
quite

> >> >> strange,
> >> >> why I have this problem only if I use IVR and filter togheter?
> >> >>
> >> >> Any suggestion?
> >> >>
> >> >> Thanks,
> >> >> Enrico.
> >> >>
> >> >> Chiacchiera con i tuoi amici in tempo reale!
> >> >>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
> >> >>
> >> >> 
-

> >> >> 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]
> >> >
> >> >
> >> >
> >> > --
> >> > No virus found in this incoming message.
> >> > Checked by AVG Free Edition.
> >> > Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date:
> >> > 28/06/2006
> >> >
> >> >
> >>
> >> Chiacchiera con i tuoi amici in tempo reale!
> >>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
> >>
> >> 
-

> >> 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]
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Che

Re: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg

On 6/29/06, David Smith <[EMAIL PROTECTED]> wrote:

How is that messed up?  Makes perfect sense from the perspective of the
calling java code and is consistent with input and output streams for
files, network connections, etc., ...


It would make perfect sense (imho), but than, whats with the error
stream? If getErrorStream method gives you the stderr, I expect
getInputStream to give you the stdin and getOutputStream to give you
stdout. But if getInputStream gives you the stdout I'd expect the
getErrorStream method to be named something like
getErrorInputStream...

It's mixing ontologies, if you refer to standart java naming, than
getErrorStream is misnamed, if you refer to stdin, stdout, stderr than
mapping stdin to getOutputStream etc is not very consistent. However,
once you know it, you can handle it, but sofar all people I talked to
were misleaded by names and therefor I warned Martin to save him some
time.

Leon

On 6/29/06, David Smith <[EMAIL PROTECTED]> wrote:

How is that messed up?  Makes perfect sense from the perspective of the
calling java code and is consistent with input and output streams for
files, network connections, etc., ...

--David

Leon Rosenberg wrote:

> Alas, the getInputStream and getOutputStream methods are mixed up, the
> getInputStream method gives you the stdout of the process and the
> getOutputStream - the stdin.
> Leon
>
> On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
>
>> I suppose you use Runtime.exec() ?
>> If yes, you should grab the process output and error streams from the
>> resulting Process class:
>>
>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html
>>
>> regards
>> Leon
>>
>> On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>> > Good Afternoon All-
>> >
>> > I am attempting to exec a kshell from a Servlet
>> > I execute it fine but do not see any output or error messages from
>> catalina.out or my debug file (a redirect of output inside the kshell)
>> > In other words I have no clue as to what this kshell script is
>> actually doing
>> > Any Suggestions to find out what is happening???
>> >
>> > Many Thanks,
>> > Martin --
>> > *
>> > This email message and any files transmitted with it contain
>> confidential
>> > information intended only for the person(s) to whom this email
>> message is
>> > addressed.  If you have received this email message in error,
>> please notify
>> > the sender immediately by telephone or email and destroy the original
>> > message without making a copy.  Thank you.
>> >
>> >
>> >
>> >
>>
>
> -
> 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: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg

On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

I launch this process


untested, but shows the way to go:


 p_Run_Mapper = Runtime.getRuntime().exec("usr/bin/ksh","my.ksh");

   InputStream processOutputStream = new
BufferedInputStream(p_Run_Mapper.getInputStream());

 while( p_Run_Mapper.waitFor() != 0 )
{
   System.out.println("Inside p_Run_Mapper.waitFor() waiting for normal 
exit..");
 }
 while( p_Run_Mapper.exitValue() !=0 )
 {
   System.out.println("Inside p_Run_Maper.exitValue() waiting for exitValue to 
return 0");
 }


byte[] scriptResult = new byte[processOutputStream.available()];
processOutputStream.read(scriptResult);
System.out.println("Process reported:\n"+new String(scriptResult));

note that you should actually read the stream during the execution,
since if the stdout buffer of the process will run full the process
will halt.

regads
Leon


exit..

so the servlet says the process runs thru to exit (completion) the process 
doesnt get hung up in waitFor or exitValue() != 0 while loops..
but alas I have no clue what ksh process is actually doing ..
???
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, June 29, 2006 1:24 PM
Subject: Re: exec'ing ksh from Servlet


> How is that messed up?  Makes perfect sense from the perspective of the
> calling java code and is consistent with input and output streams for
> files, network connections, etc., ...
>
> --David
>
> Leon Rosenberg wrote:
>
>> Alas, the getInputStream and getOutputStream methods are mixed up, the
>> getInputStream method gives you the stdout of the process and the
>> getOutputStream - the stdin.
>> Leon
>>
>> On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
>>
>>> I suppose you use Runtime.exec() ?
>>> If yes, you should grab the process output and error streams from the
>>> resulting Process class:
>>>
>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html
>>>
>>> regards
>>> Leon
>>>
>>> On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>>> > Good Afternoon All-
>>> >
>>> > I am attempting to exec a kshell from a Servlet
>>> > I execute it fine but do not see any output or error messages from
>>> catalina.out or my debug file (a redirect of output inside the kshell)
>>> > In other words I have no clue as to what this kshell script is
>>> actually doing
>>> > Any Suggestions to find out what is happening???
>>> >
>>> > Many Thanks,
>>> > Martin --
>>> > *
>>> > This email message and any files transmitted with it contain
>>> confidential
>>> > information intended only for the person(s) to whom this email
>>> message is
>>> > addressed.  If you have received this email message in error,
>>> please notify
>>> > the sender immediately by telephone or email and destroy the original
>>> > message without making a copy.  Thank you.
>>> >
>>> >
>>> >
>>> >
>>>
>>
>> -
>> 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]



Simple problem

2006-06-29 Thread Saha Rabindra N
Hi All,
 I am using Apache Tomcat/4.1.31 version.
I created a simple test application in webapps folder and that refers a simple 
javabean under WEB-INF/classes folder.

But when I run the jsp page that refers the javabean, it does not find the 
class file for that bean.


Now if I create a package under WEB-INF/classes and then put my java bean there 
and then refer that javabean from jsp file
with . then it works OK.

Can someone tell me if that is a bug in Tomcat, or I am missing something.

Thanks for your help.

RNS

-
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: How to suppress implicit conversions when spliiting up the query string into parameters

2006-06-29 Thread Hassan Schroeder

On 6/29/06, KHZ (SAW) <[EMAIL PROTECTED]> wrote:


We've severe problems if a URL contains an umlaut. For URL usage we encode
strings using UTF-8, i.e. "ü" (which would be ü in HTML) can be viewed
as "%c3%bc". Getting the request parameter I'ld expect the same string. But
we see 2 characters. Obviously it's interpreted as ISO8859-1 




URIEncoding 

   This specifies the character encoding used to decode the URI bytes,
   after %xx decoding the URL. If not specified, ISO-8859-1 will be used.

HTH!
--
Hassan Schroeder  [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: Error while connecting to MySQL database

2006-06-29 Thread navaneethan loganathan

Hi

I am sorry, as I did not mention that I have root password for mysql. I
have entered the root password(for mysql)  in my db.properties file.
I have specified in CLASSPATH as well for mysql connector in both
$CATALINA_HOME/bin/setclasspath.sh and also the user's .bash_profile.

Today morning I found the mistake I was making..
mysql(user) is owner for /var/lib/mysql.
tomcat(user) is owner for $CATALINA_HOME.
If I start  tomcat with tomcat ownership and tomcat user, I get this error.
When I made $CATALINA_HOME to root ownership, and start tomcat with root
user, Then the application is connecting to the database without any
problem.
However, It is working, until the database location is /var/lib/mysql. If I
change the database location to any other directory and specify in
/etc/my.cnf file as datadir, Then I will not be able to start MySQL server
even. The detail of this new error is as below while starting the MySQL
server with command # service mysqld start:

Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:[FAILED]
I checked with /var/lib/mysqld.log file. It says, log as below:

060629 12:56:36  mysqld started
060629 12:56:36 [Warning] Can't create test file
/data/mysql/swt04db.lower-test
^G/usr/libexec/mysqld: Can't change dir to '/data/mysql/' (Errcode: 13)
060629 12:56:36 [ERROR] Aborting

060629 12:56:36 [Note] /usr/libexec/mysqld: Shutdown complete

060629 12:56:36  mysqld ended

I confirmed that the mysql directory inside the /data/mysql is having the
ownership of mysql:mysql with appropriate permissions.

Since the / is less disk space , I need to shft the data to /data (900GB).

Any clue please

On 6/29/06, Gordon Smith <[EMAIL PROTECTED]> wrote:


If Class.forName throws a null pointer exception, chances are it can't
find
the driver because you have a Tomcat configuration problem or other
classpath-related problem relating to driver setup.  Please check out the
documentation on tomcat.apache.org for the details for your version of
Tomcat.

As an aside, please consult the MySQL documentation about setting a root
password and disabling unneeded accounts in the database.  You are leaving
a
gaping security hole in your app by not establishing a root db pwd.

Once you put a root pwd in place, there's no reason to share it in this
forum as long as you can connect by using that pwd from the MySQL client.

Hope this helps.

Cheers,
Gordon Smith

-Original Message-
From: navaneethan loganathan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 7:57 PM
To: users@tomcat.apache.org
Subject: Error while connecting to MySQL database

Hi,

I am facing a problem with my Apache-Tomcat-MySQL
installation.MyEnvironment
is as follows:
Redhat ES4(2.6.9-5.EL), Apache-Tomcat-5.5.15, MySQL 4.1.12, Java version
1.5.0_06, Apache-Tomcat connector ajp13,
mysql-connector-java-3.2.0-alpha-bin.jar.

After installation and configuration I am unable to connect to the
database
through the application and getting the following exception in
catalina.outlog file.

java.lang.NullPointerException
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)

However, I am able to browse my site perfectly with
http://localhost/index.jsp (the connector also configured perfectly, so
that
I do not need to specify the port number in URL).
I put the mysql-connector-java-3.2.0-alpha-bin.jar file in
$CATALINA_HOME/common/lib and also specified in CLASSPATH.

I am able to login to MySQL through command and access the database
without
any problem.

My db.properties is as under:

# MySQL database access properties
db.driver = org.gjt.mm.mysql.Driver
db.url = jdbc:mysql://localhost:3306/testdb
db.user = root
db.pwd =
Any clue will be very much helpfull.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: cgi-bin doesn't seem to work

2006-06-29 Thread Sarah Parrott

No, it didn't... I checked!

On 29/06/06, Hassan Schroeder <[EMAIL PROTECTED]> wrote:


On 6/29/06, Sarah Parrott <[EMAIL PROTECTED]> wrote:

>  I'm trying to enable cgi on tomcat 5.5. I've uncommented the servlet
and
> servlet mappings from the web.xml and renamed the server/lib/servelts-
> cgi.jar like it says in the howto, and then reinstalled tomcat.

?! "...and then reinstalled it"?

Wouldn't that wipe out your configuration changes?

--
Hassan Schroeder  [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: cgi-bin doesn't seem to work

2006-06-29 Thread Hassan Schroeder

On 6/29/06, Sarah Parrott <[EMAIL PROTECTED]> wrote:

No, it didn't... I checked!


uh, OK. Just seems totally backward to configure and then reinstall.

In any case -- do you have a url-mapping in your web.xml for the
cgi servlet?

Is there anything being written to your log files when you try to access
your example cgi?  Exactly what kind of file is your example?


--
Hassan Schroeder  [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]



Memory Leak question - please help

2006-06-29 Thread John McClain
OK - I have spent a few weeks trying to track down a memory leak that is in
our application. We see the leak in that the yourkit profiler shows an
increasing trend in telemetry. BUT, in tyring to track it down, all the GC
roots of the largest objects are coming from things like JDBC caches,
el.ExpressionEvaluatorImpl cache, WebAppClassLoader, and other Tomcat
managed caches/pools.


How do I know what memory is expected to be retained by Tomcat outside of my
application classes There seems to be caches / pools / classloaders as
almost every GC root. Is there some list out there that defines valid
Catalina GC roots for a running webapplication?? If not, Then how does one
know whether you are looking at a leak or some cache/pool that is managed by
something else, and assumabley works correctly? Also, if we have around 200
static classes, should we increase PermGen or Heap size?

Is there anyone out there who could help on this issue. Fee for service is
possible.

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Skepticism is the first step toward truth"



Re: Memory Leak question - please help

2006-06-29 Thread Darryl Miles

John McClain wrote:

How do I know what memory is expected to be retained by Tomcat outside of my
application classes There seems to be caches / pools / classloaders as
almost every GC root. Is there some list out there that defines valid
Catalina GC roots for a running webapplication?? If not, Then how does one
know whether you are looking at a leak or some cache/pool that is managed by
something else, and assumabley works correctly? Also, if we have around 200
static classes, should we increase PermGen or Heap size?


Unit testing.  Take your application out of the container and test it.

Even if its a web-app there must be some logical functions within it 
that can be broken down to allow standalone testing outside of the 
container.


If you can prove that and its not your application outright, this will 
leave you with interaction problems or the container itself. 
Interaction problems is a very broad scope that covers inappropriate 
design patterns through to plain misunderstanding of the respective 
servlet container specifications.


You seem pretty sure its your application at fault, so how did you test 
it in the first place ?



Darryl

-
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: filter increase number of session

2006-06-29 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

-
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: Simple problem

2006-06-29 Thread Mark Thomas
Saha Rabindra N wrote:
> Can someone tell me if that is a bug in Tomcat, or I am missing something.

You are missing the fact the the spec requires all classes to be in
packages.

Mark

-
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: cgi-bin doesn't seem to work

2006-06-29 Thread Mark Thomas
Sarah Parrott wrote:

> and put the program I want to run (Mapserver. The file is just called
> mapserv.) in that directory.
> 
> When I go to http://localhost:8080/cgi-bin/mapserv I just get a blank page.
> No errors and not what I'm expecting to get. I've tried restarting tomcat,
> and playing about with the URL but I either get an error or the same blank
> page.
> 
> Any ideas what I'm doing wrong?

By default, the CGIServlet is going to call "perl mapserv" which I
suspect will fail since I assume mapserv is an executable rather than
a perl script.

Try setting the executable parameter (see the HowTo) to an empty
string. ( I haven't tested this). Alternatively, set it to mapserv and
see if that works.

Mark

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