Re: Intermediate write in JSP

2006-07-19 Thread Abh N
Thanks Michael ...i will try this option.
   
  I have one more issue while looping throught the result set we see the 
memory usage increases contineously and then drops (after looping through ~5k) 
and then  increases again.
  Is there any memory managemnt we can do from our side to that it does not 
reaches peak limit.
Do I need to run gc after looping for some record set
Michael Jouravlev [EMAIL PROTECTED] wrote:
  Try setting buffer size to (8x10^6/3x10^4)x500 == 135K.

On 7/18/06, Abh N wrote:
 Hi,

 I have requirement where in I have to fetch around 30k (size around 8MB) 
 records from DB and render in xls.

 I am looping through the result set and then using response.getOutputStream 
 for writing the data

 The server has a time out of 5min so by the time data gets completely 
 rendered server times out

 What it did was - Kept a counter , when I am finishing looping thru 500 
 records i write to output stream

 b=0
 while rs.next {

 if(b==500){
 // write to output stream
 b=0
 }

 b++
 }

 I am able to overcome server time , once the download is complete I am able 
 to see only last 500 records

 Any suggestion on how to overcome this problem

 Thanks



 -
 Find out what India is talking about on Yahoo! Answers India.
 Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!


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




-
 Find out what India is talking about on Yahoo! Answers India.
 Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!

Re: Increase Heapsize

2006-07-19 Thread Suresh babu

Hi

It's an option to
the JVM, just append this line over there -verbosegc -XX:+PrintGCDetails.
To avoid out of memmory errors just make sure minimum and maximum heap space
should be same.
You can find out still more information with GC details logged on enabling
above option in JVM.

Check it out how much memmory is reclaimimg on each GC and whats the
frequency of minor or major GC are happening.
More over you can set different alogorithms like copying collector.mark and
compavt/mark and sweep /incremental/throughput collectors in young/ old
generation.
You can find brief details in following links.

http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html



On 7/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



Chris,
  This gives how much heapsize is currently allocated.
   How can I know whether it is enough or what size it should be increased
to?
   Also: real time wise, how if tomcat behaving with each
event/interaction/page delivery?


Thanks,
Ibrahim


   *Christopher Schultz [EMAIL PROTECTED]*

07/18/2006 09:00 AM

Please respond to Tomcat Users List

To:Tomcat Users List users@tomcat.apache.org
cc:
Subject:Re: Increase Heapsize





Ibrahim,

 You can always call Runtime.getRuntime().totalMemory() to find out the
 amount of heap space that has been allocated to the JVM.

  Where would this code be written?
  And how would I execute it?

Just toss a JSP file somewhere with that code in it to allow you to
check up on the app.

-chris




**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose,
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

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]





--
Suresh Babu,
Software Engineer,
Computer Associates-India


RE: Intermediate write in JSP

2006-07-19 Thread Phil \(waex\)
Hi, 

I had a similar issue in the past that I overcome by having the servlet
start a separate thread that was producing the report,
And a jsp page refreshing every 10 seconds or so checking for completion.
Philippe


-Original Message-
From: Abh N [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2006 08:17
To: Tomcat Users List
Subject: Re: Intermediate write in JSP

Thanks Michael ...i will try this option.
   
  I have one more issue while looping throught the result set we see the
memory usage increases contineously and then drops (after looping through
~5k) and then  increases again.
  Is there any memory managemnt we can do from our side to that it does not
reaches peak limit.
Do I need to run gc after looping for some record set Michael Jouravlev
[EMAIL PROTECTED] wrote:
  Try setting buffer size to (8x10^6/3x10^4)x500 == 135K.

On 7/18/06, Abh N wrote:
 Hi,

 I have requirement where in I have to fetch around 30k (size around 8MB)
records from DB and render in xls.

 I am looping through the result set and then using 
 response.getOutputStream for writing the data

 The server has a time out of 5min so by the time data gets completely 
 rendered server times out

 What it did was - Kept a counter , when I am finishing looping thru 
 500 records i write to output stream

 b=0
 while rs.next {

 if(b==500){
 // write to output stream
 b=0
 }

 b++
 }

 I am able to overcome server time , once the download is complete I am 
 able to see only last 500 records

 Any suggestion on how to overcome this problem

 Thanks



 -
 Find out what India is talking about on Yahoo! Answers India.
 Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!


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




-
 Find out what India is talking about on Yahoo! Answers India.
 Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!


-
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: Intermediate write in JSP

2006-07-19 Thread Nikola Milutinovic
 I had a similar issue in the past that I overcome by having the servlet
 start a separate thread that was producing the report,
 And a jsp page refreshing every 10 seconds or so checking for completion.


That is, of course, the asynchronous application design. Sometimes it is 
necessary, but it does bring a question. What is being so slow? Sending the 
amount of data you're sending is not slower than it can be. My guess is that DB 
is taking a rather long time to complete the query. I would not blame the 
network, because the Net connection between DB and TC should be at least as 
fast as the one between TC and your client.

So, the original poster might wanna take a look at the DB for speeding it up. 
It might not be possible, though.

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]



Re: Increase Heapsize

2006-07-19 Thread Suresh babu

Hi,

Use following line in catalina file

set JAVA_OPTS=%JAVA_OPTS% -verbosegc -XX:+PrintGCDetails in windows change
accordingly to linux.

Run stratup.sh from command line: to see all heap information on console.



On 7/19/06, Suresh babu [EMAIL PROTECTED] wrote:


 Hi

 It's an option to
the JVM, just append this line over there -verbosegc -XX:+PrintGCDetails.
To avoid out of memmory errors just make sure minimum and maximum heap
space should be same.
You can find out still more information with GC details logged on enabling
above option in JVM.

Check it out how much memmory is reclaimimg on each GC and whats the
frequency of minor or major GC are happening.
More over you can set different alogorithms like copying collector.markand 
compavt/mark and sweep /incremental/throughput collectors in young/ old
generation.
You can find brief details in following links.

http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html



On 7/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED]  wrote:


 Chris,
   This gives how much heapsize is currently allocated.
How can I know whether it is enough or what size it should be
 increased to?
Also: real time wise, how if tomcat behaving with each
 event/interaction/page delivery?


 Thanks,
 Ibrahim


*Christopher Schultz  [EMAIL PROTECTED]*

 07/18/2006 09:00 AM

 Please respond to Tomcat Users List

 To:Tomcat Users List  users@tomcat.apache.org
 cc:
 Subject:Re: Increase Heapsize






Ibrahim,

 You can always call Runtime.getRuntime().totalMemory() to find out the
 amount of heap space that has been allocated to the JVM.

  Where would this code be written?
  And how would I execute it?

Just toss a JSP file somewhere with that code in it to allow you to
check up on the app.

-chris




**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose,
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

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]




--
Suresh Babu,
Software Engineer,
Computer Associates-India





--
Suresh Babu,
Software Engineer,
Computer Associates-India


SuPHP alternative for JSP and Tomcat

2006-07-19 Thread Vaclav Kaspar

Hello,
  I am hosting several domains on one server. For security reasons I 
need JSP scripts to run under different users, to avoid users from one 
domain  rewriting  or reading  files of another user through JSP scripts 
. In  apache and PHP it's solved by SuPHP module. Is anything similar 
possible in Tomcat?
   
Thanks, Kaspi


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



New Session Created Randomly in Tomcat 5.0.28

2006-07-19 Thread Nilesh
Problem  Description : 

 1.  I have a  typical  JSP-Servlet web application running on tomcat
5.0.28. 

 2.  After successful login a new session is created. (in login.jsp) and
user specific data is kept in session

 3.  User moves on through the application .   Accesses  a JSP ( e.g.
PageWithHeavyJavascript.jsp),  JavaScript code.

 4.  After  doing some selections etc. PageWithHeavyJavascript.jsp,  user
browses another JSP ( e.g.  plain.jsp)  which *does not* have any session
related code. At this point *sometimes* a  NEW session is created. (By
implementing HttpSessionListener I observed that the sessionCreated() methos
is getting called everytime and sessionDestoryed() method is never getting
called)

5. After lot of debugging I have observed that this happens when  lot of
Javascript code is called through clicks etc. new session is created. I am
unable to link lot of Javascript calls with New session getting created.

 

I would appreciate if you can shed some light on this issue... any
hint/solution?

 

-Nilesh



Re: Tomcat 5.5 Configure a Host

2006-07-19 Thread Markus Schönhaber
Scott Purcell wrote:
 I created a war file and deployed it to $CATALINA_HOME/webapps today. When
 I hit the site I use http://localhost:8080/appname and it pulls up the
 index.html from appname. All good.

 Problem begins with some links I have within the application. A lot of the
 links do not include the context. Basically for good reason, as another
 site that I have  DNS for, I had to take out the context from the links.

 EG:
 a href=/mypage.jsp fails, because it needs a
 href=/appname/mypage.jsp

 I do not want to add the context in front of each of my links. What I want
 to do is somehow create a name (I did not purchase another DNS) name yet,
 and tie the localhost:8080/appname as 1 context. Some dns-like name until I
 purchase DNS?

Simply don't use absolute paths for hrefs. I. e. instead of
a href=/mypage.jsp
use
a href=./mypage.jsp
or even simpler
a href=mypage.jsp

Regards
  mks

-
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: New Session Created Randomly in Tomcat 5.0.28

2006-07-19 Thread Pid


Nilesh wrote:
 Problem  Description : 
 
  1.  I have a  typical  JSP-Servlet web application running on tomcat
 5.0.28. 
 
  2.  After successful login a new session is created. (in login.jsp) and
 user specific data is kept in session
 
  3.  User moves on through the application .   Accesses  a JSP ( e.g.
 PageWithHeavyJavascript.jsp),  JavaScript code.
 
  4.  After  doing some selections etc. PageWithHeavyJavascript.jsp,  user
 browses another JSP ( e.g.  plain.jsp)  which *does not* have any session
 related code. At this point *sometimes* a  NEW session is created. (By
 implementing HttpSessionListener I observed that the sessionCreated() methos
 is getting called everytime and sessionDestoryed() method is never getting
 called)
 
 5. After lot of debugging I have observed that this happens when  lot of
 Javascript code is called through clicks etc. new session is created. I am
 unable to link lot of Javascript calls with New session getting created.

Does the Javascript do any AJAX?

 I would appreciate if you can shed some light on this issue... any
 hint/solution?
 
  
 
 -Nilesh
 
 

-
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: SuPHP alternative for JSP and Tomcat

2006-07-19 Thread Pid
Do you want to prevent all users from access the file system, or permit
individual users access to their own part?

Peter Crowther wrote:
 From: Vaclav Kaspar [mailto:[EMAIL PROTECTED] 
 For security reasons I 
 need JSP scripts to run under different users
 
 A single JVM runs as a single user.  To my knowledge, there's no way of
 setting threads in a JVM to run as different users, so you're pretty
 much stuck if you want to run in a single JVM.
 
 A typical solution to this would be to run each user's webapp in its own
 Tomcat in its own JVM.  This also allows a greater degree of security
 between webapps - otherwise, it could be possible for a badly-behaved
 webapp to hog resources or gain control over another webapp.  You then
 need some kind of front-end to the multiple JVMs: Apache httpd plus the
 JK connector, or your reverse proxy of choice.
 
   - Peter
 
 -
 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 shutdowns unexpectedly - Please help

2006-07-19 Thread Arunan Kannan

Hi Cosio

thank you very much.

There is no such suspecious servlet details in web.xml

Hi All,

My problem seems to be very peculiar and haven't heard this before.
The tomcat gets shutdown unexpectedly after 3 hours only on this particular
system.
the same tomcat with same confgiurations when run on a other system, it runs
properly and there is no problem.

on this particular system the problem occurs always.
# uname -a
SunOS CBT 5.8 Generic_117350-36 sun4u sparc SUNW,Sun-Blade-1000
dunno what to do. i have tried all.. nothing is fruitfull.

Also it is very amazing that when i run a simple script at background which
will echo hello once in 10 minute and is infite...the problem doesn't
occurs...dunno why...

while [ true ]
do
   echo hello
   sleep 600
done

why?
whats the problem?
How to resolve?

I am very much confused.
Please help.

Thanks again,
Thanks and regards,
Arunan


On 7/18/06, Cosio, Raul [EMAIL PROTECTED] wrote:


David,

- Do you have in your web.xml some kind of servlet tag sometimes used
to start a background thread that might be causing the problem?
Unfortunately I work with WinXP and not everithing is written to
catalina.out, what I do is run tomcat in a DOS prompt, if it hangs then
I can read all the output generated, sometimes caused by the JVM...

- Are you trying to open de /admin tool but it's not installed already
on your server?

-Original Message-
From: Arunan Kannan [mailto:[EMAIL PROTECTED]
Sent: Martes, 11 de Julio de 2006 09:54 a.m.
To: Tomcat Users List; Martin Gainty
Subject: Re: Tomcat shutdowns unexpectedly - Please help


Hi David, Martin, and Alireza,

Thank you very much for your comments and suggestions. Thanks a lot.

Hi David,
There is no logs corresponding to this shutdown anywhere on the system.
I
couldn't find any thing relevent to this crash on syslog or at any other
place. Thanks for your help.

Hi Martin,
Here is the log from catalina.out file. Please have a look at it.
Jul 10, 2006 11:57:18 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Jul 10, 2006 11:57:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 10, 2006 11:57:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 10, 2006 11:57:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/53  config=/temp/jakarta-tomcat-4.1.31
/conf/jk2.pro
perties
Stopping service Tomcat-Standalone

and here are the logs from localhost_admin_log.2006-07-10.txt

2006-07-11 05:01:40 StandardContext[/admin]: Servlet /admin threw load()
excepti
on
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.web
app.admin.ApplicationServlet or a class it depends on
   at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.
java:844)
6)  at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:77
t.ja
3363)rg.apache.catalina.core.StandardContext.loadOnStartup(StandardConte
x
586)at org.apache.catalina.core.StandardContext.start(
StandardContext.java:3
.java:774) org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase
0)  at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:76

--at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

2006-07-11 05:01:40 StandardWrapper[/admin:invoker]: Loading container
servlet i
nvoker

I couldn't understand much. Can you please let me know some more info
about
this.

As you said, I tried to find some timeout parameters in the conf files.

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 9080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=9080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=9443
  acceptCount=100 debug=0 connectionTimeout=2
  useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
