Re: Hi..

2008-05-09 Thread Antonio Petrelli
2008/5/9 Ch Praveena [EMAIL PROTECTED]:
  Can anyone send me any sample source code(war file) that implements
 session for a very important testing purpose of clustering.

http://thedailywtf.com/Articles/plz-email-me-teh-codez.aspx

Antonio

-
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: ssl server configuration

2008-05-09 Thread Mark Thomas

Kevin Williams wrote:

But when i try to connect to https://host:8443, i get no response.  i also
tried telneting to that port to see if it was at least open from the server
its running on (to eliminate a firewall problem) and i get connection
refused.  I don't beleive the daemon is running on the port.


Is there a firewall between your client and Tomcat? Is port 8443 open?


 the log files
are empty with no helpful info to speak of.


You should see the startup messages for both the 8080 connector and the 
8443 connector. Can you post those messages here please.


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: I dont want my users to see tomcat console. Any advice?

2008-05-09 Thread Mark Thomas

ryan webb wrote:

Mr. Johnny Kewl,

Thank you very much for your quick reply.
I get what are you trying to say.

except on the last part:
 Also make a note of the URL on the default page, so you can still get at
the admin stuff.
what note? please write simple example.

You're right, if I restricted the users from seeing Tomcat Manager console,
that means I cannot also get in.(if i use another computer).

Sir, would you recommend me some resources, websites about what i am trying
to accomplish?


1. Don't configure the manager application as the ROOT application. Change 
it back to how it is in a default install.
2. Re-enable security so a username and password is required to access the 
manager app (this is also how the default install is configured)

3. Make your application the ROOT application.

The Tomcat docs should provide all the information you need for 
configuration. Ask here if you need any help.


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]



Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Hi,

Is it possible to configure a separate class loader for each web app running
under tomcat? A colleague has informed that he can do this with web sphere
and I am wondering if it is possible with tomcat.

Thanks

Paul Ockleford


**
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**


-
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: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas

[EMAIL PROTECTED] wrote:

Hi,

Is it possible to configure a separate class loader for each web app running
under tomcat? A colleague has informed that he can do this with web sphere
and I am wondering if it is possible with tomcat.


This is the case by default. No configuration is required.

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: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas

Mark Thomas wrote:

[EMAIL PROTECTED] wrote:

Hi,

Is it possible to configure a separate class loader for each web app 
running
under tomcat? A colleague has informed that he can do this with web 
sphere

and I am wondering if it is possible with tomcat.


This is the case by default. No configuration is required.


Sorry, I should also have included this link
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

and pointed out that, via configuration, you can have the classloader 
hierarchy that was the default in previous versions. See

http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

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: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Ok, that's strange because yesterday I had a small problem, and I assumed
that it was due to the same class being loaded on startup by 2 web apps.

I had a url endpoint loaded into a config class on startup from the web.xml,
for some reason no messages were reaching the correct end point. This config
class is also loaded by a test version of the app running under the same
tomcat as pre prod. When the second web app was loaded and its config class
was loaded and the parameter read in from the web.xml it changed the value
for both web apps.

I have not being using java or tomcat for all that long, but I would have
thought if a class loader was assigned for each web app then they would each
have their own copy of the config class? Meaning that web app1 should not
have been pointing at the end point for web app 2? If not then could you
tell me why?

Thanks 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 09 May 2008 11:10
To: Tomcat Users List
Subject: Re: Possible to assign different class loader for each web app with
tomcat

[EMAIL PROTECTED] wrote:
 Hi,
 
 Is it possible to configure a separate class loader for each web app 
 running under tomcat? A colleague has informed that he can do this 
 with web sphere and I am wondering if it is possible with tomcat.

This is the case by default. No configuration is required.

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]



**
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**


-
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] Unable to find a javac compiler;

2008-05-09 Thread sakari . aaltonen
I would like to set up a Wiki and JSPWiki seems a likely candidate. So  
I am trying to get Tomcat 5.5 running. (The environment is Linux  
OpenSUSE 10.3.)


 I have got as far as to have the
   Sample Hello, World Application
servlet run. However, the JSP example always fails with

  Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK

However, JAVA_HOME looks all right (to me):
  [EMAIL PROTECTED]:/tmp ll $JAVA_HOME/lib
  total 28960
  -rw-r--r-- 1 root root 15153295 2007-03-16 12:01 ct.sym
  -rw-r--r-- 1 root root   145760 2007-09-22 01:43 dt.jar
  -rw-r--r-- 1 root root   206225 2007-09-22 01:43 htmlconverter.jar
  -rw-r--r-- 1 root root18381 2007-03-16 12:01 ir.idl
  -rw-r--r-- 1 root root   388392 2007-09-22 01:43 jconsole.jar
  -rwxr-xr-x 1 root root 7056 2007-03-16 12:01 jexec
  -rw-r--r-- 1 root root  429 2007-03-16 12:01 orb.idl
  -rw-r--r-- 1 root root  1504171 2007-09-22 01:43 sa-jdi.jar
  -rw-r--r-- 1 root root 12158340 2007-09-22 01:43 tools.jar
  [EMAIL PROTECTED]:/tmp

(There is also JDK_HOME; it is equal to JAVA_HOME.)

Both java and javac work fine from the command line:
  [EMAIL PROTECTED]:/tmp java -version
  java version 1.6.0_01
  Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
  Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)
  [EMAIL PROTECTED]:/tmp javac -version
  javac 1.6.0_01
  [EMAIL PROTECTED]:/tmp


Why doesn't Tomcat find javac?


Thank you,
Sakari Aaltonen








-
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: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread David Delbecq
This all depends on your webapp structure. If your config class is on the 
common or system class loader, it's shared by all webapps. Otherwise, (that 
mean if class is in WEB-INF/lib or WEB-INF/classes), it shouldn't be shared.

Unless, of course, you specified a specific classloader to use by tomcat in 
your context.xml.


Le Friday 09 May 2008 12:16:23 [EMAIL PROTECTED], vous avez écrit :
 Ok, that's strange because yesterday I had a small problem, and I assumed
 that it was due to the same class being loaded on startup by 2 web apps.

 I had a url endpoint loaded into a config class on startup from the
 web.xml, for some reason no messages were reaching the correct end point.
 This config class is also loaded by a test version of the app running under
 the same tomcat as pre prod. When the second web app was loaded and its
 config class was loaded and the parameter read in from the web.xml it
 changed the value for both web apps.

 I have not being using java or tomcat for all that long, but I would have
 thought if a class loader was assigned for each web app then they would
 each have their own copy of the config class? Meaning that web app1 should
 not have been pointing at the end point for web app 2? If not then could
 you tell me why?

 Thanks

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: 09 May 2008 11:10
 To: Tomcat Users List
 Subject: Re: Possible to assign different class loader for each web app
 with tomcat

 [EMAIL PROTECTED] wrote:
  Hi,
 
  Is it possible to configure a separate class loader for each web app
  running under tomcat? A colleague has informed that he can do this
  with web sphere and I am wondering if it is possible with tomcat.

 This is the case by default. No configuration is required.

 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]



 **
 This message  may  contain  confidential  and  privileged information.
 If you are not  the intended  recipient please  accept our  apologies.
 Please do not disclose, copy or distribute  information in this e-mail
 or take any  action in reliance on its  contents: to do so is strictly
 prohibited and may be unlawful. Please inform us that this message has
 gone  astray  before  deleting it.  Thank  you for  your co-operation.

 NHSmail is used daily by over 100,000 staff in the NHS. Over a million
 messages  are sent every day by the system.  To find  out why more and
 more NHS personnel are  switching to  this NHS  Connecting  for Health
 system please visit www.connectingforhealth.nhs.uk/nhsmail
 **


 -
 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: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Thanks for the reply. 

To be honest I am not sure, both web apps are separated, have their own
web.xml files and also are accessed via different ports, however as they are
effectively the same application at different stages of development they
each need to load parameters in on start up to a class that holds constant
values. (I don’t know if this is the best or a good way to do it, its how it
was done before I started). 

Here are some excerpts from the web.xml, the only difference in each of the
2 web apps web.xml is that they load a different value for the url endpoint,
as they point to different message handling development areas:

servlet-nameConfigurationManager/servlet-name
 
servlet-classapplication.util.startup.ConfigurationManager/servlet-class
load-on-startup1/load-on-startup
init-param
  param-nameMESSAGE.ENDPOINT/param-name
  param-valuehttp://192.168.28.193/router/SOAPEndpoint/param-value

/init-param 
/servlet

To be honest I am sure it’s a lack of understanding on my part, but that’s
something I want to correct!

Thanks

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: 09 May 2008 11:35
To: Tomcat Users List
Subject: Re: Possible to assign different class loader for each web app with
tomcat

