Tomcat 6 Memory problem

2008-09-07 Thread Barak Yaish
Bouncing, in case someone missed this post...

Is this thread should be relocated to the dev list?

Thanks again,

Barak.

-Original Message-
From: Barak Yaish [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2008 1:23 PM
To: users@tomcat.apache.org
Subject: Tomcat 6 Memory problem

Hello all,

 

I'm running Tomcat 6.0.16 on CentoOS 5, linked with native library. I
deployed a Servelt, which on invocation executes an RMI call to a remote RMI
server. Tomcat configured with max heap size of 2G

After short time of running under heavy load, the memory consumption
reported by top is close to 2G. jmap output is:

 

Attaching to process ID 20248, please wait...

Debugger attached successfully.

Server compiler detected.

JVM version is 1.6.0-b105

 

using thread-local object allocation.

Parallel GC with 4 thread(s)

 

Heap Configuration:

   MinHeapFreeRatio = 40

   MaxHeapFreeRatio = 70

   MaxHeapSize  = 2147483648 (2048.0MB)

   NewSize  = 1048576 (1.0MB)

   MaxNewSize   = 4294901760 (4095.9375MB)

   OldSize  = 4194304 (4.0MB)

   NewRatio = 2

   SurvivorRatio= 8

   PermSize = 16777216 (16.0MB)

   MaxPermSize  = 268435456 (256.0MB)

 

Heap Usage:

PS Young Generation

Eden Space:

   capacity = 582221824 (555.25MB)

   used = 0 (0.0MB)

   free = 582221824 (555.25MB)

   0.0% used

From Space:

   capacity = 48103424 (45.875MB)

   used = 48079216 (45.85191345214844MB)

   free = 24208 (0.0230865478515625MB)

   99.9496751000511% used

To Space:

   capacity = 69402624 (66.1875MB)

   used = 0 (0.0MB)

   free = 69402624 (66.1875MB)

   0.0% used

PS Old Generation

   capacity = 1431699456 (1365.375MB)

   used = 1424597528 (1358.6020736694336MB)

   free = 7101928 (6.772926330566406MB)

   99.50395119798104% used

PS Perm Generation

   capacity = 35782656 (34.125MB)

   used = 28493056 (27.173095703125MB)

   free = 7289600 (6.951904296875MB)

   79.62811927655677% used

 

I've dump a file using jmap, and asked MemoryAnalyzer (www.eclipse.org/mat)
to take a look. This tool reported that an instance of java.security.Policy
retained 77.7% of the heap (552,569,816 bytes).

 

I would like to ask whether this behavior seems normal?

 

Thanks,

 

Barak.



-
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 6 Memory problem

2008-09-07 Thread Johnny Kewl


- Original Message - 
From: Barak Yaish [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Sunday, September 07, 2008 9:25 AM
Subject: Tomcat 6 Memory problem



Bouncing, in case someone missed this post...

Is this thread should be relocated to the dev list?

Thanks again,

Barak.

-Original Message-
From: Barak Yaish [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2008 1:23 PM
To: users@tomcat.apache.org
Subject: Tomcat 6 Memory problem

Hello all,



I'm running Tomcat 6.0.16 on CentoOS 5, linked with native library. I
deployed a Servelt, which on invocation executes an RMI call to a remote 
RMI

server. Tomcat configured with max heap size of 2G

After short time of running under heavy load, the memory consumption
reported by top is close to 2G. jmap output is:



Attaching to process ID 20248, please wait...

Debugger attached successfully.

Server compiler detected.

JVM version is 1.6.0-b105



using thread-local object allocation.

Parallel GC with 4 thread(s)



Heap Configuration:

  MinHeapFreeRatio = 40

  MaxHeapFreeRatio = 70

  MaxHeapSize  = 2147483648 (2048.0MB)

  NewSize  = 1048576 (1.0MB)

  MaxNewSize   = 4294901760 (4095.9375MB)

  OldSize  = 4194304 (4.0MB)

  NewRatio = 2

  SurvivorRatio= 8

  PermSize = 16777216 (16.0MB)

  MaxPermSize  = 268435456 (256.0MB)



Heap Usage:

PS Young Generation

Eden Space:

  capacity = 582221824 (555.25MB)

  used = 0 (0.0MB)

  free = 582221824 (555.25MB)

  0.0% used

From Space:

  capacity = 48103424 (45.875MB)

  used = 48079216 (45.85191345214844MB)

  free = 24208 (0.0230865478515625MB)

  99.9496751000511% used

To Space:

  capacity = 69402624 (66.1875MB)

  used = 0 (0.0MB)

  free = 69402624 (66.1875MB)

  0.0% used

PS Old Generation

  capacity = 1431699456 (1365.375MB)

  used = 1424597528 (1358.6020736694336MB)

  free = 7101928 (6.772926330566406MB)

  99.50395119798104% used

PS Perm Generation

  capacity = 35782656 (34.125MB)

  used = 28493056 (27.173095703125MB)

  free = 7289600 (6.951904296875MB)

  79.62811927655677% used



I've dump a file using jmap, and asked MemoryAnalyzer 
(www.eclipse.org/mat)
to take a look. This tool reported that an instance of 
java.security.Policy

retained 77.7% of the heap (552,569,816 bytes).



I would like to ask whether this behavior seems normal?



Thanks,


No not normal you runneth out of juice...
I dont know this native lib you using... what happening is every thread in 
TC is making another one of these dll/so's


You probably going to have to find the source and study it a little, but 
normally a native lib should be invoked in a static call...
If this is not the case, its breeding like a rabbit... a new native on every 
thread.


The guys that designed it will probably know... but I think you going to 
have to put part of this animal in the servlet init... so it only wakes up 
once.
And then make sure you know if its multithreaded, or must be protected... 
sync'd


If you do have the source, you cant change that section without remaking 
stubs... so rather try init it just once.


The other thing about natives is that unlike Java that doesnt really care if 
its on 64 bit or 32 bit... natives do care.
So if your JRE is 32 bit now... even when you later get a nice big fat 64 
bit monster... Java must stay on 32 bit... unless you can find a 64 bit 
native.


More or less... going to have to ask the guys that made it, or peek at the 
code


Have fun...

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---




-
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 6 Memory problem

2008-09-07 Thread Johnny Kewl


- Original Message - 
From: Johnny Kewl [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, September 07, 2008 9:58 AM
Subject: Re: Tomcat 6 Memory problem




- Original Message - 
From: Barak Yaish [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Sunday, September 07, 2008 9:25 AM
Subject: Tomcat 6 Memory problem



Bouncing, in case someone missed this post...

Is this thread should be relocated to the dev list?

Thanks again,

Barak.

-Original Message-
From: Barak Yaish [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2008 1:23 PM
To: users@tomcat.apache.org
Subject: Tomcat 6 Memory problem

Hello all,



I'm running Tomcat 6.0.16 on CentoOS 5, linked with native library. I
deployed a Servelt, which on invocation executes an RMI call to a remote 
RMI

server. Tomcat configured with max heap size of 2G

After short time of running under heavy load, the memory consumption
reported by top is close to 2G. jmap output is:



Attaching to process ID 20248, please wait...

Debugger attached successfully.

Server compiler detected.

JVM version is 1.6.0-b105



using thread-local object allocation.

Parallel GC with 4 thread(s)



Heap Configuration:

  MinHeapFreeRatio = 40

  MaxHeapFreeRatio = 70

  MaxHeapSize  = 2147483648 (2048.0MB)

  NewSize  = 1048576 (1.0MB)

  MaxNewSize   = 4294901760 (4095.9375MB)

  OldSize  = 4194304 (4.0MB)

  NewRatio = 2

  SurvivorRatio= 8

  PermSize = 16777216 (16.0MB)

  MaxPermSize  = 268435456 (256.0MB)



Heap Usage:

PS Young Generation

Eden Space:

  capacity = 582221824 (555.25MB)

  used = 0 (0.0MB)

  free = 582221824 (555.25MB)

  0.0% used

From Space:

  capacity = 48103424 (45.875MB)

  used = 48079216 (45.85191345214844MB)

  free = 24208 (0.0230865478515625MB)

  99.9496751000511% used

To Space:

  capacity = 69402624 (66.1875MB)

  used = 0 (0.0MB)

  free = 69402624 (66.1875MB)

  0.0% used

PS Old Generation

  capacity = 1431699456 (1365.375MB)

  used = 1424597528 (1358.6020736694336MB)

  free = 7101928 (6.772926330566406MB)

  99.50395119798104% used

PS Perm Generation

  capacity = 35782656 (34.125MB)

  used = 28493056 (27.173095703125MB)

  free = 7289600 (6.951904296875MB)

  79.62811927655677% used



I've dump a file using jmap, and asked MemoryAnalyzer 
(www.eclipse.org/mat)
to take a look. This tool reported that an instance of 
java.security.Policy

retained 77.7% of the heap (552,569,816 bytes).



I would like to ask whether this behavior seems normal?



Thanks,


No not normal you runneth out of juice...
I dont know this native lib you using... what happening is every thread in 
TC is making another one of these dll/so's


You probably going to have to find the source and study it a little, but 
normally a native lib should be invoked in a static call...
If this is not the case, its breeding like a rabbit... a new native on 
every thread.


The guys that designed it will probably know... but I think you going to 
have to put part of this animal in the servlet init... so it only wakes up 
once.
And then make sure you know if its multithreaded, or must be protected... 
sync'd


If you do have the source, you cant change that section without remaking 
stubs... so rather try init it just once.


The other thing about natives is that unlike Java that doesnt really care 
if its on 64 bit or 32 bit... natives do care.
So if your JRE is 32 bit now... even when you later get a nice big fat 64 
bit monster... Java must stay on 32 bit... unless you can find a 64 bit 
native.


More or less... going to have to ask the guys that made it, or peek at the 
code


Have fun...


Just an after thought... do you have anything like the task manager in linux 
that windows has...

I seem to remember something like that on debian...

Anyway... on windows heap space and that stuff doesnt show you much... its 
the handles that we watch...
And why they useful... is that as soon as heavy load comes off... those 
handles quickly recover, if they dont, you leaking ;)
In your case the old heap is filling... and in theory that old heap should 
only hold long lived objects (so mel tells me)..
ie things like a xml parser and that sort of stuff... the eden should be 
rising and falling like a yoyo, and the old heap should stable out...
Anyway... if you can just find the equive of task manager handles on your 
linux... its easier to watch.


I think ;)
---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---





-
To start a new topic, 

Re: Tomcat vs Weblogic JNDI Lookup

2008-09-07 Thread Luther Baker
The * was just a wildcard for the example. Fill it in with whatever you
like. Let's say we have a datasource named appds

So code deployed to WEBLOGIC can do this:

context.lookup(appds);

While code deployed to TOMCAT must do this:

context.lookup(java:comp/env/jdbc/appds);

That is my problem and I can't 'adjust' the way they are build in Weblogic.
I believe, the Weblogic admin is simply going to the web admin console for
Weblogic and simply creating a datasource connection and giving it a simple
name.

Whereas, if I declare this datasource in tomcat's server.xml ... context tag
... the deployed code always needs to preprend the lookup name with
java:comp/env.

I'd like one Spring config file or Source code file that did the right
thing depending on whether or not it was deployed to Tomcat or Weblogic ...

Hope that makes sense.

-Luther



On Sat, Sep 6, 2008 at 4:41 PM, Martin Gainty [EMAIL PROTECTED] wrote:


 if you use a JNDI lookup with a declared namespace such as
 xmlns:jee=http://www.springframework.org/schema/jee;

 more specifically in the case of spring
 http://www.springframework.org/schema/jee/spring-jee.xsd

 where jndi-name is declared to be
 xsd:attribute name=jndi-name type=xsd:string use=required
 xsd:annotation
 xsd:documentationThe JNDI name to look up./xsd:documentation
 /xsd:annotation
 /xsd:attribute

 which can then reference a specific jdbc resource supplying provided
 jndi-name of jpetstore-order such as
  jee:jndi-lookup id=orderDataSource
 jndi-name=java:comp/env/jdbc/jpetstore-order/

 I dont know what specific resource you are trying to locate with wildcard
 nulls
 we might be able to help out better if you could explain your specific
 testcase
 HTH
 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.


  Date: Sat, 6 Sep 2008 12:22:54 -0500
  From: [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  Subject: Tomcat vs Weblogic JNDI Lookup
 
  The Weblogic servers we are using have been configured to allow JNDI
  datasource names like appds.
 
  For development (localhost), we might be running Tomcat and when declared
 in
  the context section of server.xml, Tomcat will hang JNDI datasources on
  java:comp/env/jdbc/* in the JNDI tree.
 
  *Problem:* in Weblogic, the JNDI lookup is appds whilst in Tomcat, it
  seems that that I must provide the formal java:comp/env/jdbc/appds. I'm
  afraid the Tomcat version is an implicit standard but unfortunately, I
 can't
  change Weblogic's config ... so that means we end up with two different
  spring config files (we're using spring 2.5) to facilitate the different
  environments.
  Is there an elegant way to address this. Can I look JNDI names up
 directly
  in Tomcat?

 _
 See how Windows connects the people, information, and fun that are part of
 your life.
 http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/


Re: Newbies, becareful of pure cookie based magic... theres a few gotcha's

2008-09-07 Thread Leon Rosenberg
I think you are speaking about JSF and I think you are completely
misunderstanding the concept.
The diversification is done via parameters just as same as it's done
via content path or 'visible' parameters in
old school frameworks. The actual problem is that everything is sent
via POST and that is or was a problem with google some time ago.
But if you are creating a login protected site for members, why the
hell should you care about google?

Just separate seo-related content from the application and be happy.
The seo guys are happiest with php anyway.

Leon

On Sun, Sep 7, 2008 at 2:42 AM, Johnny Kewl [EMAIL PROTECTED] wrote:
 I see this in the Netbeans group and its popping up its ugly head and making
 other area's complex.
 It seems with these modern day frameworks, I have an idea which one it is in
 particular but wont mention names... that its possible to build an entire
 site behind one URL

 http://mydomain/IamInTroubleProject

 and every thing is cookie managed and delivered behind this URL...

 If you are doing that... just start by asking yourself, how google is going
 to index it... the actual content.

 And as I'm starting to realize there are other issues like caching proxies
 and the like...

 Going to add this to my other no no's like those people that insist on
 building entire site only in JSP pages... but this one is actually a big
 gotcha, especially when the client comes back and says... um I want them to
 find the stuff I'm selling ;)

 Have Fun...

 ---
 HARBOR : http://www.kewlstuff.co.za/index.htm
 The most powerful application server on earth.
 The only real POJO Application Server.
 See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
 ---





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



[NEWBIE]Tomcat 6.0.16-reboot required when changing the port number

2008-09-07 Thread Jon Camilleri
1.   I've updated server.xml to change the default port from 8080 to 80,
however, I've noted that restarting the server leaves apache tomcat
listening on both ports 8080 and 80, until the server is rebooted.

 

Scripts executed

shutdown.sh

startup.sh

 

OS: RedHat Fedora 9 running Linux 2.6.25

 

2. It's also noted that exporting the following line, makes the server crash
(i.e. Gnome does not boot up and some libraries seem be corrupted during
startup)

export LD_ASSUME_KERNEL=2.4.1  Why?

 

Rgds,

 

Jonathan Camilleri

Mobile (MT): 00356 7982 7113 

E-mail: [EMAIL PROTECTED] 



-

 P Please consider your environmental responsibility before printing this
e-mail 

I usually reply to e-mails within 2 business days.  If it's urgent, give me
a call.



-

 

?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves at this level.
 Documentation at /docs/config/server.html
 --
Server port=8005 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina
  
!--The connectors can use a shared executor, you can define one or more named thread pools--
!--
Executor name=tomcatThreadPool namePrefix=catalina-exec- 
maxThreads=150 minSpareThreads=4/
--


!-- A Connector represents an endpoint by which requests are received
 and responses are returned. Documentation at :
 Java HTTP Connector: /docs/config/http.html (blocking  non-blocking)
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port 8080
--
Connector port=80 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
!-- A Connector using the shared thread pool--
!--
Connector executor=tomcatThreadPool
   port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
--   
!-- Define a SSL HTTP/1.1 Connector on port 8443
 This connector uses the JSSE configuration, when using APR, the 
 connector should be using the OpenSSL style configuration
 described in the APR documentation --
!--
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /


!-- An Engine 

Re: [NEWBIE]Tomcat 6.0.16-reboot required when changing the port number

2008-09-07 Thread Steve Ochani

 1.I´ve updated server.xml to change the default port from 8080 to
 80, however, I´ve noted that restarting the server leaves apache
 tomcat listening on both ports 8080 and 80, until the server is
 rebooted.


Are you stating that you have to reboot twice?

Are you sure that it's tomcat that is still listening on port 8080?

Try the shutdown script then run the command

netstat -anp | grep 8080

as root. If nothing comes up then that is a good thing.

You may end up having to post your server.xml is the problem persists.


 Scripts executed
 shutdown.sh
 startup.sh

 OS: RedHat Fedora 9 running Linux 2.6.25

 2. It´s also noted that exporting the following line, makes the
 server crash (i.e. Gnome does not boot up and some libraries seem be
 corrupted during startup) export LD_ASSUME_KERNEL=2.4.1 Why?

Most likely because you are running kernel 2.6 and trying to force some apps to 
think you are
running 2.4. This will cause libc problems.

Why are you doing this? Tomcat doesn't require you to do this.



-Steve O.



-
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: Default application or HTML redirect

2008-09-07 Thread Mostafa Mossaad
Konstantin, any ideas?

Guys?

-Original Message-
From: Mostafa Mossaad [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 06, 2008 2:59 PM
To: Tomcat Users List
Subject: RE: Default application or HTML redirect

Hello Konstantin,
I changed the port number during installation to avoid having
users writing :8080 whenever the access my application

Also, I believe I have the manager application installed, I took
a look at it a while ago, however, my .WAR file is deployed and I didn't
find any need to use the manager application.

I have checked my META-INF folder, and didn't find any files
except for MANIFEST.ME

What do you think? 


Regards,
Mostafa

-Original Message-
From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2008 12:22 PM
To: Tomcat Users List
Subject: Re: Default application or HTML redirect

Well,

Judging from your server.xml file, you are using Tomcat 6.0.

Well, the file is the same as the default one, only connector port
number is changed, s/8080/80/

Do you have manager application installed? Usally it is installed.
If yes, you can add
user username=foo password=bar roles=manager/ to your
conf/tomcat-users.xml, and access the application by the
http://localhost/manager/html/

It will list all the applications that are deployed, and allows you to
undeploy applications and deploy your war file by uploading it.

Also, do you have META-INF/context.xml in your war file? If it does
exist there, and is not correctly written, it may break some things.

Best regards,
Konstantin Kolinko

2008/9/4 Mostafa Mossaad [EMAIL PROTECTED]:
 Hello Konstantin,
I believe I've miss lead you. I'm not using IIS and Tomcat 
 concurrently.

What I mean is that I had an older version of this application 
 that used to run on IIS *instead* of Tomcat. When I had the IIS 
 application, I used to access my URL directly, without the /MyApp 
 extension via a simple .html redirect file in the wwwroot folder.

Right now, I don't even use IIS, only Tomcat.

 Regards,
 Mostafa

 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 04, 2008 1:59 AM
 To: Tomcat Users List
 Subject: Re: Default application or HTML redirect

 I have a thought that there is some specifics in integrating Tomcat 
 with IIS.

 You did not mention how you did that, and what is in your 
 worker.properties, and so on. Do you have proper configuration of 
 IIS-Tomcat ISAPI redirector?

 I have to say that I have yet no experience with configuring IIS with 
 Tomcat, so the following are somewhat theoretical findings. Maybe, if 
 the following won't help you, you can repost your question mentioning 
 IIS in its title, and properly describing all components of your 
 configuration.

 Also, you may try searching on how to access tomcat root application 
 through IIS.

 Here is what I have found:
 1)
 http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/j
 k/
 config/IISConfig.html

 It is some Tomcat class that writes IIS configuration files for you 
 (e.g.
 as the initial configuration of the server). Note the noRoot
 configuration
 attribute.

 If you examine the sources of that class, you may note, that root 
 context (ctxPath equals ) have some special processing. That 
 includes the following comment:
 # Note: To correctly serve the Tomcat's root context, IIS's Home 
 Directory must
 # must be set to: \ + getAbsoluteDocBase(context) + \

 May be that is what you are missing?

 Somehow I cannot not find any mention of root context specifics in the

 tomcat and tomcat connector documention and wiki.

 2) The following two articles might be useful:
 http://www.iisadmin.co.uk/?p=8
 http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_IIS_6_Reques
 t_
 Processing_Basics_Part_1.aspx

 I did not read them through, though.

 Best regards,
 Konstantin Kolinko

 2008/9/3 Mostafa Mossaad [EMAIL PROTECTED]:
 Any ideas Konstantin?

 Any ideas Mark?

 Regards,
 Mostafa


 -Original Message-
 From: Mostafa Mossaad [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 01, 2008 3:56 PM
 To: Tomcat Users List
 Subject: RE: Default application or HTML redirect

 I forgot to add that yes, I can access my application locally but 
 with using the external IP address, also without the /MyApp extension

 and
 it
 loads like I want

 -Original Message-
 From: Mostafa Mossaad [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 01, 2008 11:51 AM
 To: Tomcat Users List
 Subject: RE: Default application or HTML redirect

 Hello Konstantin

 1- Yes, my host is accessible by its IP address, when I enter the IP,

 without the /MyAPp extension, it loads the web page I want normally,
 not
 the Apache default page

 2- I always delete temp files and clear my cookies whenever I'm 
 trying

 3- After uninstalling Tomcat, I deleted all its folders, especially
 the
 ones that contain conf/server.xml and 

Re: Newbies, becareful of pure cookie based magic... theres a few gotcha's

2008-09-07 Thread Johnny Kewl


- Original Message - 
From: Leon Rosenberg [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, September 07, 2008 9:49 PM
Subject: Re: Newbies, becareful of pure cookie based magic... theres a few 
gotcha's




I think you are speaking about JSF and I think you are completely
misunderstanding the concept.
The diversification is done via parameters just as same as it's done
via content path or 'visible' parameters in
old school frameworks. The actual problem is that everything is sent
via POST and that is or was a problem with google some time ago.
But if you are creating a login protected site for members, why the
hell should you care about google?

Just separate seo-related content from the application and be happy.
The seo guys are happiest with php anyway.


Leon... what is it that it all done with a POST?
All I've noticed is that someone is asking questions, how do I get my site 
onto google, how do I get the proxy server to cache, and when you try help 
them it becomes apparent that its all behind one url... and then I really 
dont know what to tell em, other that redesign your site, sorry...
Its actually difficult to imagine a site built using just using TC 
technology having a single url, its got to be coming from one major control 
servlet that even does things like include static content and ajax is used 
incorrectly.

I tend to agree with this guy for instance...
http://www.webpronews.com/expertarticles/2006/11/21/ajax-and-search-engines
Ajax or XMLHttpRequest can use a post, but I've never used it that way, for 
the most part is always a get on our stuff?


Whether public or private I think anyone should be thinking about the 
possibility of indexing their site.
I dont think its impossible at all to make a cookie driven site search 
engine friendly, but it doesnt seem be happening...


Without even taking technology, if one minute the content behind a url is 
cars for sale, and the next minute its top sales man of the year, how do 
you index that?
And if a user is wanting to pull TC apart to get at Vary: ETags... wonder 
why that is... maybe another single url site got em ;)


Anyway that all I'm saying because I think after 6 months of hard work and 
design if developers do find themselves in this position, its a real 
gotcha...


Probably can be avoided or done correctly in any framework... but they 
getting caught... thats all I'm trying to say to developers, because once 
there, how do you help them?



On Sun, Sep 7, 2008 at 2:42 AM, Johnny Kewl [EMAIL PROTECTED] wrote:
I see this in the Netbeans group and its popping up its ugly head and 
making

other area's complex.
It seems with these modern day frameworks, I have an idea which one it is 
in

particular but wont mention names... that its possible to build an entire
site behind one URL

http://mydomain/IamInTroubleProject

and every thing is cookie managed and delivered behind this URL...

If you are doing that... just start by asking yourself, how google is 
going

to index it... the actual content.

And as I'm starting to realize there are other issues like caching 
proxies

and the like...

Going to add this to my other no no's like those people that insist on
building entire site only in JSP pages... but this one is actually a big
gotcha, especially when the client comes back and says... um I want them 
to

find the stuff I'm selling ;)

Have Fun...

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---





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




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





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



Re: Tomcat 6 Memory problem

2008-09-07 Thread Jq
top - console command that shows a constantly updated list of all the
processes and how many resources they are consuming. you can also kill
processes from inside this app. see screen scrape below.


On Sun, 2008-09-07 at 10:21 +0200, Johnny Kewl wrote:

 do you have anything like the task manager in linux 
 that windows has...


top - 20:06:31 up  8:04,  3 users,  load average: 0.02, 0.06, 0.02
Tasks: 165 total,   1 running, 164 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.2%us,  0.3%sy,  0.0%ni, 98.5%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st
Mem:   1026560k total,   914004k used,   112556k free,65556k buffers
Swap:  2031608k total,   60k used,  2031548k free,   510136k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
COMMAND 
  
 2835 root  20   0  292m  23m 9.9m S  2.0  2.4   9:47.50
Xorg
  
 3518 me   20   0 99200  25m  13m S  0.3  2.6   0:13.63
gnome-terminal  
  
11612 me   20   0  2492 1060  800 R  0.3  0.1   0:00.02
top 
  
1 root  20   0  1948  744  536 S  0.0  0.1   0:01.10
init
  
2 root  15  -5 000 S  0.0  0.0   0:00.00
kthreadd
  
3 root  RT  -5 000 S  0.0  0.0   0:00.00
migration/0 
  
4 root  15  -5 000 S  0.0  0.0   0:00.33
ksoftirqd/0 
  
5 root  RT  -5 000 S  0.0  0.0   0:00.00
watchdog/0  
  
6 root  RT  -5 000 S  0.0  0.0   0:00.00
migration/1 
  
7 root  15  -5 000 S  0.0  0.0   0:00.21
ksoftirqd/1 
  
8 root  RT  -5 000 S  0.0  0.0   0:00.00
watchdog/1  
  
9 root  15  -5 000 S  0.0  0.0   0:00.11
events/0
  
   10 root  15  -5 000 S  0.0  0.0   0:00.08
events/1
  
   11 root  15  -5 000 S  0.0  0.0   0:00.00
khelper 
  
   62 root  15  -5 000 S  0.0  0.0   0:00.00
kblockd/0   
  
   63 root  15  -5 000 S  0.0  0.0   0:00.00
kblockd/1   
  
   65 root  15  -5 000 S  0.0  0.0   0:00.10
kacpid  
  
   66 root  15  -5 000 S  0.0  0.0   0:01.31
kacpi_notify
  
  176 root  15  -5 000 S  0.0  0.0   0:00.00
cqueue  
  
  178 root  15  -5 000 S  0.0  0.0   0:00.00
ksuspend_usbd   
  
  183 root  15  -5 000 S  0.0  0.0   0:00.00
khubd   
  
  186 root  15  -5 000 S  0.0  0.0   0:00.05
kseriod 
  
  230 root  20   0 000 S  0.0  0.0   0:00.00
pdflush 
  
  231 root  20   0 000 S  0.0  0.0   0:00.29
pdflush 
  
  232 root  15  -5 000 S  0.0  0.0   0:00.22
kswapd0 
  
  275 root  15  -5 000 S  0.0  0.0   0:00.00
aio/0   
  
  276 root  15  -5 000 S  0.0  0.0   0:00.00
aio/1   
  
  440 root  15  -5 000 S  0.0  0.0   0:00.00
kpsmoused   
  
  481 root  15  -5 000 S  0.0  0.0   0:00.00
ata/0   

Re: Default application or HTML redirect

2008-09-07 Thread Konstantin Kolinko
I am sorry, but can you summarize, what is not working at this
moment?

What computers, where in the network, are involved in the case
that is not working?

In this thread several questions were raised.

a) How to make an application the default one.

Answer: The default application is named ROOT (case sensitive).
You should undeploy the default one
(delete webapps/ROOT, webapps/ROOT.war, conf/localhost/ROOT.xml),
rename your war file to ROOT.war and deploy it.

Using the manager application you can verify, whether the deployment
was successful. But it seems that it was, because you can access
your application without MyApp path.

Also, as far as I understand, at this moment you have deployed your
application twice, as  ROOT.war and as MyApp.war.

Note, that the manager application displays a name for each application,
that name is configured in display-name element of web.xml.
Thus, you can see, whether your application is the root one, and not the
Tomcat's default one (Welcome to Tomcat is the name of the one that
comes with Tomcat).

b) IIS is not used at the server.

c) When accessing the server from a client computer, using its external
IP address of the server, the application is accessible without MyApp path.

d) If, accessed from the same client, using DNS name of the server,
default Tomcat ROOT application is displayed.

If that is the case, then you should check that it is actually accessing
your server, and not some other computer.

Check that DNS name is being resolved correctly, as you are expecting.
1) with nslookup Windows command, 2) check the contents
of file %SystemRoot%\system32\drivers\etc\hosts - the IP address
can be overwritten there.

Check the route to the server (tracert).

If there is network address translation (NAT) and/or port mapping involved,
check configuration of the router (proxy) that performs the translation.
Maybe your ISA is that proxy, and I am not familiar with how it is being
configured.

Try accessing the manager application through the server name.

If request reaches the server, it can be processed differently if virtual
servers are configured, but in your case
- Tomcat configuration does not have virtual servers (we have seen that
from your server.xml),
- You have undeployed the default ROOT application (you can check
that through the manager application), thus there is no way that the
default Tomcat page can be displayed by this instance of the server.

What is the configuration of your ISA? How your publishing the server
through it is configured?

So, what is not working?


Best regards,
Konstantin Kolinko

2008/9/8 Mostafa Mossaad [EMAIL PROTECTED]:
 Konstantin, any ideas?

 Guys?

 -Original Message-
 From: Mostafa Mossaad [mailto:[EMAIL PROTECTED]
 Sent: Saturday, September 06, 2008 2:59 PM
 To: Tomcat Users List
 Subject: RE: Default application or HTML redirect

 Hello Konstantin,
I changed the port number during installation to avoid having
 users writing :8080 whenever the access my application

Also, I believe I have the manager application installed, I took
 a look at it a while ago, however, my .WAR file is deployed and I didn't
 find any need to use the manager application.

I have checked my META-INF folder, and didn't find any files
 except for MANIFEST.ME

What do you think?


 Regards,
 Mostafa

 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 04, 2008 12:22 PM
 To: Tomcat Users List
 Subject: Re: Default application or HTML redirect

 Well,

 Judging from your server.xml file, you are using Tomcat 6.0.

 Well, the file is the same as the default one, only connector port
 number is changed, s/8080/80/

 Do you have manager application installed? Usally it is installed.
 If yes, you can add
 user username=foo password=bar roles=manager/ to your
 conf/tomcat-users.xml, and access the application by the
 http://localhost/manager/html/

 It will list all the applications that are deployed, and allows you to
 undeploy applications and deploy your war file by uploading it.

 Also, do you have META-INF/context.xml in your war file? If it does
 exist there, and is not correctly written, it may break some things.

 Best regards,
 Konstantin Kolinko

 2008/9/4 Mostafa Mossaad [EMAIL PROTECTED]:
 Hello Konstantin,
I believe I've miss lead you. I'm not using IIS and Tomcat
 concurrently.

What I mean is that I had an older version of this application
 that used to run on IIS *instead* of Tomcat. When I had the IIS
 application, I used to access my URL directly, without the /MyApp
 extension via a simple .html redirect file in the wwwroot folder.

Right now, I don't even use IIS, only Tomcat.

 Regards,
 Mostafa

 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 04, 2008 1:59 AM
 To: Tomcat Users List
 Subject: Re: Default application or HTML redirect

 I have a thought that there 

Re: Tomcat loops indefinitely

2008-09-07 Thread Konstantin Kolinko
Well, I do not know what DefaultSparqlDispatcher actually is, but googling found
the following source code of it:

https://submarine.computas.com/sublima/tags/0.9.5/blocks/sublima-query/src/main/java/com/computas/sublima/query/impl/DefaultSparqlDispatcher.java

Thus, the following line:
SettingsService.getProperty(sublima.joseki.endpoint);
is the address to where it opens an HttpURLConnection.

What is that address? Judging from the behavior, it occurs that it makes
request back to itself.

Best regards,
Konstantin Kolinko

2008/9/5 Kjetil Kjernsmo [EMAIL PROTECTED]:
 Hi all!

 I'm struggling with a really weird problem. I have a Cocoon 2.2 application
 that runs on Tomcat 5.5.25-5ubuntu1 and Java 1.5.0. My (semi-)production
 system, my test system and my development system are Ubuntu 8.04 boxes, and
 they differ very little, with the exception that the production environment
 is a Vmware slice, the others are not. The application runs fine on the
 development and test systems, but it is not at all working on the production
 box.

 What's happening is that I deploy the war, restart the server. I then GET a
 URL on the system, apparently, any URL will do. The application starts doing
 its thing. In my log, I see messages like
 http-8180-Processor230 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher
 connected to Joseki.
 http-8180-Processor229 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher
 connected to Joseki.
 http-8180-Processor228 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher
 connected to Joseki.

 which my application emits. The problem is that the application has apparently
 gone into a loop, as this appears to be different threads. Eventually, it
 runs out of threads, and comes to a halt:

 (...)

-
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: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-09-07 Thread James Wang
Hi Mark,
Thanks for your suggestion, Yes, we are  using apache httpd and enable
keep-alive (set 15 seconds),
and most users are using IE, don't know why it happened to IE users only,
would you please explain
it to us more in details.  another questions is if we disable the
keep-alive, will it cause too many connections
opened in our apache httpd servers.

Thanks a lot  Best Regards.
James Wang.

On Fri, Sep 5, 2008 at 10:26 PM, Mark Thomas [EMAIL PROTECTED] wrote:

 James Wang wrote:
  Hi all,
 
  we are encountering java.net.SocketTimeoutException: Read timed out
  occasionally,
  wondering if it's something related to network problem,
  Would highly appreciate if someone can help, following are the program
 stack
 If the client is IE, the server httpd and you are using Keep-Alive try
 disabling it.

 Mark


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




Re: Tomcat 6 and corruption of text in French error pages

2008-09-07 Thread Konstantin Kolinko
2008/9/6 André-John Mas [EMAIL PROTECTED]:
 Hi,

 I have Tomcat 6 installed on a French version of Windows XP. When
 error pages, such as the 404 error page, appear the French text is
 corrupted.
 For example, instead of the expected:

  La ressource demandée (/manager/html) n'est pas disponible.

 I get:

  La ressource demand�e (/manager/html) n'est pas disponible.

 This would appear to indicate that the page is being encoded as UTF-8
 and then treated as ISO-8859-1. The display is consistent in all
 browsers I have tested with, which include IE6, Safari and Firefox.
 Has anyone seen this and do they know how to resolve it? I know I
 could simply use my own error page, but that is not the answer I am
 looking for,


1. What, exactly, Tomcat version are you using?

2. Does Content-Type header of the response contain the ;charset=utf8
suffix? You can check that using LiveHTTPHeaders firefox plugin, or
using wget --save-headers, or connecting through telnet.

In my case, the Content-Type: of the 404 page is text/html;charset=utf8,
and the browser (Firefox 3) correctly detects that the page encoding is
UTF-8.

Best regards,
Konstantin Kolinko

-
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: Good JSP editor

2008-09-07 Thread Konstantin Kolinko
2008/9/6 sam wun [EMAIL PROTECTED]:

 If you are  using a good jsp editor, can you tell me where its download
 link?

 My current development enviornment is Eclipse 3.4 and Tomcat 5.5.26


What are you expecting from a good one?
You know, tastes and requirements may differ.


Eclipse already has an JSP editor. I mean, the JEE developer's edition
of Eclipse.

Our developers are using it and have no significant complaints.

Well, some older versions could corrupt the page code (loosing
characters) when reformatting it, but that was a year ago. I do not
know such complaint about the current one.

Also, there are still some issues when correct code is highlighed
as if it were wrong. Usually I leave JSP validation disabled for the
build time.

There are some other web development plugins for Eclipse, that
predate the Web Standard Tools WST/JST project (e.g. MyEclipse),
but I do not know what is their status now.
Some of them might be more mature than WST/JST.

Best regard,
Konstantin Kolinko

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



UnauthorizedAccessException error while running WMI in tomcat

2008-09-07 Thread new_bie_tomcat

I have written the following code in Java to access registry of a remote
machine. I am able to execute the program successfully when i run the
program separately. But when I try to execute the code in Apache Tomcat. I
am getting 
UnauthorizedAccessException error.The full text of error is
System.UnauthorizedAccessException: Access to the registry key is denied. at
Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at
Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String
machineName) at BOMInfoCollector.BOMInfoCollector.getOSVersion(StreamWriter
file, String remoteName) 
Following is the Java code: try { String keykey =
C:\\Diagnostic\\DiagnosticAssayRE\\Executable\\BOMInfoCollector.exe; 
String ipadddress = Remote machine's IP; String keyStr1= keykey +   +
ipadddress; 
Process p = Runtime.getRuntime().exec(keyStr1); 
BufferedReader stdInput = new BufferedReader(new
InputStreamReader(p.getInputStream())); 
BufferedReader stdError = new BufferedReader(new
InputStreamReader(p.getErrorStream())); 
// read the output from the command 
while ((s = stdInput.readLine()) != null) 
{ 

response = response + s +\n; 
} 
while ((s = stdError.readLine()) != null) 
{ 
response = response + s +\n; 
System.out.println(s); 
}}catch(Exception e){ 
System.out.println(Exception occured +e); 
} 

Following is the C# code whose name is 
string osKeyName = SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion; 
try{ 
RegistryKey hklm = RegistryKey.OpenRemoteBaseKey( 
RegistryHive.LocalMachine, remoteName); 
RegistryKey osKey = hklm.OpenSubKey(osKeyName); 

if(osKey != null) { 
object prodName = osKey.GetValue(ProductName); 
Console.WriteLine(OSName= + prodName); 
} 
Console.WriteLine(Exiting getOSVersion() method); 
}catch(System.UnauthorizedAccessException e){ 
Console.WriteLine(You are not authorized to access the machine.Please check
the network Privileges +e); 
}catch(Exception e){ 
Console.WriteLine(Error occured +e); 
} 

Please let me know if any configuration is needed in Tomcat to support this? 
-- 
View this message in context: 
http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19365845.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Deploying an app from remote url (tomcat manager)

2008-09-07 Thread Noble Paul നോബിള്‍ नोब्ळ्
the final '/' is a typo

On Fri, Sep 5, 2008 at 7:57 PM, Mark Thomas [EMAIL PROTECTED] wrote:
 Noble Paul നോബിള്‍ नोब्ळ् wrote:
 hi ,
 I tried the to deploy a war from an http url

 I tried the following syntax

 jar:http://hostname:port/path/to/a/warfile.war!

 I haven't got a system handy to test with but do you need the final '/'?
 That would make the URL:
 jar:http://hostname:port/path/to/a/warfile.war!/

 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]





-- 
--Noble Paul


Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-09-07 Thread Mark Thomas
James Wang wrote:
 Hi Mark,
 Thanks for your suggestion, Yes, we are  using apache httpd and enable
 keep-alive (set 15 seconds),
 and most users are using IE, don't know why it happened to IE users only,
 would you please explain

IE 'features' that don't follow the spec and therefore can cause problems.

 it to us more in details.  another questions is if we disable the
 keep-alive, will it cause too many connections
 opened in our apache httpd servers.

Maybe. Try it an see. Alternatively, if there are no real problems, just
ignore the error message.

Mark

 
 Thanks a lot  Best Regards.
 James Wang.
 
 On Fri, Sep 5, 2008 at 10:26 PM, Mark Thomas [EMAIL PROTECTED] wrote:
 
 James Wang wrote:
 Hi all,

 we are encountering java.net.SocketTimeoutException: Read timed out
 occasionally,
 wondering if it's something related to network problem,
 Would highly appreciate if someone can help, following are the program
 stack
 If the client is IE, the server httpd and you are using Keep-Alive try
 disabling it.

 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: UnauthorizedAccessException error while running WMI in tomcat

2008-09-07 Thread Mark Thomas
new_bie_tomcat wrote:

 Please let me know if any configuration is needed in Tomcat to support this? 

You need to run Tomcat under a user that has the permissions to perform
the action you are trying to perform. If you are running Tomcat as a
service, the default LocalSystem user will not have this permission.

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]