to -1 --


In the server.xml the ConnectionTimeout is set to 2. I will change
that
to 0 and let you know the results. Thanks for your help.

Hi Alireza,

The tomcat I am using is not configured with apache.

Initially I run some sample application and left it ideal for some 3 to
4
hr. There is no action done in this time. Then the tomcat gets shutdown
unexpectedly.

I will try your suggestion and let you know the result. Thanks for your
help.

Thanks again for all,

Thanks and Regards,

Arunan


On 7/11/06, Martin Gainty [EMAIL PROTECTED] wrote:

 I would also look at workers.properties files and make sure
 socket_KeepAlive is set on
 Also socket_timeout is set to 0 so it never times out

 M-
 *
 This email message and any files transmitted with it contain
confidential
 information 

Re: SuPHP alternative for JSP and Tomcat

2006-07-19 Thread Vaclav Kaspar

Pid wrote:


Do you want to prevent all users from access the file system, or permit
individual users access to their own part?

Peter Crowther wrote:
 

From: Vaclav Kaspar [mailto:[EMAIL PROTECTED] 
For security reasons I 
need JSP scripts to run under different users
 


A single JVM runs as a single user.  To my knowledge, there's no way of
setting threads in a JVM to run as different users, so you're pretty
much stuck if you want to run in a single JVM.

A typical solution to this would be to run each user's webapp in its own
Tomcat in its own JVM.  This also allows a greater degree of security
between webapps - otherwise, it could be possible for a badly-behaved
webapp to hog resources or gain control over another webapp.  You then
need some kind of front-end to the multiple JVMs: Apache httpd plus the
JK connector, or your reverse proxy of choice.

- Peter

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

 


I want to prevent  these  example situations
user  user1 have in his jsp script something like
FileWriter fw = new FileWriter(/home/USER2/somefile);
fw.write(blablabla);
fw.close();

or
File f = new File(/home/USER2/);
String[]  files =File.list();
FileReader fr = new FileReader(files[0]);
fr.read() 

now these cases are possible because JSP runs in user Tomcat5 and if i 
want allow users JSP scripts to manipulate with IO I have to grant right 
to their homes to Tomcat


I already know the posibility to use Peter's solution with multiple 
Tomcat's,  but for hosting more then 100 domains I aware a big useless 
load of the server, and complicated starting of Tomcat's.




-
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: New Session Created Randomly in Tomcat 5.0.28

2006-07-19 Thread Nilesh


-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 2:52 PM
To: Tomcat Users List
Subject: Re: New Session Created Randomly in Tomcat 5.0.28



Nilesh wrote:
 Problem  Description :

  1.  I have a  typical  JSP-Servlet web application running on tomcat
 5.0.28.

  2.  After successful login a new session is created. (in login.jsp)
 and user specific data is kept in session

  3.  User moves on through the application .   Accesses  a JSP ( e.g.
 PageWithHeavyJavascript.jsp),  JavaScript code.

  4.  After  doing some selections etc. PageWithHeavyJavascript.jsp, 
 user browses another JSP ( e.g.  plain.jsp)  which *does not* have any
 session related code. At this point *sometimes* a  NEW session is
 created. (By implementing HttpSessionListener I observed that the
 sessionCreated() methos is getting called everytime and
 sessionDestoryed() method is never getting
 called)

 5. After lot of debugging I have observed that this happens when  lot
 of Javascript code is called through clicks etc. new session is
 created. I am unable to link lot of Javascript calls with New session
getting created.

Does the Javascript do any AJAX?
No, AJAX is not used. 

 I would appreciate if you can shed some light on this issue... any
 hint/solution?

 

 -Nilesh



-
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: SuPHP alternative for JSP and Tomcat

2006-07-19 Thread Edmund Urbani
Vaclav Kaspar wrote:

 I want to prevent  these  example situations
 user  user1 have in his jsp script something like
 FileWriter fw = new FileWriter(/home/USER2/somefile);
 fw.write(blablabla);
 fw.close();
 
 or
 File f = new File(/home/USER2/);
 String[]  files =File.list();
 FileReader fr = new FileReader(files[0]);
 fr.read() 
 
 now these cases are possible because JSP runs in user Tomcat5 and if i
 want allow users JSP scripts to manipulate with IO I have to grant right
 to their homes to Tomcat
 
 I already know the posibility to use Peter's solution with multiple
 Tomcat's,  but for hosting more then 100 domains I aware a big useless
 load of the server, and complicated starting of Tomcat's.
 
I recommend taking a look at the catalina.policy file. You can set all
sorts of permissions for tomcat and the individual webapps in the policy
(not sure how one would set permissions for individual JSPs though).

To enable it add the -security parameter when launching tomcat. Simply
enabling the security manager is rather likely to break existing web
applications. You will probably have to add the permissions they need to
make them usable again.

 Edmund

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



Don´t work :(

2006-07-19 Thread Bernardo Martin

hi list,

I have a rarely problem with jakarta-tomcat 5.5.17.

I install jdk1.5.0_07 first, httpd 2.2..0 second and jakarta tomcat
5.5.17at the end in suse
9.0, I had edit /etc/profiles when it was necessary but when i do

/usr/local/apache/bin/apachectl start (any error)

apache work at 127.0.0.1:80 in webbrowser

/usr/local//apache-tomcat-5.5.17/bin/startup.sh
Using CATALINA_BASE:   /usr/local/apache-tomcat-5.5.17
Using CATALINA_HOME:   /usr/local/apache-tomcat-5.5.17
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp
Using JRE_HOME:   /usr/lib/java/jre

webbrowser can´t connect at 127.0.0.1:8080

The firewall is down.

what happend?

Thanks


Re: Don´t work :(

2006-07-19 Thread Marcello

Checked your browser proxy settings yet?
Hi.

Bernardo Martin wrote:

hi list,

I have a rarely problem with jakarta-tomcat 5.5.17.

I install jdk1.5.0_07 first, httpd 2.2..0 second and jakarta tomcat
5.5.17at the end in suse
9.0, I had edit /etc/profiles when it was necessary but when i do

/usr/local/apache/bin/apachectl start (any error)

apache work at 127.0.0.1:80 in webbrowser

/usr/local//apache-tomcat-5.5.17/bin/startup.sh
Using CATALINA_BASE:   /usr/local/apache-tomcat-5.5.17
Using CATALINA_HOME:   /usr/local/apache-tomcat-5.5.17
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp
Using JRE_HOME:   /usr/lib/java/jre

webbrowser can´t connect at 127.0.0.1:8080

The firewall is down.

what happend?

Thanks



-
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: Don´t work :(

2006-07-19 Thread Timothy Collett
Are there any messages in the Tomcat logfiles?  They should be in / 
usr/local/apache-tomcat-5.5.17/logs, and catalina.out is likely to  
have the most useful stuff...


Timothy Collett

--

Do what you can, with what you have, where you are.
 -Teddy Roosevelt


-
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: Don´t work :(

2006-07-19 Thread Avi Deitcher
Did you try explicitly setting the protocol, i.e. http://127.0.0.1:8080/
For an odd reason, some browsers don't automatically assume http when
going to localhost.

Also, did you check the host configuration for Tomcat?

Bernardo Martin wrote:

 i haven´t any proxy settings :(









 2006/7/19, Marcello [EMAIL PROTECTED]:


 Checked your browser proxy settings yet?
 Hi.

 Bernardo Martin wrote:
  hi list,
 
  I have a rarely problem with jakarta-tomcat 5.5.17.
 
  I install jdk1.5.0_07 first, httpd 2.2..0 second and jakarta tomcat
  5.5.17at the end in suse
  9.0, I had edit /etc/profiles when it was necessary but when i do
 
  /usr/local/apache/bin/apachectl start (any error)
 
  apache work at 127.0.0.1:80 in webbrowser
 
  /usr/local//apache-tomcat-5.5.17/bin/startup.sh
  Using CATALINA_BASE:   /usr/local/apache-tomcat-5.5.17
  Using CATALINA_HOME:   /usr/local/apache-tomcat-5.5.17
  Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp
  Using JRE_HOME:   /usr/lib/java/jre
 
  webbrowser can´t connect at 127.0.0.1:8080
 
  The firewall is down.
 
  what happend?
 
  Thanks
 

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




-- 
__
Avi Deitcher
[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: Don´t work :(

2006-07-19 Thread Christopher Schultz
Bernardo,

 apache work at 127.0.0.1:80 in webbrowser
 
 /usr/local//apache-tomcat-5.5.17/bin/startup.sh
 Using CATALINA_BASE:   /usr/local/apache-tomcat-5.5.17
 Using CATALINA_HOME:   /usr/local/apache-tomcat-5.5.17
 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp
 Using JRE_HOME:   /usr/lib/java/jre
 
 webbrowser can´t connect at 127.0.0.1:8080

Did you configure the HTTP/1.1 Coyote connector in your server.xml file?
I believe that the default configuration is to use an AJP13 connector on
port 8009, and not an HTTP connector on port 8080.

Do you want Apache to handle outside connections to Tomcat? If so, then
you should not be trying to connect to your webapp directly on
localhost:8080 - you should use mod_jk or mod_proxy_ajp to connect
Apache to Tomcat and then hit localhost:80/your-web-app.

Hope that helps,
-chris



signature.asc
Description: OpenPGP digital signature


RE: Random HTTP 502 errors

2006-07-19 Thread Mark Claassen
 
I was wondering if this is just caused by Tomcat closing the socket before
the proxy finished reading the message.  Is there a way to set the LINGER on
these sockets?  

It still seems a big strange to me that the LINGER could be a problem, since
there are no problems when not using the proxy.  If it was the LINGER I
would expect that our Java client would have problems too.  Still, it is
something I can look in to, as I am currently at a loss for any other
theories.

Lastly, setting the debug level in a connector does not seem to do anything
for me.  What is the secret to getting debug output on the connectors?

Mark

-Original Message-
From: Mark Claassen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 18, 2006 5:04 PM
To: 'Tomcat Users List'
Subject: Random HTTP 502 errors

I was wondering if anyone could shed some light on some strange 502 errors I
am having when going through a proxy.  We are using a relatively new proxy
server Sun-Java-System-Web-Proxy-Server/4.0

The error seems to be originating between Tomcat and the proxy.  When the
error occurs, the proxy logs say:
Error reading response header.  Server closed connection.

On a thousand rapid requests from a client thread, I will get this only 0 -
3 times.

If I send the response header Connection: close on every request from my
servlet, I do not get the error.  However, I do not want to disable
persistent connections.

I did a snoop, and I noticed that the responses I get (on the same socket) a
bunch of replies with this header:

HTTP/1.1 200 OK 
Transfer-Encoding: chunked 
Date: Tue, 18 Jul 2006 19:35:12 GMT 
Server: Apache-Coyote/1.1

On the last one for a given socket,
HTTP/1.1 200 OK 
Date: Tue, 18 Jul 2006 19:35:12 GMT 
Server: Apache-Coyote/1.1 
Connection: close

Any guidance or insight would be greatly appreciated.
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]


-
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: The requested resource is not available

2006-07-19 Thread Darren Hall
Thanks for the response Hassan.

 But if the above url-pattern is in a Context with path '/abc', then you're
 telling it to give everything that looks like 
 'http://localhost:8080/abc/abc'
 to your control servlet, which probably isn't what you want...  :-)

No, you are exactly right. This is *not* what I want. I want the servlet to
get everything from 'http://localhost:8080/abc'. Would you mind explaining
where I went wrong?

 The Context configuration would be helpful, though.

As for Context, I don't have any context information in my web.xml file (I
don't believe... at least I have no Context element present in the file).
What I posted before was nearly the entire web.xml. I can post the whole
file if you'd like.

Thanks,

Darren


-
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: out of memory error

2006-07-19 Thread Jon Wingfield
The process running tomcat can't (read isn't allowed by OS) to create 
any more threads:


java.lang.OutOfMemoryError: unable to create new native thread

If you are on unix you can up the number by tinkering with the ulimit 
command.


HTH,

Jon

MW Janssen wrote:
Hi, 
 
Can anyone explain and suggest a solution on error below:
 
Jul 19, 2006 12:49:18 PM

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new
native thread) executing HYPERLINK
mailto:[EMAIL PROTECTED]org.apa
[EMAIL PROTECTED], terminating thread
Jul 19, 2006 1:25:30 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
Jul 19, 2006 1:25:31 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Tomcat-Standalone
Jul 19, 2006 1:25:32 PM org.apache.catalina.core.ApplicationContext log
INFO: action: Finalizing this controller servlet
Jul 19, 2006 1:25:32 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 3 instance(s) to be deallocated
Jul 19, 2006 1:25:33 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 3 instance(s) to be deallocated
Jul 19, 2006 1:25:34 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 3 instance(s) to be deallocated
Jul 19, 2006 1:25:34 PM org.apache.catalina.core.ApplicationContext log
INFO: action: Finalizing this controller servlet
Jul 19, 2006 1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
 
Regards,
 
Maarten Janssen
 





-
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: Don´t work :(

2006-07-19 Thread Martin Gainty
Avi-

check to see if your listener is actually listening with the netstat utility 
i.e. do a 
netstat -a | grep PortNumber

also check to see if the Tomcat process is active
ps -ef | grep omcat

HTH,
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: Avi Deitcher [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 8:14 AM
Subject: Re: Don´t work :(


 Did you try explicitly setting the protocol, i.e. http://127.0.0.1:8080/
 For an odd reason, some browsers don't automatically assume http when
 going to localhost.
 
 Also, did you check the host configuration for Tomcat?
 
 Bernardo Martin wrote:
 
 i haven´t any proxy settings :(









 2006/7/19, Marcello [EMAIL PROTECTED]:


 Checked your browser proxy settings yet?
 Hi.

 Bernardo Martin wrote:
  hi list,
 
  I have a rarely problem with jakarta-tomcat 5.5.17.
 
  I install jdk1.5.0_07 first, httpd 2.2..0 second and jakarta tomcat
  5.5.17at the end in suse
  9.0, I had edit /etc/profiles when it was necessary but when i do
 
  /usr/local/apache/bin/apachectl start (any error)
 
  apache work at 127.0.0.1:80 in webbrowser
 
  /usr/local//apache-tomcat-5.5.17/bin/startup.sh
  Using CATALINA_BASE:   /usr/local/apache-tomcat-5.5.17
  Using CATALINA_HOME:   /usr/local/apache-tomcat-5.5.17
  Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp
  Using JRE_HOME:   /usr/lib/java/jre
 
  webbrowser can´t connect at 127.0.0.1:8080
 
  The firewall is down.
 
  what happend?
 
  Thanks
 

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



 
 -- 
 __
 Avi Deitcher
 [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]
 


TransformerFactoryConfigurationError

2006-07-19 Thread Ravi Tharakan

Hi. I'm having some trouble deploying a webapp I have installed on my local
hard drive to my Tomcat server. When I try to use some of the features on my
app, I get the following errors:

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found
javax.xml.transform.TransformerFactory.newInstance(Unknown Source)

uk.ac.ebi.pride.web.controller.search.ServeExperimentAction.initTransformer(ServeExperimentAction.java:485)

uk.ac.ebi.pride.web.controller.search.ServeExperimentAction.execute(ServeExperimentAction.java:380)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

The log readout is

2006-07-18 15:49:40 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found
   at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
   at
uk.ac.ebi.pride.web.controller.search.ServeExperimentAction.initTransformer(
ServeExperimentAction.java:485)
   at uk.ac.ebi.pride.web.controller.search.ServeExperimentAction.execute(
ServeExperimentAction.java:380)
   at org.apache.struts.action.RequestProcessor.processActionPerform(
RequestProcessor.java:484)
   at org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:274)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1482)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:237)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:157)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:214)
   at org.apache.catalina.core.StandardValveContext.invokeNext(
StandardValveContext.java:104)
   at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:520)
   at org.apache.catalina.core.StandardContextValve.invokeInternal(
StandardContextValve.java:198)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:152)
   at org.apache.catalina.core.StandardValveContext.invokeNext(
StandardValveContext.java:104)
   at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:520)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:137)
   at org.apache.catalina.core.StandardValveContext.invokeNext(
StandardValveContext.java:104)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:118)
   at org.apache.catalina.core.StandardValveContext.invokeNext(
StandardValveContext.java:102)
   at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:520)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
   at org.apache.catalina.core.StandardValveContext.invokeNext(
StandardValveContext.java:104)
   at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:520)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java