This all depends on your webapp structure. If your config class is on the
common or system class loader, it's shared by all webapps. Otherwise, (that
mean if class is in WEB-INF/lib or WEB-INF/classes), it shouldn't be shared.

Unless, of course, you specified a specific classloader to use by tomcat in
your context.xml.


Le Friday 09 May 2008 12:16:23 [EMAIL PROTECTED], vous avez écrit :
 Ok, that's strange because yesterday I had a small problem, and I assumed
 that it was due to the same class being loaded on startup by 2 web apps.

 I had a url endpoint loaded into a config class on startup from the
 web.xml, for some reason no messages were reaching the correct end point.
 This config class is also loaded by a test version of the app running
under
 the same tomcat as pre prod. When the second web app was loaded and its
 config class was loaded and the parameter read in from the web.xml it
 changed the value for both web apps.

 I have not being using java or tomcat for all that long, but I would have
 thought if a class loader was assigned for each web app then they would
 each have their own copy of the config class? Meaning that web app1 should
 not have been pointing at the end point for web app 2? If not then could
 you tell me why?

 Thanks

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: 09 May 2008 11:10
 To: Tomcat Users List
 Subject: Re: Possible to assign different class loader for each web app
 with tomcat

 [EMAIL PROTECTED] wrote:
  Hi,
 
  Is it possible to configure a separate class loader for each web app
  running under tomcat? A colleague has informed that he can do this
  with web sphere and I am wondering if it is possible with tomcat.

 This is the case by default. No configuration is required.

 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]



 **
 This message  may  contain  confidential  and  privileged information.
 If you are not  the intended  recipient please  accept our  apologies.
 Please do not disclose, copy or distribute  information in this e-mail
 or take any  action in reliance on its  contents: to do so is strictly
 prohibited and may be unlawful. Please inform us that this message has
 gone  astray  before  deleting it.  Thank  you for  your co-operation.

 NHSmail is used daily by over 100,000 staff in the NHS. Over a million
 messages  are sent every day by the system.  To find  out why more and
 more NHS personnel are  switching to  this NHS  Connecting  for Health
 system please visit www.connectingforhealth.nhs.uk/nhsmail
 **


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



**
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that 

Re: I dont want my users to see tomcat console. Any advice?

2008-05-09 Thread Johnny Kewl


---
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
Making the Java dream come true.
---
- Original Message - 
From: ryan webb [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, May 09, 2008 5:44 AM
Subject: Re: I dont want my users to see tomcat console. Any advice?



Mr. Johnny Kewl,

Thank you very much for your quick reply.
I get what are you trying to say.

except on the last part:
 Also make a note of the URL on the default page, so you can still get at
the admin stuff.
what note? please write simple example.


Nothing complicated... you taking your admin page away and all I want you to 
note is the links on that page

like
http://localhost:8080/manager/html

so that by just typing that into the browser you can still admin tomcat.

That ROOT is nothing more than just another webapp and is often used as an 
index page to navigate a whole site.
If you dont want to redirect, you can make it a normal Welcome page with 
links.

The admin stuff is still there... if you know the links... thats all
You can still get in ;)

if you use the meta tag

meta http-equiv=refresh content=1; url=../webapp/index.jsp

Then you can stick up those typical pages you see on the Web...
You should be redirected in 2 seconds... blah blah

Nothing special other than the ROOT webapp... has no context name.
Its just another Webapp...

The only problem that can happen is that sometimes if one is hosting with a 
SP... the SP wants the root to list everyones webapps.

TC is cool ;)


You're right, if I restricted the users from seeing Tomcat Manager 
console,

that means I cannot also get in.(if i use another computer).

Sir, would you recommend me some resources, websites about what i am 
trying

to accomplish?

God bless,
Ryan Webb - Philippines

On Fri, May 9, 2008 at 11:24 AM, Johnny Kewl [EMAIL PROTECTED] wrote:



---
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
Making the Java dream come true.
---
- Original Message - From: ryan webb [EMAIL PROTECTED]
To: tomcat-help users@tomcat.apache.org
Sent: Friday, May 09, 2008 5:01 AM
Subject: I dont want my users to see tomcat console. Any advice?

Ryan... try this

Make a new web app call it ROOT
Then in the JSP page add something like

meta http-equiv=refresh content=1; url=/webapp/index.jsp

Drop it into tomcat...

I cant remember the deatails off hand, but because the ROOT that comes 
with

TC is precompiled, it wont listen to you if you change it directly.
Copy the old root out, just in case you change your mind later.
Also make a note of the URL on the default page, so you can still get at
the admin stuff.

Have fun


 Dear Tomcat users,


*Situation:*
- I have internal web application (corporate web site only).
- I don't have Domain, user access our site using example:
http://107.105.13.236/webApplication/.

*Problem:*
- Users see tomcat manager console site when they type in URL
http://107.105.13.236/

*Question:*
- I don't want users to see the tomcat manager console site. Is there 
some

sort of redirection to webApplication?
I want users to see our webApplication when they typed in
http://107.105.13.236/

any advice, help, our suggestions are greatly appreciated

God bless,
Ryan Webb - Philippines




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



Solution to Problem with Java Security Manager

2008-05-09 Thread Jonathan O'Donovan
Hi All - 

I found a solution to the problem I was experiencing - I changed the following 
in my JavaHome\jre\lib\security\java.policy file  : 


grant {
 permission java.security.AllPermission;
};


It was previously set to 