:160)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:705)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:595)

Does anyone know what this means?


Re: out of memory error

2006-07-19 Thread Leon Rosenberg

On 7/19/06, Jon Wingfield [EMAIL PROTECTED] wrote:

The process running tomcat can't (read isn't allowed by OS) to create
any more threads:

java.lang.OutOfMemoryError: unable to create new native thread

If you are on unix you can up the number by tinkering with the ulimit
command.


but if you are on 2.4.x kernel, you're lost, since it can't create
many threads (max 500-600).

leon



HTH,

Jon

MW Janssen wrote:
 Hi,

 Can anyone explain and suggest a solution on error below:

 Jul 19, 2006 12:49:18 PM
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
 SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new
 native thread) executing HYPERLINK
 mailto:[EMAIL PROTECTED]org.apa
 [EMAIL PROTECTED], terminating thread
 Jul 19, 2006 1:25:30 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-80
 Jul 19, 2006 1:25:31 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Tomcat-Standalone
 Jul 19, 2006 1:25:32 PM org.apache.catalina.core.ApplicationContext log
 INFO: action: Finalizing this controller servlet
 Jul 19, 2006 1:25:32 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 3 instance(s) to be deallocated
 Jul 19, 2006 1:25:33 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 3 instance(s) to be deallocated
 Jul 19, 2006 1:25:34 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 3 instance(s) to be deallocated
 Jul 19, 2006 1:25:34 PM org.apache.catalina.core.ApplicationContext log
 INFO: action: Finalizing this controller servlet
 Jul 19, 2006 1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-80

 Regards,

 Maarten Janssen





-
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: [OT] Problems with file permissions

2006-07-19 Thread David Smith

Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.

2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.


---David

[EMAIL PROTECTED] wrote:


Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 
ftp'd to the webserver the permissions are -rw-r- and browsers trying 
to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?


Thanks for your Help!
Michele
 




-
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: [OT] Problems with file permissions

2006-07-19 Thread Michele . A . Shiels
Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele 



David Smith [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele
 



-
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: TransformerFactoryConfigurationError

2006-07-19 Thread Christopher Schultz
Ravi,

 Hi. I'm having some trouble deploying a webapp I have installed on my local
 hard drive to my Tomcat server. When I try to use some of the features
 on my
 app, I get the following errors:
 
 javax.xml.transform.TransformerFactoryConfigurationError: Provider
 org.apache.xalan.processor.TransformerFactoryImpl not found

Looks like you are missing Xalan, which is odd, since JAXP is supposed
to give you a previously-configured XSLT engine -- which usually gets
configured by the XSLT engine itself.

Make sure that you have xalan.jar in one of these places:

* WEB-INF/lib in your webapp
* TOMCAT_HOME/common/lib
* JAVA_HOME/jre/lib/ext

I'm running Java 1.4.2_10, and my JAVA_HOME/jre/lib/rt.jar /itself/
contains the Xalan XSLT processor. I dunno about JDK 1.5, but for
1.4.2_10, it's packaged with the JDK.

shrug

-chris




signature.asc
Description: OpenPGP digital signature


Re: [OT] Problems with file permissions

2006-07-19 Thread David Smith
We answer all kinds of questions here.  Just protocol to mark off topic 
posts as such.


In the Unix environment, the ftp service (not to be confused with the 
ftp client) can depending on vendor be configured to set permissions as 
it receives files.  I know in ProFTPd, it's set using the umask config 
setting.  Try to find out what ftp service you have on the server and 
look at it's man pages for info on what config settings are available.


Actually, it's not Apache that cares about file permissions, but the OS 
(unix in this case).  Apache may start as root, but it's workers are all 
spawned as unprivileged users (the user 'apache' in my the case of my 
server) and the OS will deny access if the apache worker doesn't at 
minimum have read access.


--David

[EMAIL PROTECTED] wrote:


Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.


Thanks again for any help you can give.
Michele 




David Smith [EMAIL PROTECTED] 
No Phone Info Available

19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.

2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.


---David

[EMAIL PROTECTED] wrote:

 


Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 
   



 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 
   



 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
   

own 
 


the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?


Thanks for your Help!
Michele


   




-
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: TransformerFactoryConfigurationError

2006-07-19 Thread Ravi Tharakan

Hm. I did a full computer search for that file and I don't seem to have it.
Is there a place I can download it?

On 7/19/06, Christopher Schultz [EMAIL PROTECTED] wrote:


Ravi,

 Hi. I'm having some trouble deploying a webapp I have installed on my
local
 hard drive to my Tomcat server. When I try to use some of the features
 on my
 app, I get the following errors:

 javax.xml.transform.TransformerFactoryConfigurationError: Provider
 org.apache.xalan.processor.TransformerFactoryImpl not found

Looks like you are missing Xalan, which is odd, since JAXP is supposed
to give you a previously-configured XSLT engine -- which usually gets
configured by the XSLT engine itself.

Make sure that you have xalan.jar in one of these places:

* WEB-INF/lib in your webapp
* TOMCAT_HOME/common/lib
* JAVA_HOME/jre/lib/ext

I'm running Java 1.4.2_10, and my JAVA_HOME/jre/lib/rt.jar /itself/
contains the Xalan XSLT processor. I dunno about JDK 1.5, but for
1.4.2_10, it's packaged with the JDK.

shrug

-chris







RE: [OT] Problems with file permissions

2006-07-19 Thread Mead, Jennifer L - VSCM
Michelle,

I am jumping into the middle of this thread so I apologize.  If you set
the umask of the owner of the files.  So when you do a listing ls -alt
in the directory that the files are in and see the owner.  Then go into
that user's .profile in their home directory you can set the umask.
Like for instance you could say: umask a=rw.

Hope that helps,
Jennifer 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 7:29 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions

We answer all kinds of questions here.  Just protocol to mark off topic
posts as such.

In the Unix environment, the ftp service (not to be confused with the
ftp client) can depending on vendor be configured to set permissions as
it receives files.  I know in ProFTPd, it's set using the umask config
setting.  Try to find out what ftp service you have on the server and
look at it's man pages for info on what config settings are available.

Actually, it's not Apache that cares about file permissions, but the OS
(unix in this case).  Apache may start as root, but it's workers are all
spawned as unprivileged users (the user 'apache' in my the case of my
server) and the OS will deny access if the apache worker doesn't at
minimum have read access.

--David

[EMAIL PROTECTED] wrote:

Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a 
Unix box so windows doesn't know about setting file permissions in this

instance.

I have put out questions on the HP side as well but I am just puzzled 
why Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele



David Smith [EMAIL PROTECTED]
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files 
created under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

  

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file

is



  

ftp'd to the webserver the permissions are -rw-r- and browsers 
trying



  

to access the url are forbidden to view.  Once I chmod 666 the file 
then browsers gain access.  But as my website changes constantly I 
don't want to do this every time.  Apache is owned by 'root' but I 
administer and


own
  

the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele






-
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: out of memory error

2006-07-19 Thread David Tonhofer


MW Janssen wrote:

java.lang.OutOfMemoryError: unable to create new native thread


Are you it isn't just the heap and/or stack that's too small? Try 
starting the Jvm with
one of the extended options line -Xss500k -Xmx100m (if it is the Sun 
JVM)


-
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: TransformerFactoryConfigurationError

2006-07-19 Thread Christopher Schultz
Ravi,

 Hm. I did a full computer search for that file and I don't seem to have it.
 Is there a place I can download it?

It might not be called xalan.jar. It might have a version number
embedded in it or something like that. Try running this command (or
something similar if you're on win32):

$ unzip $JAVA_HOME/jre/lib/rt.jar | grep TransformerFactoryImpl

...and see if you get anything like that. If you /do/, then something is
very wrong, and I won't be much help. All I could suggest is that you
reinstall the JDK. :(

If it isn't there, it might be worth finding out why Java is trying to
use that particular implementation of an XSLT processor. Perhaps some
other software you are using is configuring JAXP (that's the stuff in
javax.xml.*) to use Xalan, but not providing the library.

If that's the case, you can get Xalan from http://xalan.apache.org/.
Download it and install the JAR file in your webapp's WEB-INF/lib directory.

Good luck,
-chris




signature.asc
Description: OpenPGP digital signature


RE: [OT] Problems with file permissions

2006-07-19 Thread Michele . A . Shiels
Thanks for the help -  I'll tweak the ftp side.

Regards,
Michele



Mead, Jennifer L - VSCM [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:35
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
RE: [OT] Problems with file permissions






Michelle,

I am jumping into the middle of this thread so I apologize.  If you set
the umask of the owner of the files.  So when you do a listing ls -alt
in the directory that the files are in and see the owner.  Then go into
that user's .profile in their home directory you can set the umask.
Like for instance you could say: umask a=rw.

Hope that helps,
Jennifer 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 7:29 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions

We answer all kinds of questions here.  Just protocol to mark off topic
posts as such.

In the Unix environment, the ftp service (not to be confused with the
ftp client) can depending on vendor be configured to set permissions as
it receives files.  I know in ProFTPd, it's set using the umask config
setting.  Try to find out what ftp service you have on the server and
look at it's man pages for info on what config settings are available.

Actually, it's not Apache that cares about file permissions, but the OS
(unix in this case).  Apache may start as root, but it's workers are all
spawned as unprivileged users (the user 'apache' in my the case of my
server) and the OS will deny access if the apache worker doesn't at
minimum have read access.

--David

[EMAIL PROTECTED] wrote:

Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a 
Unix box so windows doesn't know about setting file permissions in this

instance.

I have put out questions on the HP side as well but I am just puzzled 
why Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele



David Smith [EMAIL PROTECTED]
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files 
created under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

 

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file

is
 


 

ftp'd to the webserver the permissions are -rw-r- and browsers 
trying
 


 

to access the url are forbidden to view.  Once I chmod 666 the file 
then browsers gain access.  But as my website changes constantly I 
don't want to do this every time.  Apache is owned by 'root' but I 
administer and
 

own
 

the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele


 



-
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: TransformerFactoryConfigurationError

2006-07-19 Thread Ravi Tharakan

I don't really know enough about the command line to know what you mean by
that command, but when I tried copying and pasting it told me '$' not
recognized.

However, I did open up the rt.jar in winzip and I did see some files called
XSLT, etc. Is that what you mean?

On 7/19/06, Christopher Schultz [EMAIL PROTECTED] wrote:


Ravi,

 Hm. I did a full computer search for that file and I don't seem to have
it.
 Is there a place I can download it?

It might not be called xalan.jar. It might have a version number
embedded in it or something like that. Try running this command (or
something similar if you're on win32):

$ unzip $JAVA_HOME/jre/lib/rt.jar | grep TransformerFactoryImpl

...and see if you get anything like that. If you /do/, then something is
very wrong, and I won't be much help. All I could suggest is that you
reinstall the JDK. :(

If it isn't there, it might be worth finding out why Java is trying to
use that particular implementation of an XSLT processor. Perhaps some
other software you are using is configuring JAXP (that's the stuff in
javax.xml.*) to use Xalan, but not providing the library.

If that's the case, you can get Xalan from http://xalan.apache.org/.
Download it and install the JAR file in your webapp's WEB-INF/lib
directory.

Good luck,
-chris







RE: out of memory error

2006-07-19 Thread MW Janssen

Hi, 

These are my parameters:

I have Xmx1024m and Xms1024m as well for the heap size memory. I dont set
Xss so I presume I use the default value.
My Operating System:

OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM: 2.00Gb
Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from
lambdaprobe)

Maarten

-Oorspronkelijk bericht-
Van: David Tonhofer [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 19 juli 2006 16:57
Aan: Tomcat Users List
Onderwerp: Re: out of memory error


MW Janssen wrote:

java.lang.OutOfMemoryError: unable to create new native thread


Are you it isn't just the heap and/or stack that's too small? Try starting
the Jvm with one of the extended options line -Xss500k -Xmx100m (if it
is the Sun
JVM)

-
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.10.1/391 - Release Date: 18-7-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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: Problems with file permissions

2006-07-19 Thread Propes, Barry L
don't think you can...you  usually have to administer that by some FTP tool. At 
least typically you do.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 8:57 AM
To: users@tomcat.apache.org
Subject: Problems with file permissions


Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 
ftp'd to the webserver the permissions are -rw-r- and browsers trying 
to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele

-
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: out of memory error

2006-07-19 Thread Propes, Barry L
possibly like I (incorrectly, because he was on UNIX) told a guy the other day.

Go to startup.bat, right click and change (under the Memory tab) properties in 
the Initial Environment box from Auto to 4096 or higher.

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:01 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


Guys,

I am on a Windows NT platform so not Unix..solution?

Maarten

-Oorspronkelijk bericht-
Van: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 19 juli 2006 15:57
Aan: Tomcat Users List
Onderwerp: Re: out of memory error

On 7/19/06, Jon Wingfield [EMAIL PROTECTED] wrote:
 The process running tomcat can't (read isn't allowed by OS) to create 
 any more threads:

 java.lang.OutOfMemoryError: unable to create new native thread

 If you are on unix you can up the number by tinkering with the ulimit 
 command.

but if you are on 2.4.x kernel, you're lost, since it can't create many
threads (max 500-600).

leon


 HTH,

 Jon

 MW Janssen wrote:
  Hi,
 
  Can anyone explain and suggest a solution on error below:
 
  Jul 19, 2006 12:49:18 PM
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
  SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to 
  create new native thread) executing HYPERLINK 
  mailto:[EMAIL PROTECTED]
  org.apa [EMAIL PROTECTED], 
  terminating thread Jul 19, 2006 1:25:30 PM 
  org.apache.coyote.http11.Http11Protocol pause
  INFO: Pausing Coyote HTTP/1.1 on http-80 Jul 19, 2006 1:25:31 PM 
  org.apache.catalina.core.StandardService stop
  INFO: Stopping service Tomcat-Standalone Jul 19, 2006 1:25:32 PM 
  org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006 
  1:25:32 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006 
  1:25:33 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006 
  1:25:34 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006 
  1:25:34 PM org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006 
  1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
  INFO: Stopping Coyote HTTP/1.1 on http-80
 
  Regards,
 
  Maarten Janssen
 
 



 -
 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.10.1/391 - Release Date: 18-7-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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]


-
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: [OT] Problems with file permissions

2006-07-19 Thread Propes, Barry L
Michelle. See if you can create a new folder on the UNIX server while in an FTP 
program like CoreFTP or WinsockFTP.

Then dump everything to THAT folder and see if permissions are kept intact.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:16 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions


Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele 



David Smith [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele
 



-
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: out of memory error

2006-07-19 Thread MW Janssen
i dont see a memory tab when i right click.. 

-Oorspronkelijk bericht-
Van: Propes, Barry L [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 19 juli 2006 17:32
Aan: Tomcat Users List
Onderwerp: RE: out of memory error

possibly like I (incorrectly, because he was on UNIX) told a guy the other
day.

Go to startup.bat, right click and change (under the Memory tab) properties
in the Initial Environment box from Auto to 4096 or higher.

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:01 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


Guys,

I am on a Windows NT platform so not Unix..solution?

Maarten

-Oorspronkelijk bericht-
Van: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 19 juli 2006 15:57
Aan: Tomcat Users List
Onderwerp: Re: out of memory error

On 7/19/06, Jon Wingfield [EMAIL PROTECTED] wrote:
 The process running tomcat can't (read isn't allowed by OS) to create 
 any more threads:

 java.lang.OutOfMemoryError: unable to create new native thread

 If you are on unix you can up the number by tinkering with the ulimit 
 command.

but if you are on 2.4.x kernel, you're lost, since it can't create many
threads (max 500-600).

leon


 HTH,

 Jon

 MW Janssen wrote:
  Hi,
 
  Can anyone explain and suggest a solution on error below:
 
  Jul 19, 2006 12:49:18 PM
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
  SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to 
  create new native thread) executing HYPERLINK
  mailto:[EMAIL PROTECTED]
  org.apa [EMAIL PROTECTED],
  terminating thread Jul 19, 2006 1:25:30 PM 
  org.apache.coyote.http11.Http11Protocol pause
  INFO: Pausing Coyote HTTP/1.1 on http-80 Jul 19, 2006 1:25:31 PM 
  org.apache.catalina.core.StandardService stop
  INFO: Stopping service Tomcat-Standalone Jul 19, 2006 1:25:32 PM 
  org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:32 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:33 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
  INFO: Stopping Coyote HTTP/1.1 on http-80
 
  Regards,
 
  Maarten Janssen
 
 



 -
 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.10.1/391 - Release Date: 18-7-2006
 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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]


-
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.10.1/391 - Release Date: 18-7-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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: TransformerFactoryConfigurationError

2006-07-19 Thread Christopher Schultz
Ravi,

 I don't really know enough about the command line to know what you mean by
 that command, but when I tried copying and pasting it told me '$' not
 recognized.

Oh, sorry about that. The $ is a UNIX thing. Your use of Winzip is
just as good.

 However, I did open up the rt.jar in winzip and I did see some files called
 XSLT, etc. Is that what you mean?

Perhaps. You're looking for the file
org/apache/xalan/processor/TransformerFactoryImpl.class inside that
JAR file. If it's not in there, check any other files in that same
directory (or also the ext directory within JAVA_HOME/jre/lib) to see
if they have that file.

-chris




signature.asc
Description: OpenPGP digital signature


Re: TransformerFactoryConfigurationError

2006-07-19 Thread Ravi Tharakan

The TransformerFactoryImpl.class is there, but it's path is
com/sun/org/apache/xalan/internal/xsltc/trax/

Do you think this is the problem?

On 7/19/06, Christopher Schultz [EMAIL PROTECTED] wrote:


Ravi,

 I don't really know enough about the command line to know what you mean
by
 that command, but when I tried copying and pasting it told me '$' not
 recognized.

Oh, sorry about that. The $ is a UNIX thing. Your use of Winzip is
just as good.

 However, I did open up the rt.jar in winzip and I did see some files
called
 XSLT, etc. Is that what you mean?

Perhaps. You're looking for the file
org/apache/xalan/processor/TransformerFactoryImpl.class inside that
JAR file. If it's not in there, check any other files in that same
directory (or also the ext directory within JAVA_HOME/jre/lib) to see
if they have that file.

-chris







Re: out of memory error

2006-07-19 Thread Christopher Schultz
Barry,

 possibly like I (incorrectly, because he was on UNIX) told a guy the other 
 day.
 
 Go to startup.bat, right click and change (under the Memory tab)
 properties in the Initial Environment box from Auto to 4096 or higher.

This still isn't going to change anything: Modifying the environment for
the startup.bat file doesn't change the memory size for the JVM or the
number of threads it is allowed to create.

The initial environment size in a windows process is the amount of
memory (usually specified in kb) allocated for the environment. That's
where DOS stores environment variables like PATH, COMSPEC, PROMPT,
etc. You can see what's in the environment by running cmd or command
and typing set.

Increasing the environment size will not change any of the JVM settings,
because the JVM runs in a separate process started by the startup.bat
file. The only way to modify the JVM settings is to do one of the following:

1. Modify the catalina.bat file and add your options to the
   JAVA_OPTS environment variable (you may have to add

   SET JAVA_OPTS= [insert your java ops here] 

   to the script).
2. Set the JAVA_OPTS from the command line before launching startup.bat.

#2 is nice to use because it's easy to test: open a command window (run
cmd or command), set the JAVA_OPTS and then run startup.bat. If you
run tomcat as a service, it doesn't invoke catalina.bat, so you'll have
to read this document:

http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html

And set the JvmOptions command-line parameter. I've never done this
myself, so you might need to get help from someone else if you need it.
Also, this document is marked as obsolete, so there may be newer or
better documentation out there for running tomcat as a windows service.

Not sure why you'd want to run an app server on windoze, though ;)

-chris




signature.asc
Description: OpenPGP digital signature


RE: out of memory error

2006-07-19 Thread Propes, Barry L
look in your windows folder.

Yeah, I'm looking at mine and it's not giving me that either. I'm starting to 
think that was for Win 98 or even 95 where I did that.

Let me see if it can be done in the Environmental Variables tab. Although some 
config instructions I'm reading are saying theoretically in WinXP or Win2K, you 
shouldn't have to do that.

Which version are you using, Maarten?

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 10:40 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


i dont see a memory tab when i right click.. 

-Oorspronkelijk bericht-
Van: Propes, Barry L [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 19 juli 2006 17:32
Aan: Tomcat Users List
Onderwerp: RE: out of memory error

possibly like I (incorrectly, because he was on UNIX) told a guy the other
day.

Go to startup.bat, right click and change (under the Memory tab) properties
in the Initial Environment box from Auto to 4096 or higher.

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:01 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


Guys,

I am on a Windows NT platform so not Unix..solution?

Maarten

-Oorspronkelijk bericht-
Van: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 19 juli 2006 15:57
Aan: Tomcat Users List
Onderwerp: Re: out of memory error

On 7/19/06, Jon Wingfield [EMAIL PROTECTED] wrote:
 The process running tomcat can't (read isn't allowed by OS) to create 
 any more threads:

 java.lang.OutOfMemoryError: unable to create new native thread

 If you are on unix you can up the number by tinkering with the ulimit 
 command.

but if you are on 2.4.x kernel, you're lost, since it can't create many
threads (max 500-600).

leon


 HTH,

 Jon

 MW Janssen wrote:
  Hi,
 
  Can anyone explain and suggest a solution on error below:
 
  Jul 19, 2006 12:49:18 PM
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
  SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to 
  create new native thread) executing HYPERLINK
  mailto:[EMAIL PROTECTED]
  org.apa [EMAIL PROTECTED],
  terminating thread Jul 19, 2006 1:25:30 PM 
  org.apache.coyote.http11.Http11Protocol pause
  INFO: Pausing Coyote HTTP/1.1 on http-80 Jul 19, 2006 1:25:31 PM 
  org.apache.catalina.core.StandardService stop
  INFO: Stopping service Tomcat-Standalone Jul 19, 2006 1:25:32 PM 
  org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:32 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:33 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
  INFO: Stopping Coyote HTTP/1.1 on http-80
 
  Regards,
 
  Maarten Janssen
 
 



 -
 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.10.1/391 - Release Date: 18-7-2006
 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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]


-
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.10.1/391 - Release Date: 18-7-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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]


-
To 

RE: out of memory error

2006-07-19 Thread MW Janssen
These are my parameters:

I have Xmx1024m and Xms1024m as well for the heap size memory. I dont set
Xss so I presume I use the default value.
My Operating System:

OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM: 2.00Gb
Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from
lambdaprobe)

THX!

Maarten

 

-Oorspronkelijk bericht-
Van: Propes, Barry L [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 19 juli 2006 18:02
Aan: Tomcat Users List
Onderwerp: RE: out of memory error

look in your windows folder.

Yeah, I'm looking at mine and it's not giving me that either. I'm starting
to think that was for Win 98 or even 95 where I did that.

Let me see if it can be done in the Environmental Variables tab. Although
some config instructions I'm reading are saying theoretically in WinXP or
Win2K, you shouldn't have to do that.

Which version are you using, Maarten?

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 10:40 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


i dont see a memory tab when i right click.. 

-Oorspronkelijk bericht-
Van: Propes, Barry L [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 19 juli 2006 17:32
Aan: Tomcat Users List
Onderwerp: RE: out of memory error

possibly like I (incorrectly, because he was on UNIX) told a guy the other
day.

Go to startup.bat, right click and change (under the Memory tab) properties
in the Initial Environment box from Auto to 4096 or higher.

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:01 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


Guys,

I am on a Windows NT platform so not Unix..solution?

Maarten

-Oorspronkelijk bericht-
Van: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 19 juli 2006 15:57
Aan: Tomcat Users List
Onderwerp: Re: out of memory error

On 7/19/06, Jon Wingfield [EMAIL PROTECTED] wrote:
 The process running tomcat can't (read isn't allowed by OS) to create 
 any more threads:

 java.lang.OutOfMemoryError: unable to create new native thread

 If you are on unix you can up the number by tinkering with the ulimit 
 command.

but if you are on 2.4.x kernel, you're lost, since it can't create many
threads (max 500-600).

leon


 HTH,

 Jon

 MW Janssen wrote:
  Hi,
 
  Can anyone explain and suggest a solution on error below:
 
  Jul 19, 2006 12:49:18 PM
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
  SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to 
  create new native thread) executing HYPERLINK
  mailto:[EMAIL PROTECTED]
  org.apa [EMAIL PROTECTED],
  terminating thread Jul 19, 2006 1:25:30 PM 
  org.apache.coyote.http11.Http11Protocol pause
  INFO: Pausing Coyote HTTP/1.1 on http-80 Jul 19, 2006 1:25:31 PM 
  org.apache.catalina.core.StandardService stop
  INFO: Stopping service Tomcat-Standalone Jul 19, 2006 1:25:32 PM 
  org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:32 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:33 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
  INFO: Stopping Coyote HTTP/1.1 on http-80
 
  Regards,
 
  Maarten Janssen
 
 



 -
 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.10.1/391 - Release Date: 18-7-2006
 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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]


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

RE: out of memory error

2006-07-19 Thread Propes, Barry L
wow! That should be plenty of free space and memory. Not at all sure why you're 
running out upon startup.



-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 11:03 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


These are my parameters:

I have Xmx1024m and Xms1024m as well for the heap size memory. I dont set
Xss so I presume I use the default value.
My Operating System:

OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM: 2.00Gb
Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from
lambdaprobe)

THX!

Maarten

 