grant codeBase file:${java.home}/lib/ext/* {
 permission java.security.AllPermission;
};


I had previously done the same in the java.policy file in 
TomcatHome\conf\java.policy and I thought that this should have fixed the 
problem because I thought that the 
java.policy file in the Tomcat folder would override those in 
JavaHome\jre\lib\security\java.policy but this doesn't seem to be the case, or 
is it ? 

If anybody can clear this up for me I'd be very grateful as I would like to 
make sure that I'm not compromising security in some way. 

Regards,
Jonathan O'Donovan
Web Developer,
EuroKom


Re: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas

[EMAIL PROTECTED] wrote:
Thanks for the reply. 


To be honest I am not sure, both web apps are separated, have their own
web.xml files and also are accessed via different ports, however as they are
effectively the same application at different stages of development they
each need to load parameters in on start up to a class that holds constant
values. (I don’t know if this is the best or a good way to do it, its how it
was done before I started). 


Here are some excerpts from the web.xml, the only difference in each of the
2 web apps web.xml is that they load a different value for the url endpoint,
as they point to different message handling development areas:

servlet-nameConfigurationManager/servlet-name
 
servlet-classapplication.util.startup.ConfigurationManager/servlet-class

load-on-startup1/load-on-startup
init-param
  param-nameMESSAGE.ENDPOINT/param-name
  param-valuehttp://192.168.28.193/router/SOAPEndpoint/param-value

/init-param 
/servlet


To be honest I am sure it’s a lack of understanding on my part, but that’s
something I want to correct!


It all depends on where you put the .class file or the .jar that contains 
the .class file. With this information we should be able to help you fix this.


Cheers,

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]



JNDI connection issue

2008-05-09 Thread Praful Sinha
 

Hi All,

 

Getting an issues while creating JNDI connection 

 

javax.management.MalformedObjectNameException: Invalid character ':' in
value part of property

at javax.management.ObjectName.construct(Unknown Source)

at javax.management.ObjectName.init(Unknown Source)

at
org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:1085)

at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:497)

at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:570)

at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:366)

at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:535)

at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:498)

at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:660)

at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:628)

at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:278)

at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife
cycleListener.java:129)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:117)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:703)

at org.apache.catalina.startup.Catalina.start(Catalina.java:566)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

 

Please reply I am in need

 

 

 

Thanks and Regards,

Praful Sinha.



RE: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Ok thanks, it's starting to become clearer now. 

The class file is in a jar file that lives in tomcat\shared\lib. I am
guessing that these classes are loaded by a class loader further up the
hierarchy described in the tomcat docs. I suppose in this instance there
would only be one class loaded? 

I guess if this is the case the only thing confusing me is why this class is
actually loaded by tomcat when it doesn't have to be? Does the
load-on-startup1/load-on-startup tag not load a class specifically for
this web app regardless of where the class file might be?

Thanks for the help by the way.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 09 May 2008 12:25
To: Tomcat Users List
Subject: Re: Possible to assign different class loader for each web app with
tomcat

[EMAIL PROTECTED] wrote:
 Thanks for the reply. 
 
 To be honest I am not sure, both web apps are separated, have their 
 own web.xml files and also are accessed via different ports, however 
 as they are effectively the same application at different stages of 
 development they each need to load parameters in on start up to a 
 class that holds constant values. (I don't know if this is the best or 
 a good way to do it, its how it was done before I started).
 
 Here are some excerpts from the web.xml, the only difference in each 
 of the
 2 web apps web.xml is that they load a different value for the url 
 endpoint, as they point to different message handling development areas:
 
 servlet-nameConfigurationManager/servlet-name
  
 servlet-classapplication.util.startup.ConfigurationManager/servlet-
 class
 load-on-startup1/load-on-startup
 init-param
   param-nameMESSAGE.ENDPOINT/param-name
   
 param-valuehttp://192.168.28.193/router/SOAPEndpoint/param-value
 
 /init-param
 /servlet
 
 To be honest I am sure it's a lack of understanding on my part, but 
 that's something I want to correct!

It all depends on where you put the .class file or the .jar that contains
the .class file. With this information we should be able to help you fix
this.

Cheers,

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]



**
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**


-
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: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: [newbie] Unable to find a javac compiler;
 
 Why doesn't Tomcat find javac?

Good question, since Tomcat 5.5 doesn't use the javac from tools.jar,
unless you have specifically configured it to do so.  Have you changed
anything in conf/web.xml?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas

[EMAIL PROTECTED] wrote:
Ok thanks, it's starting to become clearer now.  
The class file is in a jar file that lives in tomcat\shared\lib. I am

guessing that these classes are loaded by a class loader further up the
hierarchy described in the tomcat docs. I suppose in this instance there
would only be one class loaded? 


Correct. The class would be loaded once but that doesn't prevent multiple 
instances of the class being created. However, I suspect the class in 
question uses the singleton pattern so there is also only once instance. 
This instance will be shared between all webapps.



I guess if this is the case the only thing confusing me is why this class is
actually loaded by tomcat when it doesn't have to be? Does the
load-on-startup1/load-on-startup tag not load a class specifically for
this web app regardless of where the class file might be?


No. load-on-startup requires Tomcat to load the servlet when the context 
starts and the number dictates the order (as per the spec). The class 
loaders will be searched in the order described in the docs and the first 
instance found of the class will be used.


If (as it appears from your description) you have webapp specific 
information being held in a singleton class then you *must* place that 
class in WEB-INF/classes or the jar containing it in WEB-INF/lib


shared/lib is for classes that can be safely shared between multiple 
webapps. Personally I never used it. It generally caused more problems than 
it solved - one of the reasons it is removed by default in 6.0.x onwards.



Thanks for the help by the way.


No problem.

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: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Thanks for the replies, I think I understand what is happening now, I think
for safety's sake I will use a separate config file for each web app instead
of trying to share one between them all and load separate copies.

Thank you. 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 09 May 2008 13:41
To: Tomcat Users List
Subject: Re: Possible to assign different class loader for each web app with
tomcat

[EMAIL PROTECTED] wrote:
 Ok thanks, it's starting to become clearer now.  The class file is in 
 a jar file that lives in tomcat\shared\lib. I am guessing that these 
 classes are loaded by a class loader further up the hierarchy 
 described in the tomcat docs. I suppose in this instance there would 
 only be one class loaded?

Correct. The class would be loaded once but that doesn't prevent multiple
instances of the class being created. However, I suspect the class in
question uses the singleton pattern so there is also only once instance. 
This instance will be shared between all webapps.

 I guess if this is the case the only thing confusing me is why this 
 class is actually loaded by tomcat when it doesn't have to be? Does 
 the load-on-startup1/load-on-startup tag not load a class 
 specifically for this web app regardless of where the class file might be?

No. load-on-startup requires Tomcat to load the servlet when the context
starts and the number dictates the order (as per the spec). The class
loaders will be searched in the order described in the docs and the first
instance found of the class will be used.

If (as it appears from your description) you have webapp specific
information being held in a singleton class then you *must* place that class
in WEB-INF/classes or the jar containing it in WEB-INF/lib

shared/lib is for classes that can be safely shared between multiple
webapps. Personally I never used it. It generally caused more problems than
it solved - one of the reasons it is removed by default in 6.0.x onwards.

 Thanks for the help by the way.

No problem.

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]



**
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**


-
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: [newbie] Unable to find a javac compiler;

2008-05-09 Thread sakari . aaltonen

Quoting Caldarale, Charles R [EMAIL PROTECTED]:


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: [newbie] Unable to find a javac compiler;

Why doesn't Tomcat find javac?


Good question, since Tomcat 5.5 doesn't use the javac from tools.jar,
unless you have specifically configured it to do so.  Have you changed
anything in conf/web.xml?

 - Chuck


No I haven't. I just took a first look at it, and the relevant section  
seems to be this:


servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

By relevant I mean that the section starts with
!-- The JSP page compiler and execution servlet, which is the mechanism  --
!-- used by Tomcat to support JSP pages.  Traditionally, this servlet--

What does it all mean?


Sakari Aaltonen




-
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: I dont want my users to see tomcat console. Any advice?

2008-05-09 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johnny,

Johnny Kewl wrote:
| Make a new web app call it ROOT
| Then in the JSP page add something like
|
| meta http-equiv=refresh content=1; url=/webapp/index.jsp

Better yet, just rename your own webapp to ROOT and use that.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkV4gACgkQ9CaO5/Lv0PD/aQCfYqnk2Wx/n6Uij0lEc8HLG2TU
oxEAn3NHT1mf/vLTABYR5asF4L6mD5nb
=ydnl
-END PGP SIGNATURE-

-
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: JNDI connection issue

2008-05-09 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Praful,

Praful Sinha wrote:
| Getting an issues while creating JNDI connection
|
| javax.management.MalformedObjectNameException: Invalid character ':' in
| value part of property

It would seem that including your configuration would help greatly,
here. Perhaps you have a ':' in a property value that is invalid?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkWjoACgkQ9CaO5/Lv0PAIIACfdIZdcmldynQWT23cc0ri4S2Q
1lYAnj0+l0GaqyDLlbwK7wuH9WA9ajsr
=PBed
-END PGP SIGNATURE-

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



RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus

Just for a matter of reference, I'm currently using Tomcat 6.0.14 under
Windows 2003 server.

Thanks again! 

-Mensagem original-
De: Milanez, Marcus 
Enviada em: sexta-feira, 9 de maio de 2008 11:04
Para: 'Tomcat Users List'
Assunto: trim-directive-whitespaces and .tag files


Hi,

I'm successfully using trim-directive-whitespaces in my web.xml file,
clearing unecessary white spaces from my pages. The only problem is that
.tag files content is not affected by this directive. Is there a way to
make it work? I've searched a lot for it and couldn't find anything...

I'm using the following directive at this moment:

jsp-config
  jsp-property-group
url-pattern*.jsp/url-pattern
trim-directive-whitespacestrue/trim-directive-whitespaces
  /jsp-property-group
/jsp-config


Any suggestion?

Thank you all!

Marcus Milanez

-
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: response goes through load balancer?

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 6:51 AM, Christopher Schultz
[EMAIL PROTECTED] wrote:

 | there is only one IP for the domain in DNS. How to set up DNS for the
 | purpose?

 Google for round-robin DNS.

That will only work if you have multiple IPs assigned...

-- 
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: TOMCAT CLUSTERING HOWTO

2008-05-09 Thread karthikn

Hi

Sorry for the delay and Thx for reply

ALL i was saying is i have 2 independent TOMCATS  running on a 
windows2000 machine


c:\TOMCAT1 
startup 8080 shutdown = 8090


d:\TOMCAT2
startup 8081 shutdown = 8091

JDK is as below
d:/java/jdk163

I have already done the changes to server.xml for both the tomcats

as per  http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html;

So how to  do  Clustering and test the same.

I am not checking the performance using Load balancer,

Do i need to set up Load balancer to test the clustering ONLY ?


with regards
Karthik






Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
| Clustering does not work without a load balancer. Period.
|
| Not strictly true.  Clustered Tomcats don't care if the requests are
| coming through a load balancer or someone manually changing port or
| IP addresses on each request.

Fair enough. I suppose I consider a cluster to be something that shares
work via a single point of access, not just something that shares data.
I think of clustered sessions as shares sessions within a cluster,
where the cluster handles work as a whole.

Having different clients connect specifically to one node in a cluster
is merely using shared sessions to me. That would kind of be like
calling several servers using the same database a cluster because they
share data.

| Certainly for any practical usage, a front end of some sort is
| required to automatically route requests, but it doesn't have to
| actually do any load balancing.

Agreed.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgjH+MACgkQ9CaO5/Lv0PCIugCgjJ+bAUeEryueVoq9KE47A4RG
wL0An1WBVcTugMOCQyT6aDO9bjkwHI5T
=M8qq
-END PGP SIGNATURE-

-
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: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: [newbie] Unable to find a javac compiler;
 
 I just took a first look at it, and the 
 relevant section seems to be this:

The JSP servlet config looks normal.

Are you by any chance using the 3rd-party repackaged version of Tomcat
that came with your Linux distribution?  If so, throw it away, and
download and install a real one from tomcat.apache.org.  The 3rd-party
junk has caused numerous problems over the years.

You might as well use Tomcat 6.0 if you're just getting started.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I'm successfully using trim-directive-whitespaces in my web.xml file,
 clearing unecessary white spaces from my pages. The only problem is that
 .tag files content is not affected by this directive.

What happened when you added this:

jsp-config
 jsp-property-group
   url-pattern*.tag/url-pattern
   trim-directive-whitespacestrue/trim-directive-whitespaces
 /jsp-property-group
   /jsp-config

Did it produce an error, or just no effect?

-- 
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: JNDI connection issue

2008-05-09 Thread Praful Sinha
Hi Chris,

 

The configuration files look like this:

 

Context path=C:\Tomcat 6.0\webapps\AppPts reloadable=true
docBase=C:\Tomcat 6.0\webapps\AppPts workDir=C:\Tomcat 6.0\work

  Resource name=jdbc/AppPts auth=Container type=javax.sql.DataSource
maxActive=20 maxIdle=5 maxWait=1
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/cms_db_dev username=root password=pts
removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true / 

/Context

 

Praful Sinha.

 

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 09, 2008 7:36 PM
To: Tomcat Users List
Subject: Re: JNDI connection issue

 

-BEGIN PGP SIGNED MESSAGE-

Hash: SHA1

 

Praful,

 

Praful Sinha wrote:

| Getting an issues while creating JNDI connection

|

| javax.management.MalformedObjectNameException: Invalid character ':' in

| value part of property

 

It would seem that including your configuration would help greatly,

here. Perhaps you have a ':' in a property value that is invalid?

 

- -chris

-BEGIN PGP SIGNATURE-

Version: GnuPG v1.4.9 (MingW32)

Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 

iEYEARECAAYFAkgkWjoACgkQ9CaO5/Lv0PAIIACfdIZdcmldynQWT23cc0ri4S2Q

1lYAnj0+l0GaqyDLlbwK7wuH9WA9ajsr

=PBed

-END PGP SIGNATURE-

 

-

To start a new topic, e-mail: users@tomcat.apache.org

To unsubscribe, e-mail: [EMAIL PROTECTED]

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



RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus
Hi Hassan,

No effect. I think that's because we never reference .tag files
directly. My guess is that when tomcat engine compiles .tag files into
.java files, it ignores my trim-directive. 

Do you know how this directive work? Does it remove white spaces in
every request (like a filter) or during compiling time? 

Thank you!

-Mensagem original-
De: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 9 de maio de 2008 11:17
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I'm successfully using trim-directive-whitespaces in my web.xml file, 
 clearing unecessary white spaces from my pages. The only problem is 
 that .tag files content is not affected by this directive.

What happened when you added this:

jsp-config
 jsp-property-group
   url-pattern*.tag/url-pattern
   trim-directive-whitespacestrue/trim-directive-whitespaces
 /jsp-property-group
   /jsp-config

Did it produce an error, or just no effect?

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


-
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 500 error NEED HELP!

2008-05-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=9415 Posted on behalf of 
a User

type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

javax.servlet.ServletException
at com.enigma.sdk.web.actions.ActionController.process(Unknown Source)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Unknown Source)

I am getting this error can someone please help

In Response To: 



I've installed apache-tomcat-6.0.10 and jdk1.5.0_12

I've set the ENV variables:

_RUNJAVA = %JAVA_HOME%\bin\java
_RUNJAVAC = %JAVA_HOME%\bin\javac
_RUNJAVAW = %JAVA_HOME%\bin\javaw
_RUNJDB = %JAVA_HOME%\bin\jdb
CATALINA_HOME = d:\apache-tomcat-6.0.10
CLASSPATH = d:\Servlets+JSP;d:\java\jdk1.5.0_12
JAVA_HOME = d:\java\jdk1.5.0_12
PATH = d:\java\jdk1.5.0_12\bin;d:\apache-tomcat-6.0.10\bin

The server starts fine, but even http://localhost/ returns a 500 error

JSPs were running fine a few days ago but I must have changed something and
in trying to fix it I've changed much more, so now I have no idea. I've put
the JARS withing lib also within lib/common for both java and tomcat. Trying
accuracy through volume, please someone help me!

Here is the error for localhost:

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.


Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:21 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 No effect. I think that's because we never reference .tag files
 directly.

Probably -- it was worth a shot, I figured :-)

 Do you know how this directive work? Does it remove white spaces in
 every request (like a filter) or during compiling time?

No idea, but it you've got it working for JSP files, it should be pretty
easy to compare the compiled files in /work with and without it.

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



RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus
 
I'll answer my own question here. I guess this directive takes effect
during compile time 'cause when I try to pre-compile my jsps with the
url-pattern*.tag/url-pattern in my web.xml file, I come accross with
the following error:

file: /appFolder/WEB-INF/tags/fields/data.tag(1,14) lt;%@ attribute
directive can only be used in a tag file

I think it won't be possible to trim white spaces from .tag files uwing
this directive then...



-Mensagem original-
De: Milanez, Marcus 
Enviada em: sexta-feira, 9 de maio de 2008 11:21
Para: 'Tomcat Users List'
Assunto: RES: trim-directive-whitespaces and .tag files

Hi Hassan,

No effect. I think that's because we never reference .tag files
directly. My guess is that when tomcat engine compiles .tag files into
.java files, it ignores my trim-directive. 

Do you know how this directive work? Does it remove white spaces in
every request (like a filter) or during compiling time? 

Thank you!

-Mensagem original-
De: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 9 de maio de 2008 11:17
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I'm successfully using trim-directive-whitespaces in my web.xml file, 
 clearing unecessary white spaces from my pages. The only problem is 
 that .tag files content is not affected by this directive.

What happened when you added this:

jsp-config
 jsp-property-group
   url-pattern*.tag/url-pattern
   trim-directive-whitespacestrue/trim-directive-whitespaces
 /jsp-property-group
   /jsp-config

Did it produce an error, or just no effect?

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


-
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: JNDI connection issue

2008-05-09 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Praful,

Praful Sinha wrote:
| The configuration files look like this:
|
| Context path=C:\Tomcat 6.0\webapps\AppPts reloadable=true
| docBase=C:\Tomcat 6.0\webapps\AppPts workDir=C:\Tomcat 6.0\work
|
|   Resource name=jdbc/AppPts auth=Container
type=javax.sql.DataSource
| maxActive=20 maxIdle=5 maxWait=1
| driverClassName=com.mysql.jdbc.Driver
| url=jdbc:mysql://localhost:3306/cms_db_dev username=root
password=pts
| removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true /
|
| /Context

Based on the stack trace, I think the error is in server.xml, not in
context.xml.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkX5kACgkQ9CaO5/Lv0PAOJACgo6Sle+iNLUU/11x2EfgPtJzN
bzcAnAtr6oUC0XWG1DvtPqbiHcyhb6ER
=7lDC
-END PGP SIGNATURE-

-
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: response goes through load balancer?

2008-05-09 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hassan,

Hassan Schroeder wrote:
| On Fri, May 9, 2008 at 6:51 AM, Christopher Schultz
| [EMAIL PROTECTED] wrote:
|
| | there is only one IP for the domain in DNS. How to set up DNS for the
| | purpose?
|
| Google for round-robin DNS.
|
| That will only work if you have multiple IPs assigned...

Of course. I was assuming that if 1 Apache could not keep up with the
traffic, adding another Apache httpd instance to the same box wouldn't
make it any better. My guess was that adding another Apache meant
setting up another box, which would certainly have its own IP address.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkYB0ACgkQ9CaO5/Lv0PA0YACfWFOkUVSwB0naA3cYD6JC1zlU
VxYAoKncWKNXh7oikVhVHarHNK4sEAvM
=fZBj
-END PGP SIGNATURE-

-
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 CLUSTERING HOWTO

2008-05-09 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Karthik,

karthikn wrote:
| ALL i was saying is i have 2 independent TOMCATS  running on a
| windows2000 machine
|
| c:\TOMCAT1 startup 8080 shutdown = 8090

Tomcat does not have startup ports. Do you mean that you have a
connector listening on port 8080? Is this port listening for HTTP or
AJP requests? (It's probably HTTP).

| d:\TOMCAT2 startup 8081 shutdown = 8091

Okay.

| So how to do Clustering and test the same.

Before you worry about clustering, can you even get a single request
handled by Tomcat? If so, what URL are you using to access your webapp?

| I am not checking the performance using Load balancer,

Load balancers are not for testing performance. They are used to
distribute load across your cluster by choosing a server to handle a
particular request.

| Do i need to set up Load balancer to test the clustering ONLY ?

I'm not sure how you would even use your cluster, much less test it,
without a load balancer.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkYZYACgkQ9CaO5/Lv0PAMzwCfSCjBISky4Q/znfwCYHRg9StQ
oRcAoIsRWr3Nb2O57NlSP2Vzy6uwvzDm
=KWpa
-END PGP SIGNATURE-

-
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: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I think it won't be possible to trim white spaces from .tag files uwing
 this directive then...

If minimizing white space is critical for you, you might try something
with the String taglib  -- maybe wrap a string:squeeze around the
whole tag body. Just a first-cup-of-coffee thought...  :-)

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



RE: JNDI connection issue

2008-05-09 Thread Praful Sinha
Hi Chris,

This is what we have mentioned in server.xml

And I think we can keep this configuration in server.xml right.

Thanks and Regards,
Praful Sinha.


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 09, 2008 7:59 PM
To: Tomcat Users List
Subject: Re: JNDI connection issue

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Praful,

Praful Sinha wrote:
| The configuration files look like this:
|
| Context path=C:\Tomcat 6.0\webapps\AppPts reloadable=true
| docBase=C:\Tomcat 6.0\webapps\AppPts workDir=C:\Tomcat 6.0\work
|
|   Resource name=jdbc/AppPts auth=Container
type=javax.sql.DataSource
| maxActive=20 maxIdle=5 maxWait=1
| driverClassName=com.mysql.jdbc.Driver
| url=jdbc:mysql://localhost:3306/cms_db_dev username=root
password=pts
| removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true /
|
| /Context

Based on the stack trace, I think the error is in server.xml, not in
context.xml.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkX5kACgkQ9CaO5/Lv0PAOJACgo6Sle+iNLUU/11x2EfgPtJzN
bzcAnAtr6oUC0XWG1DvtPqbiHcyhb6ER
=7lDC
-END PGP SIGNATURE-

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



JSF implementation selection

2008-05-09 Thread itay sahar
hi all,
I would like you share with us the best JSF implemetation.
(myfaces,icefaces) and explian
why you prefer one above the other.

Thanks
Itay


RE: JNDI connection issue

2008-05-09 Thread Caldarale, Charles R
 From: Praful Sinha [mailto:[EMAIL PROTECTED] 
 Subject: RE: JNDI connection issue
 
 The configuration files look like this:
 Context path=C:\Tomcat 6.0\webapps\AppPts reloadable=true
 docBase=C:\Tomcat 6.0\webapps\AppPts workDir=C:\Tomcat 6.0\work

The above path attribute is clearly in error.  When it's valid to use
it, the path attribute is the HTTP URL of the webapp, not the location
in the file system.  Depending on where your Context element is
located, you likely must not use either the path or the docBase
attributes.  Read the doc:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus

OK Hassan, thanks a lot! If I could get this directive working with .tag
files I would appreciate a lot more, but if I couldn't find a way, I'll
try your suggestion!

Just a final questions: should it be working or not? I mean, ths
specification for trim-directive-whitespaces says that it could not work
in these cases?

Thanks a lot for your time!

Marcus Milanez

-Mensagem original-
De: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 9 de maio de 2008 11:38
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I think it won't be possible to trim white spaces from .tag files 
 uwing this directive then...

If minimizing white space is critical for you, you might try something
with the String taglib  -- maybe wrap a string:squeeze around the whole
tag body. Just a first-cup-of-coffee thought...  :-)

HTH,
--
Hassan Schroeder  [EMAIL PROTECTED]

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


-
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 CLUSTERING HOWTO

2008-05-09 Thread Hassan Schroeder
 | Do i need to set up Load balancer to test the clustering ONLY ?

 I'm not sure how you would even use your cluster, much less test it,
 without a load balancer.

Absolutely.

And the most confidence-inspiring (and pointy-haired-boss-impressing)
test is to access your cluster through a load balancer with only one TC
running, set some session variable, bring up the second TC and stop
the first, and then see that your session variable is still set on the next
request.

Besides, the amount of time spent repeating the OPs question has been
more than what's required to set up an Apache httpd as a balancer ... :-)

-- 
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: JSF implementation selection

2008-05-09 Thread Praful Sinha

Icefaces provides you a functionality of ajax embedded in it.
But Myfaces did not.

You can also you tomahawk for more enhanced tag lib.

Any trouble can contact me on [EMAIL PROTECTED]

Praful Sinha.

-Original Message-
From: itay sahar [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 09, 2008 8:09 PM
To: users@tomcat.apache.org
Subject: JSF implementation selection

hi all,
I would like you share with us the best JSF implemetation.
(myfaces,icefaces) and explian
why you prefer one above the other.

Thanks
Itay



-
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: trim-directive-whitespaces and .tag files

2008-05-09 Thread Lucas Galfaso
Have you try converting your .tag files to .tagx files?

On Fri, May 9, 2008 at 11:45 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 OK Hassan, thanks a lot! If I could get this directive working with .tag
 files I would appreciate a lot more, but if I couldn't find a way, I'll
 try your suggestion!

 Just a final questions: should it be working or not? I mean, ths
 specification for trim-directive-whitespaces says that it could not work
 in these cases?

 Thanks a lot for your time!

 Marcus Milanez

 -Mensagem original-
 De: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Enviada em: sexta-feira, 9 de maio de 2008 11:38
 Para: Tomcat Users List
 Assunto: Re: trim-directive-whitespaces and .tag files

 On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
 [EMAIL PROTECTED] wrote:

 I think it won't be possible to trim white spaces from .tag files
 uwing this directive then...

 If minimizing white space is critical for you, you might try something
 with the String taglib  -- maybe wrap a string:squeeze around the whole
 tag body. Just a first-cup-of-coffee thought...  :-)

 HTH,
 --
 Hassan Schroeder  [EMAIL PROTECTED]

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


 -
 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: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:45 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 Just a final questions: should it be working or not? I mean, ths
 specification for trim-directive-whitespaces says that it could not work
 in these cases?

Actually, the 2.1 spec says:

As of JSP 2.1, it is possible to have extraneous whitespaces removed from
template text through element trim-directive-whitespaces of JSP Property Groups
(See Section JSP.3.3.8, Removing whitespaces from template text), or the page
and tag file directive attribute trimDirectiveWhitespaces (See Section
JSP.1.10.1,
The page Directive, Section JSP.8.5.1, The tag Directive).

So looks like a little more experimentation is in order  :-)

-- 
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: TOMCAT CLUSTERING HOWTO

2008-05-09 Thread karthikn

Hi

Sorry for the delay and Thx for reply 


Tomcat does not have startup ports.


Yes I have  set  the 2 Independent TOMCAT's at 8080 and 8081

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --

 Before you worry about clustering, can you even get a single 
request handled by Tomcat?


I would be testing for ROOT web application in TOMCAT as

http://IP:port/

I perfectly get the TC's Home page


Some body on the Form told me , Set up the cluster before applying load 
balancing and Test the cluster's setup  as  following


deploy/undeploy your apps only to one server, and the cluster will 
distribute the  
deployments/undeploy across the entire cluster.

with distributable/ in web.xml


Is this correct or  not ?





with regards
Karthik





Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Karthik,

karthikn wrote:
| ALL i was saying is i have 2 independent TOMCATS  running on a
| windows2000 machine
|
| c:\TOMCAT1 startup 8080 shutdown = 8090

Tomcat does not have startup ports. Do you mean that you have a
connector listening on port 8080? Is this port listening for HTTP or
AJP requests? (It's probably HTTP).

| d:\TOMCAT2 startup 8081 shutdown = 8091

Okay.

| So how to do Clustering and test the same.

Before you worry about clustering, can you even get a single request
handled by Tomcat? If so, what URL are you using to access your webapp?

| I am not checking the performance using Load balancer,

Load balancers are not for testing performance. They are used to
distribute load across your cluster by choosing a server to handle a
particular request.

| Do i need to set up Load balancer to test the clustering ONLY ?

I'm not sure how you would even use your cluster, much less test it,
without a load balancer.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkYZYACgkQ9CaO5/Lv0PAMzwCfSCjBISky4Q/znfwCYHRg9StQ
oRcAoIsRWr3Nb2O57NlSP2Vzy6uwvzDm
=KWpa
-END PGP SIGNATURE-

-
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: JNDI connection issue

2008-05-09 Thread Mikolaj Rydzewski

Praful Sinha wrote:

Context path=C:\Tomcat 6.0\webapps\AppPts reloadable=true
docBase=C:\Tomcat 6.0\webapps\AppPts workDir=C:\Tomcat 6.0\work
  


I don't know how Tomcat handles backslashes in path names. On the other 
hand I don't like presented docBase and path attributes. I'd rather specify:


path=AppPts docBase=C:\Tomcat 6.0\webapps



-
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: JSF implementation selection

2008-05-09 Thread Ingmar Lötzsch

Is it possible to use Icefaces and Tomahawk together?

Thank you
Ingmar

Praful Sinha schrieb:

Icefaces provides you a functionality of ajax embedded in it.
But Myfaces did not.

You can also you tomahawk for more enhanced tag lib.

Any trouble can contact me on [EMAIL PROTECTED]

Praful Sinha.

-Original Message-
From: itay sahar [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 09, 2008 8:09 PM

To: users@tomcat.apache.org
Subject: JSF implementation selection

hi all,
I would like you share with us the best JSF implemetation.
(myfaces,icefaces) and explian
why you prefer one above the other.

Thanks
Itay



-
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 CLUSTERING HOWTO

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 8:03 AM, karthikn
[EMAIL PROTECTED] wrote:

 Some body on the Form told me , Set up the cluster before applying load
 balancing and Test the cluster's setup  as  following

deploy/undeploy your apps only to one server, and the cluster will
 distribute the  deployments/undeploy across the entire cluster.
with distributable/ in web.xml

 Is this correct or  not ?

That the deployments will be distributed, or that that's the way to test?

I don't know about the first, and from an operations perspective, I don't
think I'd /want/ that to happen. And it's been a while since I worked with
clusters, but I don't recall that being the case. Could be wrong, though.

Session replication was the whole point of clustering for installations
I've been involved in.

FWIW,
-- 
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: ssl server configuration

2008-05-09 Thread Kevin Williams
I think I may have a logging problem.  All my logs are completely
empty.  I get a log4j warning to stdout and that's it.  How can I fix
the logging problem.  This is a need problem.



On 5/9/08, Mark Thomas [EMAIL PROTECTED] wrote:
 Kevin Williams wrote:
 But when i try to connect to https://host:8443, i get no response.  i also
 tried telneting to that port to see if it was at least open from the
 server
 its running on (to eliminate a firewall problem) and i get connection
 refused.  I don't beleive the daemon is running on the port.

 Is there a firewall between your client and Tomcat? Is port 8443 open?

  the log files
 are empty with no helpful info to speak of.

 You should see the startup messages for both the 8080 connector and the
 8443 connector. Can you post those messages here please.

 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]




-- 
-Kevin
-
If you forward this e-mail to someone else, please remove my e-mail
address to help me prevent spam.  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]



RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus

Hassan,

I've reard about this issues, but our tests confirmed that all JSPs and
scripts are working well. We've also downloaded a filter that does just
the same, but we've experimented some javascript problems...

Thanks!

Marcus Milanez 

-Mensagem original-
De: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 9 de maio de 2008 12:10
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:45 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 Just a final questions: should it be working or not? I mean, ths 
 specification for trim-directive-whitespaces says that it could not 
 work in these cases?

Actually, the 2.1 spec says:

As of JSP 2.1, it is possible to have extraneous whitespaces removed
from template text through element trim-directive-whitespaces of JSP
Property Groups (See Section JSP.3.3.8, Removing whitespaces from
template text), or the page and tag file directive attribute
trimDirectiveWhitespaces (See Section JSP.1.10.1, The page Directive,
Section JSP.8.5.1, The tag Directive).

So looks like a little more experimentation is in order  :-)

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


-
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: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 9:55 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I've reard about this issues, but our tests confirmed that all JSPs and
 scripts are working well. We've also downloaded a filter that does just
 the same, but we've experimented some javascript problems...

Not sure what issues you're referring to :-)

I was just highlighting this:

   tag file directive attribute trimDirectiveWhitespaces

:: meaning, you can put that in each tag file directly to achieve your
original goal.

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



Trying to understand the concept of embedded Tomcat

2008-05-09 Thread Frank Neslon
Hello,
So I had the idea that I would like to deploy my application with Tomcat
'built in'.  The goal is to just consolodate everything into one spot
instead of scattering components all over the system.  I keep reading about
how Tomcat is 'embeddable', but I'm just not understanding something.  I
find several code samples about how to start up Tomcat from Java code using
the 'Embedded' class, but I don't see what the file structure would look
like if it were embedded.  I keep reading that you need to deploy your app
as a WAR in embedded Tomcat... but isn't this embedding your app inside of
Tomcat instead of embedding Tomcat in your app?

In other words, it just seems as if people are just packaging their app into
a WAR, distributing full blown tomcat (in its default directory structure),
then starting up Tomcat from a custom Java class instead of using the
default startup options.  Am I wrong?  If not, then how is that considered
embedded?   If I am wrong, then could somebody show me a sample dir/file
structure of an embedded Tomcat?   Like I would expect to see Tomcat jars in
their app's own lib directory, a way to point Tomcat to their own
context.xml file in their project's file structure, etc.

Any pointers to clear my head would be much appreciated!  Thanks


RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus
Oh,I'm sorry, I thought you were refeering errouneous withe space
trimming...

trimDirectiveWhitespaces directive simply doesn't work at all in Tomcat
6.. I've posted this question here some months ago.. 

-Mensagem original-
De: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 9 de maio de 2008 14:09
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 9:55 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I've reard about this issues, but our tests confirmed that all JSPs 
 and scripts are working well. We've also downloaded a filter that does

 just the same, but we've experimented some javascript problems...

Not sure what issues you're referring to :-)

I was just highlighting this:

   tag file directive attribute trimDirectiveWhitespaces

:: meaning, you can put that in each tag file directly to achieve your
original goal.

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


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



error 1067 at start

2008-05-09 Thread jim murray

I just had to restore my OS (windows XP) and re-install Apache 6.
When I start the service I get an error 1067 and it wont start.
Help anyone?

jim murray


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



logging catalina.out and localhost-##.log - don't append

2008-05-09 Thread Robert Koberg
What do you need to do to get tomcat to create a fresh catalina.out and
localhost.log file for every restart? 

For development, I don't want those log files to append or roll for each
new day.

thanks,
-Rob


-
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: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 11:00 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 trimDirectiveWhitespaces directive simply doesn't work at all in Tomcat
 6.. I've posted this question here some months ago..

Uh, I just tried it on both a JSP file (page directive) and tag file using
the tag directive, and both worked fine.

Are you sure you're using a 2.5 deployment descriptor?

-- 
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: logging catalina.out and localhost-##.log - don't append

2008-05-09 Thread Caldarale, Charles R
 From: Robert Koberg [mailto:[EMAIL PROTECTED] 
 Subject: logging catalina.out and localhost-##.log - don't append
 
 What do you need to do to get tomcat to create a fresh 
 catalina.out and localhost.log file for every restart? 

Is this a trick question?  Why don't you just delete everything in the
logs directory before running Tomcat?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



error 1067

2008-05-09 Thread jim murray

I just had to restore my OS (windows XP) and re-install Apache 6.
When I start the service I get an error 1067 and it wont start.
Help anyone?

Prior to the restore it worked fine.

jim murray



-
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: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 11:24 AM,  [EMAIL PROTECTED] wrote:

 Outstanding. However, I still don't understand what is going on with
 JSPWiki, the package I got into this Tomcat stuff for.

 this does not help much because when I, next, tell my browser to go to
 http://localhost:8080/JSPWiki/Install.jsp
 as suggested by the JSPWiki installation instructions, all I get is

 HTTP Status 404 - /JSPWiki/Install.jsp

You need to look at your logs to see what's going on...

What version of JSPWiki are you trying to install?

-- 
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: logging catalina.out and localhost-##.log - don't append

2008-05-09 Thread Robert Koberg
On Fri, 2008-05-09 at 13:27 -0500, Caldarale, Charles R wrote:
  From: Robert Koberg [mailto:[EMAIL PROTECTED] 
  Subject: logging catalina.out and localhost-##.log - don't append
  
  What do you need to do to get tomcat to create a fresh 
  catalina.out and localhost.log file for every restart? 
 
 Is this a trick question?  Why don't you just delete everything in the
 logs directory before running Tomcat?

because it is a (minor) pain. I am starting/stopping from a console
with ./bin/startup.sh and ./bin/shutdown.sh - not starting/stopping from
an ant task, so I would be manually deleting each time (and emptying my
trash).

I would like it to be like log4j where it creates the new file from
scratch.

Is there no way to do this?


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



RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus
Hassan,

Thanks a lot. It worked! I noticed we were using the following web-app
in DTD:

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
version=2.5

Then I just replaced by 

web-app
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
metadata-complete=false
version=2.5

Which is slightly different, but got the directive working... Thus, I
believe this is the most appropriate web-app descriptor, right?

Thanks a lot for all your support!

Marcus Milanez 

-Mensagem original-
De: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 9 de maio de 2008 15:27
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 11:00 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 trimDirectiveWhitespaces directive simply doesn't work at all in 
 Tomcat 6.. I've posted this question here some months ago..

Uh, I just tried it on both a JSP file (page directive) and tag file
using the tag directive, and both worked fine.

Are you sure you're using a 2.5 deployment descriptor?

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


-
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: logging catalina.out and localhost-##.log - don't append

2008-05-09 Thread Caldarale, Charles R
 From: Robert Koberg [mailto:[EMAIL PROTECTED] 
 Subject: RE: logging catalina.out and localhost-##.log - don't append
 
 I am starting/stopping from a console with ./bin/startup.sh 

So modify the script (or wrapper it) to do rm -f ./logs/* and you're
done.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 11:42 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 Which is slightly different, but got the directive working... Thus, I
 believe this is the most appropriate web-app descriptor, right?

sounds like :-)  -- glad to hear it's working now!

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: error 1067

2008-05-09 Thread Martin

Jim-

Can you start at command line
%CATALINA_HOME%\bin\startup.bat

?
M-

- Original Message - 
From: jim murray [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, May 09, 2008 2:37 PM
Subject: error 1067



I just had to restore my OS (windows XP) and re-install Apache 6.
When I start the service I get an error 1067 and it wont start.
Help anyone?

Prior to the restore it worked fine.

jim murray



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



RES: trim-directive-whitespaces and .tag files

2008-05-09 Thread Milanez, Marcus
Thabks a lot for your effort! 

-Mensagem original-
De: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 9 de maio de 2008 15:51
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 11:42 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 Which is slightly different, but got the directive working... Thus, I 
 believe this is the most appropriate web-app descriptor, right?

sounds like :-)  -- glad to hear it's working now!

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


-
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: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: [newbie] Unable to find a javac compiler;
 
 As if by magic, this seems to trigger a process by which
 the directory $CATALINA_HOME/webapps/JSPWiki is generated
 from JSPWiki.war.  

It's not magic, it's autodeployment.

 http://localhost:8080/JSPWiki/Install.jsp
 as suggested by the JSPWiki installation instructions, all I get is
   HTTP Status 404 - /JSPWiki/Install.jsp

As Hassan suggested, look in your logs.  I just installed JSPWiki 2.6.2
on a Windows box without problem.  However, when I did the same on an
OpenSUSE system, the JSPWiki webapp died with SEVERE: Error
filterStart and a couple of NullPointerExceptions.  Looks a bit buggy
to me.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: ssl server configuration

2008-05-09 Thread Mark Thomas

Kevin Williams wrote:

I think I may have a logging problem.  All my logs are completely
empty.  I get a log4j warning to stdout and that's it.  How can I fix
the logging problem.  This is a need problem.


Start with a clean install without your webapps. Logging will work out of 
the box (assuming you use a distro from Apache) and get ssl working with that.


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: logging catalina.out and localhost-##.log - don't append

2008-05-09 Thread David Fisher

On May 9, 2008, at 1:43 PM, Caldarale, Charles R wrote:


From: Robert Koberg [mailto:[EMAIL PROTECTED]
Subject: RE: logging catalina.out and localhost-##.log - don't append

I am starting/stopping from a console with ./bin/startup.sh


So modify the script (or wrapper it) to do rm -f ./logs/* and you're
done.


Of course, if you need to restart your tomcat immediately and look at  
your old logs to debug a problem - or if someone else does a year  
from now.


It will drive you nuts wondering where they went. In this case you  
can do a log rotate something like this:


#!/bin/sh
DIR=/export/home/apachecat

file='/export/home/apachecat/tomcat/logs/catalina.out'
for num in 5 4 3 2 1 0; do
pnum=`expr $num + 1`
mv $file.$num $file.$pnum
done
mv $file $file.0

Regards,
Dave



 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
PROPRIETARY

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e- 
mail

and its attachments from all computers.

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





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



Re: error 1067

2008-05-09 Thread Filip Hanik - Dev Lists

or even better,

catalina.bat run

to run it in the same window

Martin wrote:

Jim-

Can you start at command line
%CATALINA_HOME%\bin\startup.bat

?
M-

- Original Message - From: jim murray [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, May 09, 2008 2:37 PM
Subject: error 1067



I just had to restore my OS (windows XP) and re-install Apache 6.
When I start the service I get an error 1067 and it wont start.
Help anyone?

Prior to the restore it worked fine.

jim murray



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



Multiple Hits to same JSP

2008-05-09 Thread Sameer Naik
Hi,

We are using Apache 2.0.53 + mod_jk 1.2.21 + tomcat 5.0.28 combination and 
seeing multiple hits to a single JSP file in quick succession, like 500 hits in 
a minute from same user ID and same IP address. Response code is 200 for all 
the requests. It is happening randomly from various user agents. Did anyone 
encounter such scenario? Can we log something in Apache logs to debug the 
issue? (We are already logging referrer, UA, byte range request values etc).

Thanks,
Sameer



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

log4j and two webapps

2008-05-09 Thread bizio

Hi guys.
This is my first post here.
I have a problem with log4j in one of two mine webapps: the first
log4j.properties looks like

# Conventions used in code
# + Only few logging statements are at level INFO, just to log user activity
# + RPC actions log at level DEBUG
# + BM classes log at level DEBUG
#
# LOG4J levels: OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL
#
log4j.rootLogger=INFO,CONSOLE,FILE
log4j.logger.com.hp.fastweb.wallet.model.balance=ALL,BM
log4j.logger.com.hp.fastweb.wallet.web.action.rpc.mfp=ALL,RPC-MFP
log4j.logger.com.hp.fastweb.wallet.web.action.rpc.om=ALL,RPC-OM
log4j.logger.com.hp.fastweb.wallet.web.action.rpc.pg=ALL,RPC-PG
log4j.logger.com.hp.fastweb.wallet.web.action.rpc.vitria=ALL,RPC-VITRIA
log4j.logger.com.hp.fastweb.wallet.web.action.rpc.techtroubleshoot=ALL,RPC-TT

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
#log4j.appender.CONSOLE.threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d [%5p][%c{1}] %m%n

log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d [%5p][%c{1}][%t] %m%n
log4j.appender.FILE.file=../logs/starpay-web.log
log4j.appender.FILE.datePattern='.'-MM-dd

log4j.appender.RPC-MFP-SECURITY = com.hp.util.appender.RPCSecureCallAppender
log4j.appender.RPC-MFP-SECURITY.File=../logs/starpay.tmp
log4j.appender.RPC-MFP-SECURITY.layout=org.apache.log4j.PatternLayout
log4j.appender.RPC-MFP-SECURITY.layout.ConversionPattern=%d{MMddHHmmss};%m%n
log4j.appender.RPC-MFP-SECURITY.maxRolloverLines=100

log4j.appender.BM=org.apache.log4j.DailyRollingFileAppender
log4j.appender.BM.layout=org.apache.log4j.PatternLayout
log4j.appender.BM.layout.ConversionPattern=%d [%5p][%c{1}][%t] %m%n
log4j.appender.BM.file=../logs/starpay-bm.log
log4j.appender.BM.datePattern='.'-MM-dd

log4j.appender.RPC-MFP=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RPC-MFP.layout=org.apache.log4j.PatternLayout
log4j.appender.RPC-MFP.layout.ConversionPattern=%d [%5p][%c{1}][%t] %m%n
log4j.appender.RPC-MFP.file=../logs/rpc-mfp.log
log4j.appender.RPC-MFP.datePattern='.'-MM-dd

log4j.appender.RPC-OM=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RPC-OM.layout=org.apache.log4j.PatternLayout
log4j.appender.RPC-OM.layout.ConversionPattern=%d [%5p][%c{1}][%t] %m%n
log4j.appender.RPC-OM.file=../logs/rpc-om.log
log4j.appender.RPC-OM.datePattern='.'-MM-dd

log4j.appender.RPC-PG=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RPC-PG.layout=org.apache.log4j.PatternLayout
log4j.appender.RPC-PG.layout.ConversionPattern=%d [%5p][%c{1}][%t] %m%n
log4j.appender.RPC-PG.file=../logs/rpc-pg.log
log4j.appender.RPC-PG.datePattern='.'-MM-dd

log4j.appender.RPC-VITRIA=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RPC-VITRIA.layout=org.apache.log4j.PatternLayout
log4j.appender.RPC-VITRIA.layout.ConversionPattern=%d [%5p][%c{1}][%t] %m%n
log4j.appender.RPC-VITRIA.file=../logs/rpc-vitria.log
log4j.appender.RPC-VITRIA.datePattern='.'-MM-dd

log4j.appender.RPC-TT=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RPC-TT.layout=org.apache.log4j.PatternLayout
log4j.appender.RPC-TT.layout.ConversionPattern=%d [%5p][%c{1}][%t] %m%n
log4j.appender.RPC-TT.file=../logs/rpc-tt.log
log4j.appender.RPC-TT.datePattern='.'-MM-dd

# Level tuning
log4j.logger.org.apache=INFO
log4j.logger.org.mortbay=INFO
log4j.logger.com.opensymphony=INFO
log4j.logger.org.springframework=WARN
log4j.logger.org.hibernate=WARN
log4j.logger.org.hibernate.util.JDBCExceptionReporter=OFF
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=OFF
#log4j.logger.org.hibernate.SQL=ALL
log4j.logger.org.hibernate.cache=ERROR
log4j.logger.net.sf.ehcache=INFO

log4j.logger.rpc.mfp.trace=INFO, RPC-MFP-SECURITY


This is under app/WEB-INF/classes/log4j.properties and this is work fine.
The other one, under app1/WEB-INF/classes/log4j.properties looks like this
and doesn't works.

log4j.rootLogger=ERROR, STDOUT
log4j.logger.axis=DEBUG, DEFAULT
log4j.logger.hp.ws.mvno=DEBUG, MVNO

# STDOUT: stdout appender
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d %5p [%t] (%F:%L) %c{2} -
%m%n

# MVNO
log4j.appender.MVNO=org.apache.log4j.RollingFileAppender
log4j.appender.MVNO.MaxFileSize=10MB
log4j.appender.MVNO.MaxBackupIndex=10
log4j.appender.MVNO.File=/opt/tomcat/logs/mrm-ws-3a.log
log4j.appender.MVNO.layout=org.apache.log4j.PatternLayout
# Print the date in ISO 8601 format
log4j.appender.MVNO.layout.ConversionPattern=%d %5p [%t] (%F:%L) %c{2} -
%m%n


Could someone please give me a feedback on this issue?

Thaks a lot!
-- 
View this message in context: 
http://www.nabble.com/log4j-and-two-webapps-tp17157138p17157138.html
Sent from the Tomcat - User mailing list archive at Nabble.com.



Re: Multiple Hits to same JSP

2008-05-09 Thread Alan Chaney
Have you checked to see whether or not they are real requests - that is, 
coming from the web. If they are there's nothing anyone on this list can 
do...


Try monitoring you network with something like wireshark.

I have seen similar behavior - I think it may be from badly written 
spiders or feeble attempts to hack your site. If they are truly 
vindictive the only thing you can do is block them with a firewall.


Regards

Alan Chaney


Sameer Naik wrote:

Hi,

We are using Apache 2.0.53 + mod_jk 1.2.21 + tomcat 5.0.28 combination and 
seeing multiple hits to a single JSP file in quick succession, like 500 hits in 
a minute from same user ID and same IP address. Response code is 200 for all 
the requests. It is happening randomly from various user agents. Did anyone 
encounter such scenario? Can we log something in Apache logs to debug the 
issue? (We are already logging referrer, UA, byte range request values etc).

Thanks,
Sameer



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


!DSPAM:4824bdee28727785049143!



-
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: Multiple Hits to same JSP

2008-05-09 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alan,

Alan Chaney wrote:
| Have you checked to see whether or not they are real requests - that is,
| coming from the web. If they are there's nothing anyone on this list can
| do...

Not entirely. It's possible to write a throttling filter that might be
able to reject some of these requests... the only question is if it is
even useful to do in the first place. The processing and memory
requirements might outweigh the benefits of rejecting the requests in
the first place.

Since all responses are 200 (success), you might just smile, say hey,
it's great that my web server can handle so many responses so fast with
no errors and sit back and relax.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkzwIACgkQ9CaO5/Lv0PCewwCgoARLmKEmmkeXUpSqLG55jeuu
Z+QAnRSVfn0fixB3yHLbUI0N4tgL8k8w
=dujP
-END PGP SIGNATURE-

-
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: ssl server configuration

2008-05-09 Thread Kevin Williams
I cant do a clean install on a production server.  I did do this on a
development server and everything worked fine.  It's strange that my change
to the server.xml caused logging to stop working completely.  is there a
log4j properties file i should add someone to get logging working again?

On Fri, May 9, 2008 at 12:09 PM, Mark Thomas [EMAIL PROTECTED] wrote:

 Kevin Williams wrote:

 I think I may have a logging problem.  All my logs are completely
 empty.  I get a log4j warning to stdout and that's it.  How can I fix
 the logging problem.  This is a need problem.


 Start with a clean install without your webapps. Logging will work out of
 the box (assuming you use a distro from Apache) and get ssl working with
 that.


 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]




-- 
-Kevin
-
If you forward this e-mail to someone else, please remove my e-mail address
to help me prevent spam. Thanks!


Re: JSF implementation selection

2008-05-09 Thread dhay
We are running Tomcat 5.5 using the SSO Valve.

We are hitting a strange situation, however, if we set the session timeout 
on our context to be less than the default 30 minutes eg 5 mins.

The valve has the following check:

if (((session.getMaxInactiveInterval()  0)  (System.currentTimeMillis() 
- session.getLastAccessedTimeInternal() 
  session.getMaxInactiveInterval() * 1000)))
{
// Logged out, kill em all
}
else
{
// Timed out, just stop tracking
}

However, from the debug we added, session.getMaxInactiveInterval() is 
returning the default 30, not the 5 minute timeout of the context the 
session was associated with.

Can anyone shed any light on the situation?

cheers,

David


session.getMaxInactiveInterval() always returns default?

2008-05-09 Thread dhay
Sorry - wrong title obviously...

cheers,

David




[EMAIL PROTECTED] 
05/09/2008 08:35 PM
Please respond to
Tomcat Users List users@tomcat.apache.org


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

Subject
Re: JSF implementation selection





We are running Tomcat 5.5 using the SSO Valve.

We are hitting a strange situation, however, if we set the session timeout
on our context to be less than the default 30 minutes eg 5 mins.

The valve has the following check:

if (((session.getMaxInactiveInterval()  0)  (System.currentTimeMillis()
- session.getLastAccessedTimeInternal() 
session.getMaxInactiveInterval() * 1000)))
{
// Logged out, kill em all
}
else
{
// Timed out, just stop tracking
}

However, from the debug we added, session.getMaxInactiveInterval() is
returning the default 30, not the 5 minute timeout of the context the
session was associated with.

Can anyone shed any light on the situation?

cheers,

David



Re: I dont want my users to see tomcat console. Any advice?

2008-05-09 Thread ryan webb
Dear Mr. Johnny, Mr. Chris and Mr. Mark,

Thank you very much for all your replies.
You have different approaches to my problem.
I will try all your solutions / suggestions and use what is most applicable
to my situation.

Yes, I will also read TC documentations. But for now I want a quick and
simple explanation..
and besides all your experiences are the best teachers. =)

God bless,
Ryan Webb - Philippines


On Fri, May 9, 2008 at 9:54 PM, Christopher Schultz 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Johnny,

 Johnny Kewl wrote:
 | Make a new web app call it ROOT
 | Then in the JSP page add something like
 |
 | meta http-equiv=refresh content=1; url=/webapp/index.jsp

 Better yet, just rename your own webapp to ROOT and use that.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkgkV4gACgkQ9CaO5/Lv0PD/aQCfYqnk2Wx/n6Uij0lEc8HLG2TU
 oxEAn3NHT1mf/vLTABYR5asF4L6mD5nb
 =ydnl
 -END PGP SIGNATURE-


 -
 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: [newbie] Unable to find a javac compiler;

2008-05-09 Thread sakari . aaltonen

Quoting Hassan Schroeder [EMAIL PROTECTED]:


On Fri, May 9, 2008 at 11:24 AM,  [EMAIL PROTECTED] wrote:


. when I, next, tell my browser to go to
http://localhost:8080/JSPWiki/Install.jsp
as suggested by the JSPWiki installation instructions, all I get is

HTTP Status 404 - /JSPWiki/Install.jsp


You need to look at your logs to see what's going on...

What version of JSPWiki are you trying to install?


The JSPWiki version is 2.6.2. Here is an excerpt from Tomcat's log  
when I put JSPWiki.war in $CATALINA_HOME/webapps and, next, (try to)  
go to

http://localhost:8080/JSPWiki/Install.jsp


10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO:  Assigning new engine to 104184
10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO: No jspwiki.propertyfile defined for this context, using default  
from /WEB-INF/jspwiki.properties

10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO: Loading cascading properties...
10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO:  No cascading properties defined for this context
10-May-2008 07:22:49 org.apache.catalina.core.ApplicationContext log
INFO: JSPWiki: Unable to load and setup properties from  
jspwiki.properties. Failed to start managers: Page directory does not  
exist

10-May-2008 07:22:49 org.apache.catalina.core.ApplicationContext log
INFO: ERROR: Failed to create a Wiki engine: JSPWiki: Unable to load  
and setup properties from jspwiki.properties. Failed to start  
managers: Page directory does not exist

10-May-2008 07:22:49 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter WikiJSPFilter
com.ecyrd.jspwiki.InternalWikiException: No wiki engine, check logs.
at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:340)
at  
com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:55)
at  
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at  
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at  
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)

###

The ERROR: Failed to create a Wiki engine looks fatal. But is this a  
JSPWiki problem or a Tomcat one? Perhaps I should stop bothering you  
people and look for help on a  JSPWiki-related site...



Sakari Aaltonen





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