-Oorspronkelijk bericht-
Van: Propes, Barry L [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 19 juli 2006 18:02
Aan: Tomcat Users List
Onderwerp: RE: out of memory error

look in your windows folder.

Yeah, I'm looking at mine and it's not giving me that either. I'm starting
to think that was for Win 98 or even 95 where I did that.

Let me see if it can be done in the Environmental Variables tab. Although
some config instructions I'm reading are saying theoretically in WinXP or
Win2K, you shouldn't have to do that.

Which version are you using, Maarten?

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 10:40 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


i dont see a memory tab when i right click.. 

-Oorspronkelijk bericht-
Van: Propes, Barry L [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 19 juli 2006 17:32
Aan: Tomcat Users List
Onderwerp: RE: out of memory error

possibly like I (incorrectly, because he was on UNIX) told a guy the other
day.

Go to startup.bat, right click and change (under the Memory tab) properties
in the Initial Environment box from Auto to 4096 or higher.

-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:01 AM
To: 'Tomcat Users List'
Subject: RE: out of memory error


Guys,

I am on a Windows NT platform so not Unix..solution?

Maarten

-Oorspronkelijk bericht-
Van: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 19 juli 2006 15:57
Aan: Tomcat Users List
Onderwerp: Re: out of memory error

On 7/19/06, Jon Wingfield [EMAIL PROTECTED] wrote:
 The process running tomcat can't (read isn't allowed by OS) to create 
 any more threads:

 java.lang.OutOfMemoryError: unable to create new native thread

 If you are on unix you can up the number by tinkering with the ulimit 
 command.

but if you are on 2.4.x kernel, you're lost, since it can't create many
threads (max 500-600).

leon


 HTH,

 Jon

 MW Janssen wrote:
  Hi,
 
  Can anyone explain and suggest a solution on error below:
 
  Jul 19, 2006 12:49:18 PM
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
  SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to 
  create new native thread) executing HYPERLINK
  mailto:[EMAIL PROTECTED]
  org.apa [EMAIL PROTECTED],
  terminating thread Jul 19, 2006 1:25:30 PM 
  org.apache.coyote.http11.Http11Protocol pause
  INFO: Pausing Coyote HTTP/1.1 on http-80 Jul 19, 2006 1:25:31 PM 
  org.apache.catalina.core.StandardService stop
  INFO: Stopping service Tomcat-Standalone Jul 19, 2006 1:25:32 PM 
  org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:32 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:33 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.StandardWrapper unload
  INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
  1:25:34 PM org.apache.catalina.core.ApplicationContext log
  INFO: action: Finalizing this controller servlet Jul 19, 2006
  1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
  INFO: Stopping Coyote HTTP/1.1 on http-80
 
  Regards,
 
  Maarten Janssen
 
 



 -
 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.10.1/391 - Release Date: 18-7-2006
 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-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: out of memory error

2006-07-19 Thread Jon Wingfield

This may be of help (emphasis on may):

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4765019

Has a bit about tuning Xss for a high number of threads.

MW Janssen wrote:
Hi, 


These are my parameters:

I have Xmx1024m and Xms1024m as well for the heap size memory. I dont set
Xss so I presume I use the default value.
My Operating System:

OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM: 2.00Gb
Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from
lambdaprobe)

Maarten

-Oorspronkelijk bericht-
Van: David Tonhofer [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 19 juli 2006 16:57

Aan: Tomcat Users List
Onderwerp: Re: out of memory error


MW Janssen wrote:

java.lang.OutOfMemoryError: unable to create new native thread


Are you it isn't just the heap and/or stack that's too small? Try starting
the Jvm with one of the extended options line -Xss500k -Xmx100m (if it
is the Sun
JVM)

-
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.10.1/391 - Release Date: 18-7-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: TransformerFactoryConfigurationError

2006-07-19 Thread Christopher Schultz
Ravi,

 The TransformerFactoryImpl.class is there, but it's path is
 com/sun/org/apache/xalan/internal/xsltc/trax/
 
 Do you think this is the problem?

Probably.

There's a system property that dictates which implementations are chosen
for SAX and DOM parsers, as well as XSLT processors. It's odd that it's
being set to something that is invalid.

I don't remember what those system properties are, but you can get the
current list at any time by doing this:

System.getProperties().list(System.out);

This will dump the current system properties to standard output. If you
put this into a JSP and hit it with a web browser, it will dump the
system properties, and you can check them out.

Then, you can see which one is pointing to the wrong XSLT processor and
possibly correct it. (Just start Java with
-Dthat.system.property=com.sun.org.apache.xalan.internal.trax.TransformerFactoryImpl,
or whatever seems most appropriate given the current value of that
system property).

If you can't find a system property with that (incorrect) class being
mentioned, then it's probably some kind (unfortunately) incorrect
default value. In that case, you'll have to start looking around on the
web for sites that describe how to set the default.

Good luck,
-chris




signature.asc
Description: OpenPGP digital signature


Re: Increase Heapsize

2006-07-19 Thread Christopher Schultz
Ibrahim,

 How do you increase heapsize if the suggestion is to keep the Xms and Xmx 
 values the same?

When he says the same, he means the same as each other, not the
same as they were before. So, use Xms=Xmx:

-Xms512 -Xmx512
or
-Xms1024 -Xmx1024
or
-Xms2048 -Xmx2048
or
-Xms4096 -Xmx4096

-chris




signature.asc
Description: OpenPGP digital signature


Re: Increase Heapsize

2006-07-19 Thread Ibrahim . Siddiqui

Chris

The current values on our system are:
-Xms512  -Xmx1024

so if I wished to increase the heapsize, can you give an example what the new figures would be?


Thanks,
Ibrahim






Christopher Schultz [EMAIL PROTECTED]
07/19/2006 09:38 AM
Please respond to Tomcat Users List


To:Tomcat Users List users@tomcat.apache.org
cc:
Subject:Re: Increase Heapsize


Ibrahim,

 How do you increase heapsize if the suggestion is to keep the Xms and Xmx 
 values the same?

When he says the same, he means the same as each other, not the
same as they were before. So, use Xms=Xmx:

-Xms512 -Xmx512
or
-Xms1024 -Xmx1024
or
-Xms2048 -Xmx2048
or
-Xms4096 -Xmx4096

-chris




**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

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: Increase Heapsize

2006-07-19 Thread Christopher Schultz
Ibrahim,

  The current values on our system are:
 -Xms512   -Xmx1024
 
 so if I wished to increase the heapsize, can you give an example what
 the new figures would be?

You really need to do more research on your own:

-Xms = set initial Java heap size
-Xmx = set maximum Java heap size

If you are currently allocating 1GB (-Xmx1024), then you probably want
to set it to something /bigger/ than 1GB. Perhaps 1.5GB:

-Xmx1536

Upon the recommendation of another poster, you might want to set the
initial and the maximum to the same thing (that will allocate the entire
Java heap at once, instead of forcing the memory manager to grow the
heap during runtime):

-Xms1536 -Xmx1536

It's up to you to decide what your heap size should be. You need to
understand the operation and needs of your application, as well as
pattern of usage by your users to choose a good heap size. You can
certainly allocate a HUGE heap and cross your fingers, but that is not
always a good strategy -- especially when you are limited by physical
RAM as well as the other processes running on your server.

Hope that helps,
-chris




signature.asc
Description: OpenPGP digital signature


Re: out of memory error

2006-07-19 Thread Martin Gainty
Good Afternoon Jon-

set Max Mem and Min Mem within jvm.cfg (-Xmx and -Xms options) to the same 
value 
http://java.sun.com/docs/hotspot/PerformanceFAQ.html#8

Exercise caution on playing with stack SS
64k is mightly lean
512k(default for Sparc) and 256k(default for Intel) usually is plenty unless 
your program has some grossly huge stack allocations

Drivers-
Also be mindful of synch points for Type 2 (OCI) drivers vs using Type 4 (thin) 
drivers..

HTH
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: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 12:12 PM
Subject: Re: out of memory error


 This may be of help (emphasis on may):
 
 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4765019
 
 Has a bit about tuning Xss for a high number of threads.
 
 MW Janssen wrote:
 Hi, 
 
 These are my parameters:
 
 I have Xmx1024m and Xms1024m as well for the heap size memory. I dont set
 Xss so I presume I use the default value.
 My Operating System:
 
 OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM: 2.00Gb
 Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from
 lambdaprobe)
 
 Maarten
 
 -Oorspronkelijk bericht-
 Van: David Tonhofer [mailto:[EMAIL PROTECTED] 
 Verzonden: woensdag 19 juli 2006 16:57
 Aan: Tomcat Users List
 Onderwerp: Re: out of memory error
 
 
 MW Janssen wrote:
 
 java.lang.OutOfMemoryError: unable to create new native thread
 
 
 Are you it isn't just the heap and/or stack that's too small? Try starting
 the Jvm with one of the extended options line -Xss500k -Xmx100m (if it
 is the Sun
 JVM)
 
 -
 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.10.1/391 - Release Date: 18-7-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]
 


Where to get Tomcat 5.5.15 source

2006-07-19 Thread Edmon Begoli

I noticed that Tomcat 5.5.15 source is not available for downloads any more.

I see 5.0.x versions and 5.5.16, ..17 but not a 5.5.15.

Does anyone know where can I download the 5.5.15 source?

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


Re: Where to get Tomcat 5.5.15 source

2006-07-19 Thread Markus Schönhaber
Edmon Begoli wrote:
 Does anyone know where can I download the 5.5.15 source?

http://archive.apache.org/dist/tomcat/tomcat-5/archive/v5.5.15/src/

Regards
  mks

-
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: Intermediate write in JSP

2006-07-19 Thread Martin Gainty
I agree with Nikola-

I would run an execution plan on the query in question ..and do so locally (vs 
a DB 500 miles distant)
specifically note the access (do you see any FTS?) and time deltas (more than 
30 sec to see results merits tuning(
Note 
-the attenuated time delta and 
-faster access via hinted HASH/NL Joins etc..

HTH
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: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 3:01 AM
Subject: Re: Intermediate write in JSP


 I had a similar issue in the past that I overcome by having the servlet
 start a separate thread that was producing the report,
 And a jsp page refreshing every 10 seconds or so checking for completion.
 
 
 That is, of course, the asynchronous application design. Sometimes it is 
 necessary, but it does bring a question. What is being so slow? Sending the 
 amount of data you're sending is not slower than it can be. My guess is that 
 DB is taking a rather long time to complete the query. I would not blame the 
 network, because the Net connection between DB and TC should be at least as 
 fast as the one between TC and your client.
 
 So, the original poster might wanna take a look at the DB for speeding it up. 
 It might not be possible, though.
 
 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]
 


Re: Increase Heapsize

2006-07-19 Thread Ibrahim . Siddiqui

I understand.
The webapp is a content management site which has been producing out of memory errors.
The server has 16GB RAM which is quite significant.
Curious:are there any other adantages to setting them the same?

I'm assuming that
going from:
-Xms512 -Xmx1024
to
-Xms512 -Xmx2048

is less desirable than
-Xms512 -Xmx1024 
to
-Xms2048 -Xmx2048

?
Understandable this may not apply in every case








Christopher Schultz [EMAIL PROTECTED]
07/19/2006 09:52 AM
Please respond to Tomcat Users List


To:Tomcat Users List users@tomcat.apache.org
cc:
Subject:Re: Increase Heapsize


Ibrahim,

 The current values on our system are:
 -Xms512  -Xmx1024
 
 so if I wished to increase the heapsize, can you give an example what
 the new figures would be?

You really need to do more research on your own:

-Xms = set initial Java heap size
-Xmx = set maximum Java heap size

If you are currently allocating 1GB (-Xmx1024), then you probably want
to set it to something /bigger/ than 1GB. Perhaps 1.5GB:

-Xmx1536

Upon the recommendation of another poster, you might want to set the
initial and the maximum to the same thing (that will allocate the entire
Java heap at once, instead of forcing the memory manager to grow the
heap during runtime):

-Xms1536 -Xmx1536

It's up to you to decide what your heap size should be. You need to
understand the operation and needs of your application, as well as
pattern of usage by your users to choose a good heap size. You can
certainly allocate a HUGE heap and cross your fingers, but that is not
always a good strategy -- especially when you are limited by physical
RAM as well as the other processes running on your server.

Hope that helps,
-chris




**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

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: TransformerFactoryConfigurationError

2006-07-19 Thread Ravi Tharakan

Sorry, this is going over my head. Is there a way to look at the system
properties without having to write a JSP?

On 7/19/06, Christopher Schultz [EMAIL PROTECTED] wrote:


Ravi,

 The TransformerFactoryImpl.class is there, but it's path is
 com/sun/org/apache/xalan/internal/xsltc/trax/

 Do you think this is the problem?

Probably.

There's a system property that dictates which implementations are chosen
for SAX and DOM parsers, as well as XSLT processors. It's odd that it's
being set to something that is invalid.

I don't remember what those system properties are, but you can get the
current list at any time by doing this:

System.getProperties().list(System.out);

This will dump the current system properties to standard output. If you
put this into a JSP and hit it with a web browser, it will dump the
system properties, and you can check them out.

Then, you can see which one is pointing to the wrong XSLT processor and
possibly correct it. (Just start Java with
-
Dthat.system.property=com.sun.org.apache.xalan.internal.trax.TransformerFactoryImpl
,
or whatever seems most appropriate given the current value of that
system property).

If you can't find a system property with that (incorrect) class being
mentioned, then it's probably some kind (unfortunately) incorrect
default value. In that case, you'll have to start looking around on the
web for sites that describe how to set the default.

Good luck,
-chris







RE: Increase Heapsize

2006-07-19 Thread Peter Crowther
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 The server has 16GB RAM which is quite significant. 

- What OS is it running?  And is that 32- or 64-bit?  Apologies if
you've already told us.

- Are you running a 64-bit JVM to gain access to all that lovely space?

- How much *free* RAM does the server report?

- Peter

-
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: Random HTTP 502 errors

2006-07-19 Thread Martin Gainty
Mark-

You're in luck
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
The Tomcat 5.5. spec supports LINGER attribute on the Connection 
connectionLinger = NumberOfSecs

HTH,
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: Mark Claassen [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 8:54 AM
Subject: RE: Random HTTP 502 errors


 
 I was wondering if this is just caused by Tomcat closing the socket before
 the proxy finished reading the message.  Is there a way to set the LINGER on
 these sockets?  
 
 It still seems a big strange to me that the LINGER could be a problem, since
 there are no problems when not using the proxy.  If it was the LINGER I
 would expect that our Java client would have problems too.  Still, it is
 something I can look in to, as I am currently at a loss for any other
 theories.
 
 Lastly, setting the debug level in a connector does not seem to do anything
 for me.  What is the secret to getting debug output on the connectors?
 
 Mark
 
 -Original Message-
 From: Mark Claassen [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 18, 2006 5:04 PM
 To: 'Tomcat Users List'
 Subject: Random HTTP 502 errors
 
 I was wondering if anyone could shed some light on some strange 502 errors I
 am having when going through a proxy.  We are using a relatively new proxy
 server Sun-Java-System-Web-Proxy-Server/4.0
 
 The error seems to be originating between Tomcat and the proxy.  When the
 error occurs, the proxy logs say:
 Error reading response header.  Server closed connection.
 
 On a thousand rapid requests from a client thread, I will get this only 0 -
 3 times.
 
 If I send the response header Connection: close on every request from my
 servlet, I do not get the error.  However, I do not want to disable
 persistent connections.
 
 I did a snoop, and I noticed that the responses I get (on the same socket) a
 bunch of replies with this header:
 
 HTTP/1.1 200 OK 
 Transfer-Encoding: chunked 
 Date: Tue, 18 Jul 2006 19:35:12 GMT 
 Server: Apache-Coyote/1.1
 
 On the last one for a given socket,
 HTTP/1.1 200 OK 
 Date: Tue, 18 Jul 2006 19:35:12 GMT 
 Server: Apache-Coyote/1.1 
 Connection: close
 
 Any guidance or insight would be greatly appreciated.
 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]
 
 
 -
 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: [OT] Problems with file permissions

2006-07-19 Thread Martin Gainty
echo $HOME
(this is your users home folder where all FTP access should get files from OR 
put files to..)

HTH
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: Propes, Barry L [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 11:33 AM
Subject: RE: [OT] Problems with file permissions


Michelle. See if you can create a new folder on the UNIX server while in an FTP 
program like CoreFTP or WinsockFTP.

Then dump everything to THAT folder and see if permissions are kept intact.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:16 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions


Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele 



David Smith [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele
 



-
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: Increase Heapsize

2006-07-19 Thread Ibrahim . Siddiqui
OS: Solaris
64 bit
16 GB ram
**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

Thank you.



RE: Increase Heapsize

2006-07-19 Thread Peter Crowther
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 OS: Solaris

OK.

 64 bit

OK.

 16 GB ram

Your server only *has* 16 Gbytes of RAM.  If it also has 16 Gbytes of
*free* RAM, which is what I asked, then you have an unusually slim
version of Solaris ;-).

Anyway, given that lot you're tinkering at the edges by allocating a
mere gigabyte or so to your JVM.  If you have enough RAM and if the JVM
running Tomcat is the main application on the system, I'd give it (say)
80% of the free (note *free*, not total) RAM on your system.  That gives
a couple of gig for unusual overhead such as maintenance scripts.  If
you're living alongside other applications or database servers, you'll
have to size the JVM appropriately.  The 64-bit Sun JVMs will quite
happily take as much RAM as you throw at them, at least for the next
couple of years while memory technology catches up.

- Peter

-
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: The requested resource is not available

2006-07-19 Thread Martin Gainty
WebApp/MappedClassName..

so if you are referencing WebApp 'Foo' 
and inside web.xml your servlet-mapping
has the entry
   servlet-name/servlet/Bar/servlet-name
the correct url would be
http://Server:PortName/Foo/servlet/Bar

Make sense??
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: Darren Hall [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 1:57 PM
Subject: RE: The requested resource is not available


Here's something else I tried.
I thought that perhaps my mapping was set incorrectly such that when I tried
to go to http://localhost:8080/abc/abc the request was being picked up by my
servlet, but this does not seem to be the case.

When I attempt to go to the above URL I get the error The requested
resource (/abc/abc) is not available.

What am I doing wrong here? I remember being able to configure Tomcat before
so that a give URL pattern would map to a corresponding servlet, but for
some reason, I'm unable to get it to work now.

Any help would be greatly appreciated.

Thanks,

Darren


-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 9:03 AM
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: RE: The requested resource is not available

Thanks for the response Hassan.

 But if the above url-pattern is in a Context with path '/abc', then you're
 telling it to give everything that looks like 
 'http://localhost:8080/abc/abc'
 to your control servlet, which probably isn't what you want...  :-)

No, you are exactly right. This is *not* what I want. I want the servlet to
get everything from 'http://localhost:8080/abc'. Would you mind explaining
where I went wrong?

 The Context configuration would be helpful, though.

As for Context, I don't have any context information in my web.xml file (I
don't believe... at least I have no Context element present in the file).
What I posted before was nearly the entire web.xml. I can post the whole
file if you'd like.

Thanks,

Darren


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



Database Connection Error Cannot create PoolableConnectionFactory

2006-07-19 Thread Cameron Currie

Hello everyone,

Background:

I have a newly installed and configured Ubuntu server running
Tomcat5.5 and Mysql 5.0. This server was created in an attempt to
migrate from a Red Hat server in a similar configuration, running the
exact same webapp. Most of the configuration/classpath differences
between the two platforms have been ironed out.

The Problem:

When our webapp trys to connect to the database on localhost, an exception

'java.security.AccessControlException: access denied
(java.net.SocketPermission localhost resolve)'

is generated.

The server.xml configuration is below:

Resource name=jdbc/EconDollarsDB
auth=Container
type=javax.sql.DataSource
username=user
password=pass
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/DBName?autoReconnect=true
maxActive=20 maxIdle=5
/



I can connect to the database just fine using the command line client
and the same username/password combo. This configuration has been
working fine for at least a year on the older server. The only similar
problems I have found on the net (meaning the same exception is
generated) involve applets and attempts to connect to different hosts.
This case involves a webapp, connecting to localhost, using a
configuration that is known to work. I am simply baffled.

The following stacktrace is generated:

javax.servlet.ServletException: Database Connection Error
Cannot create PoolableConnectionFactory (Server connection failure
during transaction. Due to underlying exception:
'java.security.AccessControlException: access denied
(java.net.SocketPermission localhost resolve)'.

** BEGIN NESTED EXCEPTION **

java.security.AccessControlException
MESSAGE: access denied (java.net.SocketPermission localhost resolve)

STACKTRACE:

java.security.AccessControlException: access denied
(java.net.SocketPermission localhost resolve)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at 
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1031)
at java.net.InetAddress.getAllByName0(InetAddress.java:1117)
at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
at java.net.InetAddress.getAllByName(InetAddress.java:1061)
at 
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2769)
at com.mysql.jdbc.Connection.init(Connection.java:1531)
at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at 
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at 
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at 
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at 
edu.tamu.erl.database.dblibrary.plugin.TomcatConnectionFactory.getConnection(TomcatConnectionFactory.java:102)
at 
edu.tamu.erl.database.dblibrary.DBManager.getConnection(DBManager.java:70)
at 
edu.tamu.erl.database.dblibrary.DBManager.getDBDataAccessObjectList(DBManager.java:318)
at 
edu.tamu.erl.econdollars.middletire.SessionManager.getSessionStatus(SessionManager.java:157)
at 
edu.tamu.erl.econdollars.middletire.SessionManager.retallyDB(SessionManager.java:637)
at org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:88)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
at 

IIS and Tomcat Redirector.

2006-07-19 Thread sbell
Hello,

I am having troubles setting up the Tomcat Redirector (binary version 1.2.15) 
on Windows 2000 server. 

Java 1.5_07 is installed, and I am using the base binary installation of Tomcat 
5.5.17.
After installing the redirector dll, I configured an isapi filter on my web 
site (not the default web though. That was setup automatically from the 
install.) 

Restarted Tomcat, IIS, checked on the ISAPI filter and had the green upward 
arrow.

Went to the /jsp-examples/index.html page, and got an error 404.

Curiously on the page it claimed to be powered by Jetty. 
Jetty is not installed on the server at all, unless it comes as part of JSpell 
or the redirector dll.

The site is password protected, using NTLM 
After the isapi discovery, there is hexidecimal / ascii dump of the http 
headers.

Any advice would be greatly appreciated.

Thank you, Steve.

The isapi dll log file:
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (762): Filter 
started
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (828): Virtual 
Host redirection of /jsp-examples/index.html
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/jsp-examples/index.html' from 4 maps
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/servlets-examples/*'
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/jsp-examples/*'
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match wlb - /jsp-examples/*
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (845): check 
if [/jsp-examples/index.html] is points to the web-inf directory
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (863): 
[/jsp-examples/index.html] is a servlet url - should redirect to wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_worker.c (301): Maintaining 
worker wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_worker.c (111): found a 
worker wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (1018): got a 
worker for name wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (592): service 
sticky_session=1
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (2131): acquired 
connection cache slot=0
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (612): service 
worker=ajp13w jvm_route=ajp13w
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (566): ajp 
marshaling done
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (1670): 
processing with 3 retries
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_connect.c (328): socket 
TCP_NODELAY set to On
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_connect.c (426): trying to 
connect socket 2708 to 127.0.0.1:8009
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_connect.c (452): socket 2708 
connected to 127.0.0.1:8009
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (864): Connected 
socket 2708 to (127.0.0.1:8009)
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (909): sending 
to ajp13 pos=4 len=972 max=8192



Re: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-19 Thread Martin Gainty
You *may* need to specifically GRANT DML access to the DB
e.g.
GRANT SELECT,INSERT,UPDATE,DELETE ON MYDB.MYTABLE  TO 'myuser'@'localhost' 
IDENTIFIED BY 'password, myuser'@'%' IDENTIFIED BY 'password';HTH
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: Cameron Currie [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 2:23 PM
Subject: Database Connection Error Cannot create PoolableConnectionFactory


 Hello everyone,
 
 Background:
 
 I have a newly installed and configured Ubuntu server running
 Tomcat5.5 and Mysql 5.0. This server was created in an attempt to
 migrate from a Red Hat server in a similar configuration, running the
 exact same webapp. Most of the configuration/classpath differences
 between the two platforms have been ironed out.
 
 The Problem:
 
 When our webapp trys to connect to the database on localhost, an exception
 
 'java.security.AccessControlException: access denied
 (java.net.SocketPermission localhost resolve)'
 
 is generated.
 
 The server.xml configuration is below:
 
 Resource name=jdbc/EconDollarsDB
 auth=Container
 type=javax.sql.DataSource
 username=user
 password=pass
 driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/DBName?autoReconnect=true
 maxActive=20 maxIdle=5
 /
 
 
 
 I can connect to the database just fine using the command line client
 and the same username/password combo. This configuration has been
 working fine for at least a year on the older server. The only similar
 problems I have found on the net (meaning the same exception is
 generated) involve applets and attempts to connect to different hosts.
 This case involves a webapp, connecting to localhost, using a
 configuration that is known to work. I am simply baffled.
 
 The following stacktrace is generated:
 
 javax.servlet.ServletException: Database Connection Error
 Cannot create PoolableConnectionFactory (Server connection failure
 during transaction. Due to underlying exception:
 'java.security.AccessControlException: access denied
 (java.net.SocketPermission localhost resolve)'.
 
 ** BEGIN NESTED EXCEPTION **
 
 java.security.AccessControlException
 MESSAGE: access denied (java.net.SocketPermission localhost resolve)
 
 STACKTRACE:
 
 java.security.AccessControlException: access denied
 (java.net.SocketPermission localhost resolve)
 at 
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
 at java.security.AccessController.checkPermission(AccessController.java:427)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
 at java.lang.SecurityManager.checkConnect(SecurityManager.java:1031)
 at java.net.InetAddress.getAllByName0(InetAddress.java:1117)
 at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
 at java.net.InetAddress.getAllByName(InetAddress.java:1061)
 at 
 com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
 at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276)
 at com.mysql.jdbc.Connection.createNewIO(Connection.java:2769)
 at com.mysql.jdbc.Connection.init(Connection.java:1531)
 at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
 at 
 org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
 at 
 org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
 at 
 org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
 at 
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
 at 
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
 at 
 edu.tamu.erl.database.dblibrary.plugin.TomcatConnectionFactory.getConnection(TomcatConnectionFactory.java:102)
 at edu.tamu.erl.database.dblibrary.DBManager.getConnection(DBManager.java:70)
 at 
 edu.tamu.erl.database.dblibrary.DBManager.getDBDataAccessObjectList(DBManager.java:318)
 at 
 edu.tamu.erl.econdollars.middletire.SessionManager.getSessionStatus(SessionManager.java:157)
 at 
 edu.tamu.erl.econdollars.middletire.SessionManager.retallyDB(SessionManager.java:637)
 at org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:88)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 at 

Re: Increase Heapsize

2006-07-19 Thread Christopher Schultz
Ibrahim,

 The webapp is a content management site which has been producing out of
 memory errors.

Is this your own code, or are you using something off-the-shelf? If this
is someone else's product, you may wish to contact them.

 The server has 16GB RAM which is quite significant.
 Curious:are there any other adantages to setting them the same?

I answered that in my previous message:

 Upon the recommendation of another poster, you might want to set the
 initial and the maximum to the same thing (that will allocate the entire
 Java heap at once, instead of forcing the memory manager to grow the
 heap during runtime)

-chris




signature.asc
Description: OpenPGP digital signature


Re: TransformerFactoryConfigurationError

2006-07-19 Thread Christopher Schultz
Ravi,

 Sorry, this is going over my head. Is there a way to look at the system
 properties without having to write a JSP?

There is:

public class Env
{
public static void main(String[] args)
{
System.getProperties().list(System.out);
}
}

Unfortunately, you can't run this from within Tomcat without something
like a JSP or servlet (or even a ConcetxtListener) to get it going.

I'm operating under the assumption that there is some other component
that is (possibly incorrectly) setting this default -- that it may not
show itself if you run this short program from the command line.

-chris




signature.asc
Description: OpenPGP digital signature


Re: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-19 Thread Christopher Schultz
Cameron,

 When our webapp trys to connect to the database on localhost, an exception
 
 'java.security.AccessControlException: access denied
 (java.net.SocketPermission localhost resolve)'

In the past, the Connector/J JDBC client would often use
localhost.localdomain as the hostname, even though only localhost
had been specified. I suspect that was an odd system configuration at work.

At any rate, the database has been configured to allow connections from
localhost but not localhost.localdomain.

I suspect that this is not your problem (given that the error is
java.net.SocketPermission localhost resolve), but it might help.

Another thing you might want to try is to use the IP address 127.0.0.1
instead of the hostname localhost. Dunno if it will help, though.

-chris




signature.asc
Description: OpenPGP digital signature


Re: Increase Heapsize

2006-07-19 Thread Ibrahim . Siddiqui
No
Vignette
why? are you in a similar situation?
if so how did you go about increasing heapsize
and what appserver are you using


Ibrahim





Brian Munroe [EMAIL PROTECTED]
07/19/2006 10:21 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:Re: Increase Heapsize


On 7/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I understand.
 The webapp is a content management site which has been producing out of 
memory errors.
 The server has 16GB RAM which is quite significant.

Not trying to hijack the thread here, but would this content
management product be Documentum?

-- brian

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




**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

Thank you.



Re: TransformerFactoryConfigurationError

2006-07-19 Thread Ravi Tharakan

So... how do I get it to run with a servlet?

On 7/19/06, Christopher Schultz [EMAIL PROTECTED] wrote:


Ravi,

 Sorry, this is going over my head. Is there a way to look at the system
 properties without having to write a JSP?

There is:

public class Env
{
public static void main(String[] args)
{
System.getProperties().list(System.out);
}
}

Unfortunately, you can't run this from within Tomcat without something
like a JSP or servlet (or even a ConcetxtListener) to get it going.

I'm operating under the assumption that there is some other component
that is (possibly incorrectly) setting this default -- that it may not
show itself if you run this short program from the command line.

-chris







Re: Increase Heapsize

2006-07-19 Thread Brian Munroe

On 7/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

No
Vignette
why? are you in a similar situation?
if so how did you go about increasing heapsize
and what appserver are you using


Well, luckily our system isn't heavily loaded, we bumped it to
-Xms1024 -Xmx1024 and everything is working smoothly.  Using Tomcat
5.0.28 + JDK 1.4.2

I am having a timeout problem regarding an import applet talking with
Tomcat (via jk) - but I don't want to go into details cause I will be
hijacking the thread.  Was just wondering if you were using Documentum
and I'd try and pick your brain...

As far as getting some JVM performance metrics, the newer Tomcats have
a JMX proxy servlet that accepts JMX queries, you might be able to
look there for some answers...but I dunno about 4.06.  That is the
latest version Vignette supports?  And I thought Documentum was bad
with the 5.0.x series!

-- brian

-
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: [SPAM:] - IIS and Tomcat Redirector. - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-07-19 Thread Leo Donahue - PLANDEVX
Did you create a Web Service Extension in IIS, mapped to the location of
the isapi redirector dll, and set it to allowed? 


Leo D

-Original Message-
From: sbell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 11:47 AM
To: users@tomcat.apache.org
Subject: [SPAM:] - IIS and Tomcat Redirector. - Email has different SMTP
TO: and MIME TO: fields in the email addresses

Hello,

I am having troubles setting up the Tomcat Redirector (binary version
1.2.15) on Windows 2000 server. 

Java 1.5_07 is installed, and I am using the base binary installation of
Tomcat 5.5.17.
After installing the redirector dll, I configured an isapi filter on my
web site (not the default web though. That was setup automatically from
the install.) 

Restarted Tomcat, IIS, checked on the ISAPI filter and had the green
upward arrow.

Went to the /jsp-examples/index.html page, and got an error 404.

Curiously on the page it claimed to be powered by Jetty. 
Jetty is not installed on the server at all, unless it comes as part of
JSpell or the redirector dll.

The site is password protected, using NTLM After the isapi discovery,
there is hexidecimal / ascii dump of the http headers.

Any advice would be greatly appreciated.

Thank you, Steve.

The isapi dll log file:
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (762):
Filter started [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_isapi_plugin.c (828): Virtual Host redirection of
/jsp-examples/index.html [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_uri_worker_map.c (449): Attempting to map URI
'/jsp-examples/index.html' from 4 maps [Wed Jul 19 14:10:03 2006]
[2260:2232] [debug] jk_uri_worker_map.c (461): Attempting to map context
URI '/servlets-examples/*'
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/jsp-examples/*'
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c
(475): Found a wildchar match wlb - /jsp-examples/* [Wed Jul 19
14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (845): check if
[/jsp-examples/index.html] is points to the web-inf directory [Wed Jul
19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (863):
[/jsp-examples/index.html] is a servlet url - should redirect to wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_worker.c (301):
Maintaining worker wlb [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_worker.c (111): found a worker wlb [Wed Jul 19 14:10:03 2006]
[2260:2232] [debug] jk_isapi_plugin.c (1018): got a worker for name wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (592):
service sticky_session=1 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_ajp_common.c (2131): acquired connection cache slot=0 [Wed Jul 19
14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (612): service
worker=ajp13w jvm_route=ajp13w [Wed Jul 19 14:10:03 2006] [2260:2232]
[debug] jk_ajp_common.c (566): ajp marshaling done [Wed Jul 19 14:10:03
2006] [2260:2232] [debug] jk_ajp_common.c (1670): processing with 3
retries [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_connect.c
(328): socket TCP_NODELAY set to On [Wed Jul 19 14:10:03 2006]
[2260:2232] [debug] jk_connect.c (426): trying to connect socket 2708 to
127.0.0.1:8009 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_connect.c (452): socket 2708 connected to 127.0.0.1:8009 [Wed Jul 19
14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (864): Connected
socket 2708 to (127.0.0.1:8009) [Wed Jul 19 14:10:03 2006] [2260:2232]
[debug] jk_ajp_common.c (909): sending to ajp13 pos=4 len=972 max=8192


-
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: TransformerFactoryConfigurationError

2006-07-19 Thread Christopher Schultz
Ravi,

 So... how do I get it to run with a servlet?

You would have to create a new class that extends HttpServlet, implement
the doGet and/or doPost methods and then put your code into there.

It might be easier to just stick a JSP file into your webapp's deploy
directory and try to hit that, directly.

-chris




signature.asc
Description: OpenPGP digital signature


Re: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-19 Thread Bob Hall
Cameron,

You wrote:

 I have a newly installed and configured Ubuntu
 server running
 Tomcat5.5 and Mysql 5.0. This server was created in
 an attempt to
 migrate from a Red Hat server in a similar
 configuration, running the
 exact same webapp. Most of the
 configuration/classpath differences
 between the two platforms have been ironed out.
 
 The Problem:
 
 When our webapp trys to connect to the database on
 localhost, an exception
 
 'java.security.AccessControlException: access denied
 (java.net.SocketPermission localhost resolve)'
 
 is generated.
 

Looks like the OS is unable to resolve localhost.
Does the ubuntu server have the following in its
/ect/hosts file?

127.0.0.1localhost

-Bob

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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: Increase Heapsize

2006-07-19 Thread Ibrahim . Siddiqui
what wouldve happened if you left your heapsize:
-Xms256   -Xmx1024 ?
**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

Thank you.



Re: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-19 Thread Luis Rivera

  Hi Barry and Tomcat/users/devs,

I am hoping an axis/tomcat/dev/user will have a good advise. I am sure more
than one user has needed to use axis/tomcat and a JNI interface, so I am
sure this has been done. I need classes in the shared context and classes in
the webapps context, which cause serialization/desearialization problems
when making calls among classes between the two contexts.

I write the questions here, in case a reader don't want to go through the
whole explanation below them.

Q1) As long as I do not referece the classes, which I believe means the
classes are not loaded, then there is not problem. When they are accessed,
then it fails. The classes are in both common, shared and webapps, where
else I am supposed to place them?

Q2) How do I turn on Logging at the debug level in Tomcat, or any kind of
meaningful logging to figure out what is happening?

Q3) Is there a way to enable remote debugging using Eclipse? ... I read that
it is possible, but is there any configuration in Tomcat I need to change
and does it include setting a port for it?

I found the log that has the stdout, which was showing a couple of
exceptions, which I solved by placing the appropriate jar files in the right
place. However, the problem didn't go away, there is something in the Tomcat
servlet or axis (I don't know) that is handling an exception in the server
side, because I have a try {} catch () {} where the problem ocurrs and I
don't catch anything, but the exception is returned to the client. Now not
even an exception is thrown to the stdout or staderr files.

The problems comes when in the shared/classes files I access the parameters
that use the classes generated by the WSDL2java tool. Those classes are in
both

TOMCAT_HOME/shared/classes

and

TOMCAT_HOME/webapps/axis/WEB-INF/classes

I also dropped the axis jar files in

TOMCAT_HOME/shared/lib
TOMCAT_HOME/webapp/WEB-INF/lib
TOMCAT_HOME/webapp/axis/WEB-INF/lib

but I still have a problem. At this point it would be nice to at leasts see
the DEBUG output from Tomcat, but I am not sure how to do that or if it is
something related to axis. To make this more explicit, this example works:

class CRLStub

...

public void getCompay(CompanyHolder company, StringHolder result)
throws java.rmi.RemoteException
{
company.value = new soap.xsd.CompanyInfo();
company.value.setCompany(Something);

result.value = ok;
}

Now, if I try to do the following, there is no error, but obviously, the
result is not the same

class CRLStub

...

public void getCompay(CompanyInfoHolder company, StringHolder result)
throws java.rmi.RemoteException
{
jnInSharedContext.getCompany(company, result);
}

class JNIcrlInSharedContext

  ...

public void getCompany(CompanyInfoHolder company, StringHolder result)
{
   /// No problem as long as I don't access neither company or result
}

But if I do this, then I receive the
java.lang.reflect.InvocationTargetException at the client side, even if I
try to catch the exception with a try {} catch () {} pair.

public void getCompany(CompanyInfoHolder company, StringHolder result)
{
company.value = new soap.xsd.CompanyInfo();
}
I would appreciate any kind of hint,
Thanks in advance,
--Luis R.

On 7/18/06, Propes, Barry L [EMAIL PROTECTED] wrote:


none of the logs mention it?
I realize Tomcat does seem a bit bereft of info in the logs sometime.
Would it have been a case where it printed to the system console instead?
Mine does that sometimes, instead of (or in addition to) the log(s) and I
troubleshoot it that way.

-Original Message-
From: Luis Rivera [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5/Axis 1.4
java.lang.reflect.InvocationTargetException


Hi Shankar,

Thanks a lot. I found my problem. It turned out not to be a Classloader
problem, but a NullPointer (THANKS TO TIM FOR THE HINT :) ) problem in the
server, which I had not found because I don't know how to debug my
application in Tomcat and there is no single log in the Tomcat directory
that can give me a clue of what's happening.

Anyway, the configuration worked as I had it initially:

1) Dropping the axis.jar in the WEB-INF/lib as you pointed out.

2) Stubs/Skeletons and all that had nothing to do with the JNI in
axis/WEB-INF/classes

3) The classes for the JNI interface/loading the jni library under
shared/classes

I think if I can find a way to debug our application in the server, we
could
get better light on what is happening and solve problems a lot quicker :|.
It's like driving blind right now :|.

Anybody knows how to debug remotely axis/tomcat apps?

   --Luis R.

On 7/18/06, Shankar Unni [EMAIL PROTECTED] wrote:

 Luis Rivera wrote:

  I have a web service which will JNI to access the application, which
  according to the documentation should be placed in the shared/classes
  directory. I did so and I got a dreaded
  java.lang.reflect.InvocationTargetException, which I believe is a
class
  

Re: The requested resource is not available

2006-07-19 Thread Hassan Schroeder

On 7/19/06, Darren Hall [EMAIL PROTECTED] wrote:


When I attempt to go to the above URL I get the error The requested
resource (/abc/abc) is not available.


I would simplify -- comment out your servlet in web.xml, put a proper
welcome file (e.g. index.jsp) in the context -- and  make sure that
there aren't other errors keeping your context from starting.

Then add back your servlet's url-mapping and watch your logs :-)

--
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: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-19 Thread Cameron Currie

Thanks for the quick replies.

Martin:
No luck with your advice. I'm not sure there's a problem with mysql
permissions, as I can log in with a mysql client from the local
machine and access the database as normal. The original command used
to set the permissions was 'GRANT ALL ON DB.* TO 'User'@'%' IDENTIFIED
BY 'password';'

Christopher:
I've tried using the IP address instead, unfortunately that didn't work.

Bob:
The entry in the hosts file is defined as you said.

For some reason tomcat can't connect to the database and create a
connection pool, even though a normal client can connect just fine. I
even wrote a small java program to connect using JDBC, in case that
was the problem. I used the same parameters given to tomcat and again,
it works just fine.

On 7/19/06, Bob Hall [EMAIL PROTECTED] wrote:

Cameron,

You wrote:

 I have a newly installed and configured Ubuntu
 server running
 Tomcat5.5 and Mysql 5.0. This server was created in
 an attempt to
 migrate from a Red Hat server in a similar
 configuration, running the
 exact same webapp. Most of the
 configuration/classpath differences
 between the two platforms have been ironed out.

 The Problem:

 When our webapp trys to connect to the database on
 localhost, an exception

 'java.security.AccessControlException: access denied
 (java.net.SocketPermission localhost resolve)'

 is generated.


Looks like the OS is unable to resolve localhost.
Does the ubuntu server have the following in its
/ect/hosts file?

127.0.0.1localhost

-Bob

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.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]





--
Cameron Currie
[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: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-19 Thread Christopher Schultz
Cameron,

 I've tried using the IP address instead, unfortunately that didn't work.
:(

 The entry in the hosts file is defined as you said.
:( :(

 For some reason tomcat can't connect to the database and create a
 connection pool, even though a normal client can connect just fine. I
 even wrote a small java program to connect using JDBC, in case that
 was the problem. I used the same parameters given to tomcat and again,
 it works just fine.

What connection pool are you using? Jakarta Commons DBCP? Something
built into Tomcat?

What about the connection string? Can you post the connection string and
any other relevant details, as well as maybe your quick-and-dirty test
program?

-chris




signature.asc
Description: OpenPGP digital signature


Symbolic link for welcome file???

2006-07-19 Thread Mann, Bradley
I'm experiencing some strange behavior when setting a symbolic link as a
welcome file. In my document root, my index.html is a symbolic link to
another file. This link changes depending on the status of our server.
When I access the file directly through the browser URL, it functions
normally. However, when I attempt to navigate to the directory that
contains this symbolic link, it seems to not load the correct version of
the file (almost like what it loads has been cached). I have cleared my
browser cache and it does not help. Any ideas about this?

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292



Tomcat - Joram JMS configuration

2006-07-19 Thread Barrie Selack
I've been using Resin, but I'm switching to Tomcat and am having
problems configuring Joram. My old Resin configuration was:

jndi-link
jndi-namejava:comp/env/jms/jndi-name
jndi-factoryfr.dyade.aaa.jndi2.client.NamingContextFactory/jndi-
factory
  init-param java.naming.factory.host=localhost/
  init-param java.naming.factory.port=16400/
/jndi-link

I can't find any good documentation for a Joram-  Tomcat configuration.

Any help would be appreciated.

Barrie Selack


-
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 - Joram JMS configuration

2006-07-19 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]



Tomcat - Joram JMS configuration (sent the correct way...)

2006-07-19 Thread Barrie Selack
My apologies for sending the message incorrectly, as a response to
another message. Mark pointed out my error, and said many may not see
it, so I'm resending it correctly. Again apologies.

Barrie Selack



I've been using Resin, but I'm switching to Tomcat and am having
problems configuring Joram. My old Resin configuration was:

jndi-link
jndi-namejava:comp/env/jms/jndi-name
jndi-factoryfr.dyade.aaa.jndi2.client.NamingContextFactory/jndi-
factory
  init-param java.naming.factory.host=localhost/
  init-param java.naming.factory.port=16400/
/jndi-link

I can't find any good documentation for a Joram-  Tomcat configuration.

Any help would be appreciated.

Barrie Selack



-
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 Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-19 Thread Kim Albee

I'm running Fedora Core 3, Tomcat 5.0.30, in a two server environment, where
we have an F5 load balancer and are doing session sharing at the Tomcat
level.

The box has 4GB of RAM on it, and has experienced a memory failure.  We
tested the physical RAM on the server, and it failed 2 extended memory
tests, so we replaced the RAM.  We also saw that the swap space was only at
1.5GB, so we upped that to 6.5 GB.

Prior to this issue with memory, Tomcat ran just fine without error.

Now, Tomcat runs for about 30-45 minutes and crashes.

The catalina.out file has this:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xb79d032a, pid=11598, tid=1886555056
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_03-b07 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x3b532a]
#
# An error report file with more information is saved as hs_err_pid11598.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

so my question is:  how do I read/interpret the hs_err_pid11598.log file so
I can figure out what is happening here?

thanks,
Kim :-)


Yet another try: mod_jk 1.2.18 release candidate ready to test

2006-07-19 Thread Rainer Jung

Hi,

thanks to everyone who tested 1.2.17. We had one bug related to special 
types used in the networking code. Furthermore there was one request for 
enhancement we included in the next version 1.2.18.


Today this version 1.2.18 of the Apache Tomcat mod_jk web server 
connector has been tagged. This version fixes the found bugs from 
1.2.17. Please test and share your experience.


If no critical bugs will be found, we will have a formal release vote
starting at Monday, July 24th.

The source distribution can be downloaded from:

http://tomcat.apache.org/dev/dist/

The updated documentation can be found at

http://tomcat.apache.org/dev/docs/tomcat-connectors-1.2.18/

Please see

http://tomcat.apache.org/dev/docs/tomcat-connectors-1.2.18/changelog.html

for a complete list of changes.

Regards,

Rainer

-
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, Timer and TimerTask question

2006-07-19 Thread Cameron
Hello

Just trying to schedule a batch email run using Timer and TimerTask framework on
Tomcat 4.1.31

Found the following example from http://www.javapractices.com/Topic54.cjp

Trying trying to test this scheduling mechanism first just by printing to
System.out first... (see below) 

It does not seem to run. Code compiles properly in eclipse.

Does tomcat require any libraries... There is no errors in tomcat either.


public final class schedEmailUser extends TimerTask {

public static void main (String[] args) {
TimerTask schedEmail  = new schedEmailUser();

Timer timer = new Timer();
Calendar date = Calendar.getInstance();
date.set(Calendar.DAY_OF_WEEK, Calendar.THURSDAY);
date.set(Calendar.HOUR, 12);
date.set(Calendar.MINUTE, 10);
date.set(Calendar.SECOND, 0);
date.set(Calendar.MILLISECOND, 0);
   
timer.scheduleAtFixedRate(new schedEmailUser(), date.getTime(), 
1000 * 60 *
60 * 24);
System.out.println(In main Sending email...);
timer.cancel();
  }

public void run(){
  System.out.println(In run Sending email...);
  }
} //end schedEmailUser


-
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: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-19 Thread Bob Hall
Cameron,

 For some reason tomcat can't connect to the database
 and create a
 connection pool, even though a normal client can
 connect just fine. I
 even wrote a small java program to connect using
 JDBC, in case that
 was the problem. I used the same parameters given to
 tomcat and again,
 it works just fine.
 

A couple of questions:

Are you running the small java test program on the
same host as the Tomcat server?

Assumming that different usernames are being used,
did you try running the test program as the user
that is running Tomcat on the Tomcat host?

-Bob

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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: Increase Heapsize

2006-07-19 Thread Suresh babu

Hi,
Setting heap size to -Xms256   -Xmx1024 will allocate mammory intially to
256 MB and keeps expanding as  allocating more objects up to 1024.
My recomendation to you is as mentioned in previos mail set heap size to
-Xms1536 -Xmx1536 and verify it.

But Do not increase heap size blindly to greater values which may lead to
performance issue(Pause times may become more to clean GC).

try the heap settings and let me know, If still problem is there just send
the verbose output and log file.


On 7/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


what wouldve happened if you left your heapsize:
-Xms256   -Xmx1024 ?

**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose,
and is protected by law.  If you are not the intended recipient, you
should
delete this communication and/or shred the materials and any attachments
and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly
prohibited.

Thank you.






--
Suresh Babu,
Software Engineer,
Computer Associates-India


Re: Tomcat shutdowns unexpectedly - Please help

2006-07-19 Thread Arunan Kannan

Please help:(



Hi All,

My problem seems to be very peculiar and haven't heard this before.
The tomcat gets shutdown unexpectedly after 3 hours only on this
particular system.
the same tomcat with same confgiurations when run on a other system, it
runs properly and there is no problem.

on this particular system the problem occurs always.
 # uname -a
SunOS CBT 5.8 Generic_117350-36 sun4u sparc SUNW,Sun-Blade-1000
dunno what to do. i have tried all.. nothing is fruitfull.

Also it is very amazing that when i run a simple script at background
which will echo hello once in 10 minute and is infite...the problem doesn't
occurs...dunno why...

while [ true ]
do
echo hello
sleep 600
done

why?
whats the problem?
How to resolve?

I am very much confused.
Please help.

Thanks again,
Thanks and regards,
 Arunan


 On 7/18/06, Cosio, Raul [EMAIL PROTECTED] wrote:

 David,

 - Do you have in your web.xml some kind of servlet tag sometimes used
 to start a background thread that might be causing the problem?
 Unfortunately I work with WinXP and not everithing is written to
 catalina.out, what I do is run tomcat in a DOS prompt, if it hangs then
 I can read all the output generated, sometimes caused by the JVM...

 - Are you trying to open de /admin tool but it's not installed already
 on your server?

 -Original Message-
 From: Arunan Kannan [mailto:[EMAIL PROTECTED]
 Sent: Martes, 11 de Julio de 2006 09:54 a.m.
 To: Tomcat Users List; Martin Gainty
 Subject: Re: Tomcat shutdowns unexpectedly - Please help


 Hi David, Martin, and Alireza,

 Thank you very much for your comments and suggestions. Thanks a lot.

 Hi David,
 There is no logs corresponding to this shutdown anywhere on the system.
 I
 couldn't find any thing relevent to this crash on syslog or at any other
 place. Thanks for your help.

 Hi Martin,
 Here is the log from catalina.out file. Please have a look at it.
 Jul 10, 2006 11:57:18 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.31
 Jul 10, 2006 11:57:21 PM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Jul 10, 2006 11:57:21 PM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Jul 10, 2006 11:57:21 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=2/53  config=/temp/jakarta-tomcat-4.1.31
 /conf/jk2.pro
 perties
 Stopping service Tomcat-Standalone

 and here are the logs from localhost_admin_log.2006- 07-10.txt

 2006-07-11 05:01:40 StandardContext[/admin]: Servlet /admin threw load()
 excepti
 on
 javax.servlet.ServletException: Wrapper cannot find servlet class
 org.apache.web
 app.admin.ApplicationServlet or a class it depends on
at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.
 java:844)
 6)  at org.apache.catalina.core.StandardWrapper.load(
 StandardWrapper.java:77
 t.ja
 3363)rg.apache.catalina.core.StandardContext.loadOnStartup(StandardConte
 x
 586)at org.apache.catalina.core.StandardContext.start(
 StandardContext.java:3
 .java:774) org.apache.catalina.core.ContainerBase.addChildInternal
 (ContainerBase
 0)  at org.apache.catalina.core.ContainerBase.addChild(
 ContainerBase.java:76
 
 --at java.lang.reflect.Method.invoke(Method.java:324)
at
 org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156)

 2006-07-11 05:01:40 StandardWrapper[/admin:invoker]: Loading container
 servlet i
 nvoker

 I couldn't understand much. Can you please let me know some more info
 about
 this.

 As you said, I tried to find some timeout parameters in the conf files.

 !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 9080 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
   port=9080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=9443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
 !-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --


 In the server.xml the ConnectionTimeout is set to 2. I will change
 that
 to 0 and let you know the results. Thanks for your help.

 Hi Alireza,

 The tomcat I am using is not configured with apache.

 Initially I run some sample application and left it ideal for some 3 to
 4
 hr. There is no action done in this time. Then the tomcat gets shutdown
 unexpectedly.

 I will try your suggestion and let you know the result. Thanks for your
 help.

 Thanks again for all,

 Thanks and Regards,

 Arunan


 On 7/11/06, Martin Gainty [EMAIL PROTECTED] wrote:
 
  I would also look at workers.properties files and make sure
  socket_KeepAlive is set on
  Also socket_timeout is set to 0 so it never times out
 
  M-
  *
  This email message and any files transmitted with it 

Re: out of memory error

2006-07-19 Thread Suresh babu

Hi,

please set this and send the verbose out put log file.

set JAVA_OPTS=%JAVA_OPTS% -verbosegc -XX:+PrintGCDetails, I will look in to
this.


On 7/19/06, Martin Gainty [EMAIL PROTECTED] wrote:


Good Afternoon Jon-

set Max Mem and Min Mem within jvm.cfg (-Xmx and -Xms options) to the same
value
http://java.sun.com/docs/hotspot/PerformanceFAQ.html#8

Exercise caution on playing with stack SS
64k is mightly lean
512k(default for Sparc) and 256k(default for Intel) usually is plenty
unless your program has some grossly huge stack allocations

Drivers-
Also be mindful of synch points for Type 2 (OCI) drivers vs using Type 4
(thin) drivers..

HTH
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: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 12:12 PM
Subject: Re: out of memory error


 This may be of help (emphasis on may):

 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4765019

 Has a bit about tuning Xss for a high number of threads.

 MW Janssen wrote:
 Hi,

 These are my parameters:

 I have Xmx1024m and Xms1024m as well for the heap size memory. I dont
set
 Xss so I presume I use the default value.
 My Operating System:

 OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM:
2.00Gb
 Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from
 lambdaprobe)

 Maarten

 -Oorspronkelijk bericht-
 Van: David Tonhofer [mailto:[EMAIL PROTECTED]
 Verzonden: woensdag 19 juli 2006 16:57
 Aan: Tomcat Users List
 Onderwerp: Re: out of memory error


 MW Janssen wrote:

 java.lang.OutOfMemoryError: unable to create new native thread


 Are you it isn't just the heap and/or stack that's too small? Try
starting
 the Jvm with one of the extended options line -Xss500k -Xmx100m (if
it
 is the Sun
 JVM)

 -
 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.10.1/391 - Release Date:
18-7-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]







--
Suresh Babu,
Software Engineer,
Computer Associates-India


RE: out of memory error

2006-07-19 Thread MW Janssen
thx for the fact that you want to look into it..i set those parameters and
restarted tomcat..are GC details printed in stout.log??

Maarten 

-Oorspronkelijk bericht-
Van: Suresh babu [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 20 juli 2006 7:32
Aan: Tomcat Users List; Martin Gainty
Onderwerp: Re: out of memory error

Hi,

please set this and send the verbose out put log file.

set JAVA_OPTS=%JAVA_OPTS% -verbosegc -XX:+PrintGCDetails, I will look in to
this.


On 7/19/06, Martin Gainty [EMAIL PROTECTED] wrote:

 Good Afternoon Jon-

 set Max Mem and Min Mem within jvm.cfg (-Xmx and -Xms options) to the 
 same value
 http://java.sun.com/docs/hotspot/PerformanceFAQ.html#8

 Exercise caution on playing with stack SS 64k is mightly lean 
 512k(default for Sparc) and 256k(default for Intel) usually is plenty 
 unless your program has some grossly huge stack allocations

 Drivers-
 Also be mindful of synch points for Type 2 (OCI) drivers vs using Type 
 4
 (thin) drivers..

 HTH
 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: Jon Wingfield [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, July 19, 2006 12:12 PM
 Subject: Re: out of memory error


  This may be of help (emphasis on may):
 
  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4765019
 
  Has a bit about tuning Xss for a high number of threads.
 
  MW Janssen wrote:
  Hi,
 
  These are my parameters:
 
  I have Xmx1024m and Xms1024m as well for the heap size memory. I 
  dont
 set
  Xss so I presume I use the default value.
  My Operating System:
 
  OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM:
 2.00Gb
  Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb 
  (from
  lambdaprobe)
 
  Maarten
 
  -Oorspronkelijk bericht-
  Van: David Tonhofer [mailto:[EMAIL PROTECTED]
  Verzonden: woensdag 19 juli 2006 16:57
  Aan: Tomcat Users List
  Onderwerp: Re: out of memory error
 
 
  MW Janssen wrote:
 
  java.lang.OutOfMemoryError: unable to create new native thread
 
 
  Are you it isn't just the heap and/or stack that's too small? Try
 starting
  the Jvm with one of the extended options line -Xss500k -Xmx100m 
  (if
 it
  is the Sun
  JVM)
 
  ---
  -- 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.10.1/391 - Release Date:
 18-7-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]
 
 




--
Suresh Babu,
Software Engineer,
Computer Associates-India

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.2/393 - Release Date: 19-7-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.2/393 - Release Date: 19-7-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]