where can I define if a webapp will startup or not

2007-05-24 Thread oj

Hi,


I'm looking for the opportunity to enable or disable a webapp for startup. I
have an application which I can disable during the tomcat is running, and if
this happens I want that this state is persistent also for a tomcat restart,
but I do not know where I can define this.

I just found the load on startup tag in the web.xml but it seems that this
will be used for ordering the webapp start.

Thanks for your help
-- 
View this message in context: 
http://www.nabble.com/where-can-I-define-if-a-webapp-will-startup-or-not-tf3814492.html#a10797903
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



problem in configuration of Tomcat5.0.28 and SSL in Linux

2007-05-24 Thread mridu

Hello

I am configuring SSL with tomcat 5.0.28 .I ahve followed the following two
steps only 

1.Generating the keystore by following command 
  keytool -genkey -alias tomcat -keyalg RSA  -keystore /path/to/my/keystore

2. specifying the following in the server.xml

 <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->



Now my problem is i am able to configure it in windows 2000 operating system
and am able to connect to the url  https://localhost:8443/ .  But when i did
the sam configuration in the linux OS and tomcat started successfully , i
could not connect to thehttps://localhost:8443/  URL . It is showing
"page cannot be displyed" though i am able to connect to
http://localhost:8080/ URL .

Can any one help me out ...
Thanks in advance ...

with regards 
mridu

-- 
View this message in context: 
http://www.nabble.com/problem-in-configuration-of-Tomcat5.0.28-and-SSL-in-Linux-tf3814430.html#a10797664
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat Native library on java.library.path ?

2007-05-24 Thread Len Popp

On 5/25/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

P.S. You work for Sun and you're using Windows?


It could be that he needs to use one of the many vital application
programs that aren't supported on the Solaris platform. World of
Warcraft, for example. :-)
--
Len

-
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 Native library on java.library.path ?

2007-05-24 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat Native library on java.library.path ?
> 
> Surely the Native library is the apache-tomcat-6.0.10\lib folder

Surely, it isn't.  As Len pointed out, it's the bin directory.

> and surely the java.library.path refers to PATH.

By default, but only on a Windows platform; on UNIX or Linux systems,
the LD_LIBRARY_PATH environment variable is used instead.  On any kind
of platform, setting the system property on the command line overrides
or extends the value from the environment variable.

> So what library needs to be added where?

Since you're running on Windows, the native library is available already
compiled and linked, as noted in the APR doc:
http://tomcat.apache.org/tomcat-6.0-doc/apr.html

In case you miss the link to the download site, it's here:
http://tomcat.heanet.ie/native/

Just put the .dll into Tomcat's bin directory.

 - Chuck

P.S. You work for Sun and you're using Windows?


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: Server.xml Sort on Start

2007-05-24 Thread Caldarale, Charles R
> From: Kyle B [mailto:[EMAIL PROTECTED] 
> Subject: Re: Server.xml Sort on Start
> 
> The Host elements do not contain backgroundProcesserDelay. 

Not by default, but one can be added.  I wouldn't recommend it, since
there doesn't seem to be much advantage to do so unless one has many,
many  elements and multiple CPUs.

> It's not sorted by element order in the server.xml, nor by 
> name attribute, or appBase.

As I stated before, the order appears to be that of the HashMap index of
the name attribute of the  element.  This is not the simple
hashCode() of the name string, since the processing in HashMap does some
manipulation of the hashCode() result prior to inserting the item in the
map.  The processing in Tomcat converts the HashMap to an object array
prior to processing; this array is typically in HashMap index order,
although that's not defined by the JRE API spec and could change from
one JVM implementation or level to another.

You don't need to process XML to determine the processing order.  Just
take the list of  names in the same order they appear in
server.xml, and run a simple program against the list to insert the
names into a HashMap, convert the Map to an object array, and see what
the order is.

 - 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: why is apache serving source for .jsp files?

2007-05-24 Thread Mark Thomas
Jessica Johnson wrote:
> If anyone can give me a hand, it would be much appreciated.

I haven't checked the site you referenced in detail but I did notice
the following:
1. Configuring contexts in server.xml
This is possible but not recommended since you need to restart Tomcat
if you make a change.
2. Having httpd and Tomcat serving files from the same directory
structure is dangerous. Unless you are very careful you are opening
yourself up to source code disclosure problems. Unless 1) you really
need to do this and 2) you really know exactly what you are doing I
would keep the httpd installation and the Tomcat installation
completely separate.
3. The instructions are part JK, part JK2. The references to JK2 files
names etc need to be changed to the JK ones.

I would suggest the following references:
httpd installation:
http://httpd.apache.org/docs/2.2/install.html

Tomcat installation
1. Download the 5.5.x zip from
http://tomcat.apache.org/download-55.cgi
2. Unzip it
3. Read RUNNING.txt for more info

JK install and configuration:
http://tomcat.apache.org/connectors-doc/generic_howto/quick.html


HTH,

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: Server.xml Sort on Start

2007-05-24 Thread Kyle B

Charles,

The Host elements do not contain backgroundProcesserDelay. Here is a sample:


www.domain.com





In regards to Mark's statement. I'm not opposed to writing some XML parsing
tools to play nice with Tomcat. However, I'm still left trying to figure out
how Tomcat sorts that HashMap it creates for all  elements. I've
looked for patterns that I just can't find. It's not sorted by element order
in the server.xml, nor by name attribute, or appBase.

I know it's not completely random as running the restart always yields the
results in the same order. But I just can't figure out said order.

Anyone else have any personal experience with figuring out the sorting
algorithm Tomcat uses on all  in the server.xml on start?

Thanks for all the responses so far,

-Kyle



On 5/24/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:


> From: Mark H. Wood,UL 0115A,+1 317 274 0749,
> [mailto:[EMAIL PROTECTED] On Behalf Of Mark H. Wood
> Subject: Re: Server.xml Sort on Start
>
> I don't *know*, mind you, but random ordering suggests that the
> container starts a thread for each 'host' and the checks are taking
> place in those threads.

Not by default - the  entries are processed by the thread that
handles the .  However, setting backgroundProcesserDelay in a
 element will cause it to be processed by its own thread.  (It's
default value is -1.)  Look at the Threads display in Lambda Probe for
ContainerBackgroundProcessor threads.

- 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: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Bill Barker

"Johnny Kewl" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Ok... beginning to think I'm the only one reading here... yes it is a 
> kludge, and I doubt very much whether changing anything in catalina.policy 
> will do anything in this case... because the security manager is probably 
> incorporated in the web-app class loader... and yes this and the 
> documentation makes sense when protecting Tomcat from a rouge web-app 
> but thats not what I'm trying to do... I'm trying to protect an embedded 
> application FROM TOMCAT itself.
> The code I have shown you is TOMCATS CODE... not the embedded application 
> code which is using tomcat as a library... or a Web-App's code.
>
> Ok... think we got crossed lines somewhere... but just to recap... Tomcats 
> System.Exit code kills the client calling tomcat... its rude ;)
> I suppose I could write a class loader in the client... tell it to stop 
> System.Exits in a custom security manager... and then load up tomcat using 
> that classloader... little bit too much work dont you think?
> All I think is happening is that those System.Exits make a lot of sense 
> from a server perspective... but not from an embedded perspective... its 
> not a disaster, it doenst make tomcat bad (its great), its just something 
> to think about
>

What this does is to make certain that Tomcat dies in the event that the 
shutdown Socket connection dies (rarely happens).  A properly designed 
Embedded TC shouldn't have to go through this code:  It should have it's own 
mechanism  for signaling shutting down, and call the 'stop' method on the 
Catalina/Embedded/Server instance (via JMX or otherwise).  Since the 
'stopServer' method is intended for a stand-alone TC, I'm going to guess 
that you won't get much developer interest in removing the System.exit 
calls.

>
> - Original Message - 
> From: "Pid" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Thursday, May 24, 2007 8:04 PM
> Subject: Re: TOMCAT ISSUE: System.Exit
>
>
>> Johnny Kewl wrote:
>>> Ha ha... I think this is a kludge,
>>
>> Using a SecurityManager is a kludge?
>>
>> but ok, I have "read"... so help
>>> me... I want to stop Tomcat calling System.Exit(1)... what do I need to 
>>> do to the catalina.policy file to do this?
>>> I imagine that instead of the embedded app shutting down the user will 
>>> now get a security exception, which to me is wrong... but hey, I'll try 
>>> it.
>>
>> The 'System.exit()' example is the usual one, as you will remember from 
>> when you read the documentation:
>>
>> http://tomcat.apache.org/tomcat-5.0-doc/security-manager-howto.html
>>
>> p
>>
>>
>>> - Original Message - From: "Peter Crowther" 
>>> <[EMAIL PROTECTED]>
>>> To: "Tomcat Users List" 
>>> Sent: Thursday, May 24, 2007 6:21 PM
>>> Subject: RE: TOMCAT ISSUE: System.Exit
>>>
>>>
 From: Johnny Kewl [mailto:[EMAIL PROTECTED]
 Imagine I make a library for you... and your user application
 does something
 wrong... and then my library calls System.Exit and shuts down
 the JVM... how
 you going to fix that with a security manager??
>>>
>>> The security manager can prevent the call from succeeding.  Read, don't
>>> just assume it can't work.
>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#exit(int)
>>> will give you hint on the fact that exit can be prevented by a security
>>> manager, for example.
>>>
>>> - Peter
>>>
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>
>
> -
> 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 Native library on java.library.path ?

2007-05-24 Thread Lakshmi Venkataraman
Recently, I saw a similar problem on Solaris9  with Tomcat 5.5.23.
Then ldd tcnative-1.so revealed that a certain library (in this case,
libgcc.so)  was not in the path.  By adding that library to the path,
Tomcat 
stopped complaining about not being able to find the native library.


On windows, download tomcat source files, create an eclipse project with
the tomcat source.
Open Catalina.bat, modify the java command line that starts Tomcat and
add debug options.
DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005

Notice suspend=y. This will suspend Tomcat until you attach a debugger. 
You can put a break point in Library.java or APRLifeCycleListener.java
and see what is going on.


 
--Lakshmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 5:52 PM
To: users@tomcat.apache.org
Subject: Tomcat Native library on java.library.path ?

Hello,

I recently installed Apache Tomcat 6.0.10 and have been getting the
following message upon startup:

   INFO: The Apache Tomcat Native library which allows optimal
   performance in production environments was not found on the
   java.library.path:

On Windows XP, I have the following paths added to the PATH environment
variable:

   C:\apache-tomcat-6.0.10\bin;C:\apache-tomcat-6.0.10\lib;%PATH%;

I'm a bit stumped:  Surely the Native library is the
apache-tomcat-6.0.10\lib folder, and surely the java.library.path refers
to PATH.  So what library needs to be added where?

I posted a more in depth question regarding this on jGuru here:

   http://www.jguru.com/forums/view.jsp?EID=1337110

I've also noticed several other beginners out there with the same or a
similar question.

Please somebody help.  If there's any information I haven't provided
that might clarify an explanation, please let me know and I will respond
asap.

Kind regards,
troy

-
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 Native library on java.library.path ?

2007-05-24 Thread Len Popp

The Tomcat Native library (tcnative-1.dll) is optional. (Note that the
log message says "INFO" - it's not an error.) If that DLL is installed
it should be in Tomcat's bin sub-directory.
--
Len

On 5/24/07, troy giunipero <[EMAIL PROTECTED]> wrote:

Hello,

I recently installed Apache Tomcat 6.0.10 and have been getting the
following message upon startup:

   INFO: The Apache Tomcat Native library which allows optimal
   performance in production environments was not found on the
   java.library.path:

On Windows XP, I have the following paths added to the PATH environment
variable:

   C:\apache-tomcat-6.0.10\bin;C:\apache-tomcat-6.0.10\lib;%PATH%;

I'm a bit stumped:  Surely the Native library is the
apache-tomcat-6.0.10\lib folder, and surely the java.library.path refers
to PATH.  So what library needs to be added where?

I posted a more in depth question regarding this on jGuru here:

   http://www.jguru.com/forums/view.jsp?EID=1337110

I've also noticed several other beginners out there with the same or a
similar question.

Please somebody help.  If there's any information I haven't provided
that might clarify an explanation, please let me know and I will respond
asap.

Kind regards,
troy

-
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 Native library on java.library.path ?

2007-05-24 Thread Foo Shyn
Hmm i haven't start using Tomcat 6, but i guess that the 
java.library.path might actually refers to your JDK? Which version of 
JDK are you using?


troy giunipero wrote:

Hello,

I recently installed Apache Tomcat 6.0.10 and have been getting the 
following message upon startup:


  INFO: The Apache Tomcat Native library which allows optimal
  performance in production environments was not found on the
  java.library.path:

On Windows XP, I have the following paths added to the PATH 
environment variable:


  C:\apache-tomcat-6.0.10\bin;C:\apache-tomcat-6.0.10\lib;%PATH%;

I'm a bit stumped:  Surely the Native library is the 
apache-tomcat-6.0.10\lib folder, and surely the java.library.path 
refers to PATH.  So what library needs to be added where?


I posted a more in depth question regarding this on jGuru here:

  http://www.jguru.com/forums/view.jsp?EID=1337110

I've also noticed several other beginners out there with the same or a 
similar question.


Please somebody help.  If there's any information I haven't provided 
that might clarify an explanation, please let me know and I will 
respond asap.


Kind regards,
troy

-
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: How-to make default Running status = false

2007-05-24 Thread Rashmi Rubdi

On 5/23/07, Roger Tismeer <[EMAIL PROTECTED]> wrote:

It takes about 4 minutes or so to (re)start Tomcat  granted I have
30 webapps loaded, but isn't there a switch somewhere that I can toggle
to not auto-start any non-Tomcat webapps?


I was in a similar situation as you've mentioned above.

I find that keeping the Context descriptor outside server.xml makes it
a lot easier to switch between applications.

Say your apps are named app1, app2, app3 etc and if you access them as

http://localhost:8080/app1  http://localhost:8080/app2
http://localhost:8080/app3 , then

you would define the Context for each app under

Tomcat's /conf/Catalina/localhost/  as app1.xml , app2.xml and app3.xml

Now if you want Tomcat to only load app1 , you just disable the other
XML files by renaming them as in app2.xml_disable app3.xml_something

The above setting will make only app1 visible to Tomcat, when you want
to switch, just rename the Context file back to .xml

Alternatively , if you want all apps to be accessible at the root
context, you just set up virtual hosts, in this case each context
would be called ROOT.xml under it's own host, just disable the
ROOT.xml files of those apps you don't want to load.



This way I can simply Start
the few apps I need via the Manager and as I need more or less, I can do
so.


However, it is not possible to use the Manager app to toggle the
Context XML files' extension, you'd be toggling the extension
manually.

It's a simple way to switch off apps, or switch between apps whenever you want.



Thanks,

Roger Tismeer


-Regards
Rashmi

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



Tomcat Native library on java.library.path ?

2007-05-24 Thread troy giunipero

Hello,

I recently installed Apache Tomcat 6.0.10 and have been getting the 
following message upon startup:


  INFO: The Apache Tomcat Native library which allows optimal
  performance in production environments was not found on the
  java.library.path:

On Windows XP, I have the following paths added to the PATH environment 
variable:


  C:\apache-tomcat-6.0.10\bin;C:\apache-tomcat-6.0.10\lib;%PATH%;

I'm a bit stumped:  Surely the Native library is the 
apache-tomcat-6.0.10\lib folder, and surely the java.library.path refers 
to PATH.  So what library needs to be added where?


I posted a more in depth question regarding this on jGuru here:

  http://www.jguru.com/forums/view.jsp?EID=1337110

I've also noticed several other beginners out there with the same or a 
similar question.


Please somebody help.  If there's any information I haven't provided 
that might clarify an explanation, please let me know and I will respond 
asap.


Kind regards,
troy

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



RE: How-to make default Running status = false

2007-05-24 Thread Caldarale, Charles R
> From: Roger Tismeer [mailto:[EMAIL PROTECTED] 
> Subject: RE: How-to make default Running status = false
> 
> Tweaking server.xml | host section | variable autoDeploy = false does
> not do anything  all 30 webapps are still Running = true when
> restarting Tomcat

O.k., now how about trying what Mark W actually suggested, which was
setting deployOnStartup (not autoDeploy) to false.

 - 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: why is apache serving source for .jsp files?

2007-05-24 Thread Jessica Johnson

Thanks Tim, that got me a step further.  I'm no longer getting source
code for the .jsp pages, but now I'm getting a whole lot of HTTP
Status 500 errors.

Here are a few examples:

org.apache.jasper.JasperException: File
"/WEB-INF/jsp2/jsp2-example-taglib.tld" not found

org.apache.jasper.JasperException: The absolute uri:
http://jakarta.apache.org/tomcat/jsp2-example-taglib cannot be
resolved in either web.xml or the jar files

org.apache.jasper.JasperException:
/jsp-examples/num/numguess.jsp(24,0) The value for the useBean class
attribute num.NumberGuessBean is invalid.

The first error is especially strange since that file does indeed
exist. C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\jsp-examples\WEB-INF\jsp2\jsp2-example-taglib.tld
I assume that is the location where it would be looking.

In httpd.conf I took out

Include "C:\Program Files\Apache Software
Foundation\Tomcat5.5\conf\auto\mod_jk.conf"

since this file is regenerated every time Tomcat restarts, and it the
config that it generated didn't seem to do a whole lot for me.

Then I added this to the end of httpd.conf
# Config for mod_jk

 LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"


JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat
5.5/conf/jk/workers.properties"
JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat
5.5/logs/mod_jk.log"

JkLogLevel emerg

JkMount /*.jsp ajp13
JkMount /*/servlet/ ajp13
JkMount /htdocs/jsp-examples/* ajp13


I should mention that I followed these directions in the tutorial to
make Tomcat use Apache's document root:

To Configure Tomcat to use your Apache DocumentRoot instead of it's own:

  1. Open server.xml from C:\Program Files\Apache Software
Foundation\Tomcat 5.5\conf\. Find the  tag and edit the
following:
 
  2. Right after the  tag, add the following context:
 


And jsp-examples resides here:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\jsp-examples


Thanks for listening, hopefully someone out there can give me another
nudge in the right direction.

jessica


On 5/24/07, Tim Lucia <[EMAIL PROTECTED]> wrote:

I'm dumb for not noticing this early.  The jsp-examples path is not
JkMount'd nor is there a mapping for *.jsp.  That is your problem.  I
presumed it was a VirtualHost problem.

Tim



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



RE: How-to make default Running status = false

2007-05-24 Thread Roger Tismeer
Tweaking server.xml | host section | variable autoDeploy = false does
not do anything  all 30 webapps are still Running = true when
restarting Tomcat

Now if I actually tweak unpackWARs = false, then 7 of my webapps are
Running = false  which is good, but then when I try to start them
then nothing happens, they just remain as is i.e., false

-Original Message-
From: Mark H. Wood,UL 0115A,+1 317 274 0749,
[mailto:[EMAIL PROTECTED] On Behalf Of Mark H. Wood
Sent: Wednesday, May 23, 2007 11:22
To: Tomcat Users List
Subject: Re: How-to make default Running status = false

On Wed, May 23, 2007 at 12:20:53PM -0500, Roger Tismeer wrote:
> I've been perusing the wiki and other avenues for some help in regards
> to being able to not Start any of the webapps that I have loaded when
I
> start up Tomcat.  Is this possible?

In server.xml the 'host' element's 'deployOnStartup' attribute looks
like it would do this, if set to 'false'.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.


-
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 bug?

2007-05-24 Thread Martin Gainty

Doan

On your about doubling it?


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

- Original Message - 
From: "Hoa Doan" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, May 24, 2007 5:11 PM
Subject: Possible bug?


I am accessing a page on my server that outputs about 4000+ records and 
displaying them in a table.  The page loads fine w/o SSL enable but with 
SSL it just stop around the 2000th row.  I have no idea why this is 
happening.



-
Pinpoint customers who are looking for what you sell. 



-
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 bug?

2007-05-24 Thread Gregor Schneider

with this little bit of information - neither do we...

gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
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 bug?

2007-05-24 Thread Hoa Doan
I am accessing a page on my server that outputs about 4000+ records and 
displaying them in a table.  The page loads fine w/o SSL enable but with SSL it 
just stop around the 2000th row.  I have no idea why this is happening.

   
-
Pinpoint customers who are looking for what you sell. 

Re: pre-compile

2007-05-24 Thread ben short

Looks like you need the taglibs dependency. Try adding these to your pom.

   
   taglibs
   standard
   1.1.2
   compile
   

   
   javax.servlet
   jstl
   1.1.2
   compile
   


On 5/24/07, Rogerio Baldini das Neves <[EMAIL PROTECTED]> wrote:

I am using this plugin like in tutorial.
But it's happing some strange with item:
org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang/Str
ing;)V




-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de ben
short
Enviada em: quinta-feira, 24 de maio de 2007 17:06
Para: Tomcat Users List
Assunto: Re: pre-compile

Have a look at this maven 2 plugin

http://mojo.codehaus.org/jspc-maven-plugin/usage.html

Ben

On 5/24/07, Rogerio Baldini das Neves <[EMAIL PROTECTED]>
wrote:
> I need to do it in maven.
> But send me your solution,
> if I don't be able to solve my problem with maven, I will use yours.
>
> Thank you.
>
>
>
> -Mensagem original-
> De: Milanez, Marcus [mailto:[EMAIL PROTECTED]
> Enviada em: quinta-feira, 24 de maio de 2007 15:34
> Para: Tomcat Users List
> Assunto: RES: pre-compile
>
> I know how to do it using ANT. Would you like it?
>
> -Mensagem original-
> De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:30
> Para: users@tomcat.apache.org
> Assunto: pre-compile
>
> Hi Guys,
>
>
>
> I'd like to pre-compile my jsps for Tomcat 6 using maven.
>
>
>
> Anybody knows how it is possible ?
>
>
>
> I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.
>
> But in both I've received the message:
>
> org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
> /Str
> ing;)V
>
> when accessing some pages.
>
>
>
> Thanks,
>
>
>
> Rogerio Baldini
>
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
> 15:49
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
15:49


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

2007-05-24 Thread Rogerio Baldini das Neves
I am using this plugin like in tutorial.
But it's happing some strange with item:
org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang/Str
ing;)V




-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de ben
short
Enviada em: quinta-feira, 24 de maio de 2007 17:06
Para: Tomcat Users List
Assunto: Re: pre-compile

Have a look at this maven 2 plugin

http://mojo.codehaus.org/jspc-maven-plugin/usage.html

Ben

On 5/24/07, Rogerio Baldini das Neves <[EMAIL PROTECTED]>
wrote:
> I need to do it in maven.
> But send me your solution,
> if I don't be able to solve my problem with maven, I will use yours.
>
> Thank you.
>
>
>
> -Mensagem original-
> De: Milanez, Marcus [mailto:[EMAIL PROTECTED]
> Enviada em: quinta-feira, 24 de maio de 2007 15:34
> Para: Tomcat Users List
> Assunto: RES: pre-compile
>
> I know how to do it using ANT. Would you like it?
>
> -Mensagem original-
> De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:30
> Para: users@tomcat.apache.org
> Assunto: pre-compile
>
> Hi Guys,
>
>
>
> I'd like to pre-compile my jsps for Tomcat 6 using maven.
>
>
>
> Anybody knows how it is possible ?
>
>
>
> I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.
>
> But in both I've received the message:
>
> org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
> /Str
> ing;)V
>
> when accessing some pages.
>
>
>
> Thanks,
>
>
>
> Rogerio Baldini
>
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
> 15:49
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
15:49


-
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: Single-sign on without form-based authentication

2007-05-24 Thread Gregor Schneider

well, we can't tell you the whole desigh of your_app-to-be but gave
you some starting-points. now it's up to you to use them.

however, i do not see any sense at all passing more tha two
credentials (user, pass) to authenticate

therefore, i suggest first thing you should do is to re-think the
design of your application.

what i'm trying to tell you is the following:

- authenticate via tomcat with user/pass
- when this is ok, get additional credentials (i.e. banking-pin or
whatsoever), call your stored-procedure
- when this call is ok, everything is fine, go ahead
- if the call fails, invalidate tomcat's session, kicking the user out

hope you get the idea and i got you right

cheers

gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
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: why is apache serving source for .jsp files?

2007-05-24 Thread Tim Lucia
I'm dumb for not noticing this early.  The jsp-examples path is not
JkMount'd nor is there a mapping for *.jsp.  That is your problem.  I
presumed it was a VirtualHost problem.

Tim


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Jessica Johnson
> Sent: Thursday, May 24, 2007 1:16 PM
> To: Tomcat Users List
> Subject: Re: why is apache serving source for .jsp files?
> 
> Should have mentioned that.
> http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp and the
> other examples also show the jsp source.  The only way it works is
> using port 8080 on localhost.
> 
> jessica
> 
> On 5/24/07, Tim Lucia <[EMAIL PROTECTED]> wrote:
> > What happens if you make the request of localhost?
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> > > Jessica Johnson
> > > Sent: Thursday, May 24, 2007 12:31 PM
> > > To: users@tomcat.apache.org
> > > Subject: why is apache serving source for .jsp files?
> > >
> > > Hi all,
> > >
> > > I have been following this excellent tutorial http://apacheguide.org/
> to
> > > setup Apache 2.2.4 with Tomcat 5.5.23 and mod_jk.  It's mostly
working,
> > > except that http://mydomain.com/jsp-examples/num/numguess.jsp is
> showing
> > > the
> > > .jsp source.  If I log into my web server and go to
> > > http://localhost:8080/j examples/jsp2/el/basic-
> > > arithmetic.jsp>
> > > sp-examples/num/numguess.jsp > > examples/num/numguess.jsp>everything
> > > works as expected.  So based on this I am assuming that the
> > > problem is with the workers and mod_jk.  I've done some googling, but
> > > wasn't
> > > able to find any solutions.
> > >
> > > If anyone can give me a hand, it would be much appreciated.
> > >
> > > Below are the parts of all of the config files that I thought might be
> > > related to the problem.  Let me know if I should include more info.
> > > Thanks
> > > in advance to anyone who can point me in the right direction.
> > >
> > > jessica
> > >
> > >
> > > * Partial C:\Program Files\Apache Software
> > > Foundation\Apache2.2\conf\http.conf **
> > >
> > > LoadModule php5_module "c:/php/php5apache2_2.dll"
> > > AddType application/x-httpd-php .php
> > > PHPIniDir "C:/php"
> > > Include "C:\Program Files\Apache Software Foundation\Tomcat
> > > 5.5\conf\auto\mod_jk.conf"
> > >
> > >
> > >
> > >
> > > *** Complete C:\Program Files\Apache Software Foundation\Tomcat
> > > 5.5\conf\auto\mod_jk.conf 
> > >
> > > ## Auto generated on Wed May 23 19:03:26 CDT 2007##
> > >
> > > 
> > >   LoadModule jk_module "C:/Program Files/Apache Software
> > > Foundation/Apache2.2/modules/mod_jk.so"
> > > 
> > >
> > > JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> > > /conf/jk/workers.properties"
> > > JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> > > /logs/mod_jk.log"
> > >
> > > JkLogLevel emerg
> > >
> > >
> > >
> > > 
> > > ServerName localhost
> > >
> > > JkMount /lib ajp13
> > > JkMount /lib/* ajp13
> > >
> > > JkMount /htdocs ajp13
> > > JkMount /htdocs/* ajp13
> > >
> > > JkMount /cgi-bin ajp13
> > > JkMount /cgi-bin/* ajp13
> > >
> > > JkMount /include ajp13
> > > JkMount /include/* ajp13
> > >
> > > JkMount /error ajp13
> > > JkMount /error/* ajp13
> > >
> > > JkMount /icons ajp13
> > > JkMount /icons/* ajp13
> > >
> > > JkMount /proxy ajp13
> > > JkMount /proxy/* ajp13
> > >
> > > JkMount /manager ajp13
> > > JkMount /manager/* ajp13
> > >
> > > JkMount /conf ajp13
> > > JkMount /conf/* ajp13
> > >
> > > JkMount /logs ajp13
> > > JkMount /logs/* ajp13
> > >
> > > JkMount /modules ajp13
> > > JkMount /modules/* ajp13
> > >
> > > JkMount /bin ajp13
> > > JkMount /bin/* ajp13
> > >
> > > JkMount /host-manager ajp13
> > > JkMount /host-manager/* ajp13
> > >
> > > JkMount /manual ajp13
> > > JkMount /manual/* ajp13
> > > 
> > >
> > >
> > >
> > >
> > >  C:\Program Files\Apache Software Foundation\Tomcat
> > > 5.5\conf\jk\workers.properties 
> > >
> > > [logger]
> > > level=DEBUG
> > > file=C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/jk2.log
> > > [config]
> > > file=C:/Program Files/Apache Software
> > > Foundation/Apache2.2/conf/workers2.properties
> > > debug=0
> > > debugEnv=0
> > >
> > >
> > > [shm]
> > > file=C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/jk2.shm
> > > size=1048576
> > >
> > > # socket channel
> > > [channel.socket:localhost:8009]
> > > port=8009
> > > host=127.0.0.1
> > >
> > > # worker for the connector
> > > [ajp13:localhost:8009]
> > > channel=channel.socket:localhost:8009
> > >
> > > [status:status]
> > >
> > > [uri:/status/*]
> > > worker=status:status
> > >
> > > [uri:/jsp-examples/num/*.jsp]
> > > worker=ajp13:localhost:8009
> > >
> > > [uri:/*.jsp]
> > > work

Re: How to configure cache-control in Tomcat

2007-05-24 Thread Gregor Schneider

you can't controle the headers in tomcat (and this is where you
specify things as cache-control in http-protocol).

either your web-app has to modify the http-response-header, our you
can write a filter. a filter is specified by the
servlet-specification, thus tomcat supports ist.

more info on filters:

http://java.sun.com/products/servlet/Filters.html

cheers

gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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

2007-05-24 Thread Milanez, Marcus

Maybe...  But I'm pretty used to ANT, so I *don't* care very much... :D 

-Mensagem original-
De: Milanez, Marcus [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 24 de maio de 2007 17:21
Para: Tomcat Users List
Assunto: RES: pre-compile


Maybe...  But I'm pretty used to ANT, so I care very much... :D

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de ben
short Enviada em: quinta-feira, 24 de maio de 2007 17:18
Para: Tomcat Users List
Assunto: Re: pre-compile

The maven config is easier on the eye ;)

On 5/24/07, Milanez, Marcus <[EMAIL PROTECTED]> wrote:
>
> See if it helps you then...
>
> 
> Generating .java files from .jsp files
>
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
>   
> 
>
>   validateXml="false"
>  uriroot="${appFolder}"
>
> webXmlFragment="${appFolder}/WEB-INF/generated_web.xml"
>  outputDir="${appFolder}/WEB-INF/src"
> />
>
>  in your original web.xml file, just after your last

> servlet-class tag
>  -->
>  srcFile="${appFolder}/WEB-INF/generated_web.xml"/>
>  token=""
> value="${webXmlFragment}"/>
>  />
>
> 
>
> 
> Compiling JSPs
> 
> 
>
> optimize="on"
>debug="on" failonerror="false"
>srcdir="${appFolder}/WEB-INF/src"
>excludes="**/*.smap">
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
>   
>   
>   
> 
>
> 
>
> -Mensagem original-
> De: Rogerio Baldini das Neves
> [mailto:[EMAIL PROTECTED]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:43
> Para: 'Tomcat Users List'
> Assunto: RES: pre-compile
>
> I need to do it in maven.
> But send me your solution,
> if I don't be able to solve my problem with maven, I will use yours.
>
> Thank you.
>
>
>
> -Mensagem original-
> De: Milanez, Marcus [mailto:[EMAIL PROTECTED]
> Enviada em: quinta-feira, 24 de maio de 2007 15:34
> Para: Tomcat Users List
> Assunto: RES: pre-compile
>
> I know how to do it using ANT. Would you like it?
>
> -Mensagem original-
> De: Rogerio Baldini das Neves
> [mailto:[EMAIL PROTECTED]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:30
> Para: users@tomcat.apache.org
> Assunto: pre-compile
>
> Hi Guys,
>
>
>
> I'd like to pre-compile my jsps for Tomcat 6 using maven.
>
>
>
> Anybody knows how it is possible ?
>
>
>
> I've tried to compile using jspc-maven-plugin 1.4.6 and
1.4.7-SNAPSHOT.
>
> But in both I've received the message:
>
> org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/la
> ng
> /Str
> ing;)V
>
> when accessing some pages.
>
>
>
> Thanks,
>
>
>
> Rogerio Baldini
>
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 
> 22/5/2007
> 15:49
>
>
>
> -
> 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]


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

2007-05-24 Thread Milanez, Marcus

Maybe...  But I'm pretty used to ANT, so I care very much... :D

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de ben
short
Enviada em: quinta-feira, 24 de maio de 2007 17:18
Para: Tomcat Users List
Assunto: Re: pre-compile

The maven config is easier on the eye ;)

On 5/24/07, Milanez, Marcus <[EMAIL PROTECTED]> wrote:
>
> See if it helps you then...
>
> 
> Generating .java files from .jsp files
>
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
>   
> 
>
>   validateXml="false"
>  uriroot="${appFolder}"
>
> webXmlFragment="${appFolder}/WEB-INF/generated_web.xml"
>  outputDir="${appFolder}/WEB-INF/src"
> />
>
>  in your original web.xml file, just after your last

> servlet-class tag
>  -->
>  srcFile="${appFolder}/WEB-INF/generated_web.xml"/>
>  token=""
> value="${webXmlFragment}"/>
>  />
>
> 
>
> 
> Compiling JSPs
> 
> 
>
> optimize="on"
>debug="on" failonerror="false"
>srcdir="${appFolder}/WEB-INF/src"
>excludes="**/*.smap">
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
>   
>   
>   
> 
>
> 
>
> -Mensagem original-
> De: Rogerio Baldini das Neves 
> [mailto:[EMAIL PROTECTED]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:43
> Para: 'Tomcat Users List'
> Assunto: RES: pre-compile
>
> I need to do it in maven.
> But send me your solution,
> if I don't be able to solve my problem with maven, I will use yours.
>
> Thank you.
>
>
>
> -Mensagem original-
> De: Milanez, Marcus [mailto:[EMAIL PROTECTED]
> Enviada em: quinta-feira, 24 de maio de 2007 15:34
> Para: Tomcat Users List
> Assunto: RES: pre-compile
>
> I know how to do it using ANT. Would you like it?
>
> -Mensagem original-
> De: Rogerio Baldini das Neves 
> [mailto:[EMAIL PROTECTED]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:30
> Para: users@tomcat.apache.org
> Assunto: pre-compile
>
> Hi Guys,
>
>
>
> I'd like to pre-compile my jsps for Tomcat 6 using maven.
>
>
>
> Anybody knows how it is possible ?
>
>
>
> I've tried to compile using jspc-maven-plugin 1.4.6 and
1.4.7-SNAPSHOT.
>
> But in both I've received the message:
>
> org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/la
> ng
> /Str
> ing;)V
>
> when accessing some pages.
>
>
>
> Thanks,
>
>
>
> Rogerio Baldini
>
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 
> 22/5/2007
> 15:49
>
>
>
> -
> 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]


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

2007-05-24 Thread ben short

The maven config is easier on the eye ;)

On 5/24/07, Milanez, Marcus <[EMAIL PROTECTED]> wrote:


See if it helps you then...


Generating .java files from .jsp files


  


  


  


  

  




 in your original web.xml file, just after your last
servlet-class tag
 -->







Compiling JSPs




  


  


  


  


  

  
  
  




-Mensagem original-
De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]

Enviada em: quinta-feira, 24 de maio de 2007 15:43
Para: 'Tomcat Users List'
Assunto: RES: pre-compile

I need to do it in maven.
But send me your solution,
if I don't be able to solve my problem with maven, I will use yours.

Thank you.



-Mensagem original-
De: Milanez, Marcus [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 24 de maio de 2007 15:34
Para: Tomcat Users List
Assunto: RES: pre-compile

I know how to do it using ANT. Would you like it?

-Mensagem original-
De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]

Enviada em: quinta-feira, 24 de maio de 2007 15:30
Para: users@tomcat.apache.org
Assunto: pre-compile

Hi Guys,



I'd like to pre-compile my jsps for Tomcat 6 using maven.



Anybody knows how it is possible ?



I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.

But in both I've received the message:

org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
/Str
ing;)V

when accessing some pages.



Thanks,



Rogerio Baldini






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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
15:49



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



RES: pre-compile

2007-05-24 Thread Milanez, Marcus

See if it helps you then...


Generating .java files from .jsp files


  


  


  


  

  




 in your original web.xml file, just after your last
servlet-class tag
 -->







Compiling JSPs




  


  


  


  


  

  
  
  


 

-Mensagem original-
De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]

Enviada em: quinta-feira, 24 de maio de 2007 15:43
Para: 'Tomcat Users List'
Assunto: RES: pre-compile

I need to do it in maven.
But send me your solution,
if I don't be able to solve my problem with maven, I will use yours.

Thank you.



-Mensagem original-
De: Milanez, Marcus [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 24 de maio de 2007 15:34
Para: Tomcat Users List
Assunto: RES: pre-compile

I know how to do it using ANT. Would you like it? 

-Mensagem original-
De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]

Enviada em: quinta-feira, 24 de maio de 2007 15:30
Para: users@tomcat.apache.org
Assunto: pre-compile

Hi Guys,

 

I'd like to pre-compile my jsps for Tomcat 6 using maven.

 

Anybody knows how it is possible ?

 

I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.

But in both I've received the message:

org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
/Str
ing;)V

when accessing some pages.

 

Thanks,

 

Rogerio Baldini

 

 


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



--
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
15:49



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

2007-05-24 Thread ben short

Have a look at this maven 2 plugin

http://mojo.codehaus.org/jspc-maven-plugin/usage.html

Ben

On 5/24/07, Rogerio Baldini das Neves <[EMAIL PROTECTED]> wrote:

I need to do it in maven.
But send me your solution,
if I don't be able to solve my problem with maven, I will use yours.

Thank you.



-Mensagem original-
De: Milanez, Marcus [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 24 de maio de 2007 15:34
Para: Tomcat Users List
Assunto: RES: pre-compile

I know how to do it using ANT. Would you like it?

-Mensagem original-
De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]

Enviada em: quinta-feira, 24 de maio de 2007 15:30
Para: users@tomcat.apache.org
Assunto: pre-compile

Hi Guys,



I'd like to pre-compile my jsps for Tomcat 6 using maven.



Anybody knows how it is possible ?



I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.

But in both I've received the message:

org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
/Str
ing;)V

when accessing some pages.



Thanks,



Rogerio Baldini






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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
15:49



-
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: Configuring a DataSourceRealm

2007-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paulo,

Paulo Vivacqua wrote:
> I copied the Mysql Driver's jar into $CATALINA_HOME/common/lib.

Ok.

> I already created the database with the required tables user,
> user-roles and roles.

Ok.

> I configured JNDI DataSource in Tomcat by adding a declaration for my
> resource named jdbc/oaso into a Context path to
> $CATALINA_HOME/conf/server.xml.

So you have a JNDI data source configured in server.xml? Does it need to
be global? If not, put it into your webapp in META-INF/context.xml

> I configured the  on the web.xml

Ok.

> I added the  to the jdbc/oaso into the web.xml

Good. If you configure your DataSource in context.xml, you don't need
this step, though I don't think it hurts.

So... how doesn't it work?

Do you get an exception? If so, give us the stack trace.

Do you get a log message? If so, give us the message.

You still haven't described what is wrong. For all I can tell, it's
working. 

- -chris

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

iD8DBQFGVeve9CaO5/Lv0PARArGuAJ90ugIycb6XnBc1UFDjDoaLs+WWygCfXRuW
qidBk4elye0qqFm4W4eDurw=
=7mX9
-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 ISSUE: System.Exit

2007-05-24 Thread Caldarale, Charles R
> From: Fargusson.Alan [mailto:[EMAIL PROTECTED] 
> Subject: RE: TOMCAT ISSUE: System.Exit
> 
> Is System.exit implemented in Tomcat?  I thought System.exit 
> is implemented in the JVM.

It's part of the JRE.  Tomcat merely makes use of it in a few places.

 - 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: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Fargusson.Alan
Is System.exit implemented in Tomcat?  I thought System.exit is implemented in 
the JVM.

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 11:47 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: TOMCAT ISSUE: System.Exit


Ok... beginning to think I'm the only one reading here... yes it is a 
kludge, and I doubt very much whether changing anything in catalina.policy 
will do anything in this case... because the security manager is probably 
incorporated in the web-app class loader... and yes this and the 
documentation makes sense when protecting Tomcat from a rouge web-app 
but thats not what I'm trying to do... I'm trying to protect an embedded 
application FROM TOMCAT itself.
The code I have shown you is TOMCATS CODE... not the embedded application 
code which is using tomcat as a library... or a Web-App's code.

Ok... think we got crossed lines somewhere... but just to recap... Tomcats 
System.Exit code kills the client calling tomcat... its rude ;)
I suppose I could write a class loader in the client... tell it to stop 
System.Exits in a custom security manager... and then load up tomcat using 
that classloader... little bit too much work dont you think?
All I think is happening is that those System.Exits make a lot of sense from 
a server perspective... but not from an embedded perspective... its not a 
disaster, it doenst make tomcat bad (its great), its just something to think 
about


- Original Message - 
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, May 24, 2007 8:04 PM
Subject: Re: TOMCAT ISSUE: System.Exit


> Johnny Kewl wrote:
>> Ha ha... I think this is a kludge,
>
> Using a SecurityManager is a kludge?
>
> but ok, I have "read"... so help
>> me... I want to stop Tomcat calling System.Exit(1)... what do I need to 
>> do to the catalina.policy file to do this?
>> I imagine that instead of the embedded app shutting down the user will 
>> now get a security exception, which to me is wrong... but hey, I'll try 
>> it.
>
> The 'System.exit()' example is the usual one, as you will remember from 
> when you read the documentation:
>
> http://tomcat.apache.org/tomcat-5.0-doc/security-manager-howto.html
>
> p
>
>
>> - Original Message - From: "Peter Crowther" 
>> <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" 
>> Sent: Thursday, May 24, 2007 6:21 PM
>> Subject: RE: TOMCAT ISSUE: System.Exit
>>
>>
>>> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
>>> Imagine I make a library for you... and your user application
>>> does something
>>> wrong... and then my library calls System.Exit and shuts down
>>> the JVM... how
>>> you going to fix that with a security manager??
>>
>> The security manager can prevent the call from succeeding.  Read, don't
>> just assume it can't work.
>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#exit(int)
>> will give you hint on the fact that exit can be prevented by a security
>> manager, for example.
>>
>> - Peter
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> 


-
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: IIS 6 and JK-1.2.23 not working

2007-05-24 Thread Garner, Shawn

Well we got this working.  Looks like we had a dll that was undersized.
Said it was only ~150K instead of ~228K.
This happened last time I tried this so I wonder if one of the mirrors
has an undersized dll out there.

Shawn

-Original Message-
From: Garner, Shawn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 23, 2007 5:04 PM
To: Tomcat Users List
Subject: IIS 6 and JK-1.2.23 not working

Alright I have IIS 6 and JK-1.2.14 working fine.

Then I copy in the JK-1.2.23 isapi_redirect.dll and restart the machine
and it no longer works.

 

Can anyone help me get this working?  

I'd like to take advantage of the bug fixes and security updates in the
new version.

 

I'm familiar with the documentation on the website and used it to get
JK-1.2.14 working.

 

 

Shawn 

 



 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 


 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
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 ISSUE: System.Exit

2007-05-24 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
> Subject: Re: TOMCAT ISSUE: System.Exit
> 
> yes it is a kludge, and I doubt very much whether changing 
> anything in catalina.policy will do anything in this case...

It's certainly not a kludge; one of the primary functions of a security
manager is to prevent 3rd party classes used by your app from doing
anything your app doesn't want it to do.  Sounds like you need to do
some reading about the Java security manager capability, and stop
assuming things that simply aren't true.

You are correct in thinking that changing catalina.policy won't have an
effect, since that isn't used when Tomcat runs as embedded.  You need to
specify a security manager and your own policy file when the JVM starts.

> because the security manager is probably 
> incorporated in the web-app class loader...

It's not; a security manager is part of the core JVM, not associated
with any particular class loader.  That's why there can be only one
security manager per JVM instance.

> I'm trying to protect an embedded application FROM TOMCAT itself.

No, you're trying to protect an application from an embedded Tomcat,
which is exactly what security managers are intended for.

 - 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: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johnny,

Johnny Kewl wrote:
> Ok... beginning to think I'm the only one reading here... yes it is a
> kludge, and I doubt very much whether changing anything in
> catalina.policy will do anything in this case...

I'm not expert (never used SecurityManager, actually), but I think
they're suggesting that you use a SecurityManager to restrict Tomcat
/from/ your own application. You don't want Tomcat to run it's own
SecurityManager... you want to use one that you configure outside of Tomcat.

Tomcat should run inside /your/ SecurityManager, rather than running in
its own. I think you're thinking about using Tomcat to configure a
SecurityManager to restrict webapps... they are talking about
restricting all of Tomcat.

> Tomcats System.Exit code kills the client calling tomcat... its rude ;)

One could argue that Tomcat shouldn't need System.exit... there are
other ways to end programs. I would imagine that all threads Tomcat
creates are daemon threads so simply ending the Main thread would do ths
trick. I'm not Tomcat developer, though.

> I suppose I could write a class loader in the client... tell it to stop
> System.Exits in a custom security manager...

That's exactly what they are suggesting. You don't have to write your
own ClassLoader, though. Use an existing one with a SecurityManager
attached (configured outside of Tomcat). This should protect your app
from Tomcat's "rudeness".

> and then load up tomcat
> using that classloader... little bit too much work dont you think?

No... it's probably the right way to do it, unless you want to run a
hacked-up version of Tomcat, or you want to suggest a real, workable
solution to the problem. What you have suggested looks like it will
prevent Tomcat from shutting down under normal operating conditions
(i.e. standalone, like most people do it).

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

iD8DBQFGVeoX9CaO5/Lv0PARAluYAJ9vjhrutyPHF7cQUNZ2TCBqWYG9FACgpyLo
pfX3fghDQLsmFuLtpUD4vu0=
=s8AN
-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: Configuring a DataSourceRealm

2007-05-24 Thread David Smith

Hi Paulo.

We'll need to know what version of Tomcat you are working with.

--David

Paulo Vivacqua wrote:


Hello there,

I am having difficulty implementing a Datasource realm for my
application. I followed some tutorials but could not make it to work.I
already posted this issue on other forums but I got no answer.

The application Instead of pulling out data from the MySQL database
it´s getting the user information from the tomcat-users.xml
(MemoryRealm)

web.xml






http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  
  
  30
  
  
  
  
  index.jsp
  
  
  
  Constraint1
  
  testeJdbc
  
  /index.jsp
  GET
  POST
  HEAD
  PUT
  OPTIONS
  TRACE
  DELETE
  
  
  admin
  admin
  tomcat
  member
  
  
  
  CONFIDENTIAL
  
  

  
  Constraint2
  
  pagina1
  
  /pagina1.jsp
  GET
  POST
  
  
  
  admin
  member
  
  
  
  CONFIDENTIAL
  
  

  
  FORM
  
  
  /Login.jsp
  /ErrorPage.jsp
  
  
  
  
  admin
  
  
  
  guest
  
  
  
  member
  
  
  
  tomcat
  

  
  JdbcRealmTeste
  jdbc/oaso
  javax.sql.DataSource
  Container
  



server.xml







  className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>

  
  value="30"/>

  
  
  
  
  maxWait
  5000
  
  
  maxActive
  4
  
  
  password
  shisqi3320
  
  
  url
  jdbc:mysql://localhost:3306/renatovivacqua
  
  
  driverClassName
  com.mysql.jdbc.Driver
  
  
  maxIdle
  2
  
  
  username
  root
  
  
  
  
  factory

org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
  pathname
  conf/tomcat-users.xml
  
  
  
  
  
  
  
  
  
  
  
  
  

  

  className="org.apache.catalina.logger.FileLogger"
  prefix="localhost_RealmJdbcTeste_log." 
suffix=".txt"

  timestamp="true"/>

  

  

  
  
  factory

org.apache.commons.dbcp.BasicDataSourceFactory
  
  
  maxActive
  4
  
  
  maxIdle
  2
  
  
  maxWait
  5000
  
  
  username
  root
  
  
  password
  shisqi3320
  
  
  driverClassName
  com.mysql.jdbc.Driver
  
  
  url

jdbc:mysql://localhost:3306/renatovivacqua?autoReconnect=true 


  
  
  
  
  
  className="org.apache.catalina.realm.UserDatabaseRealm"/>

  
  


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



How to configure cache-control in Tomcat

2007-05-24 Thread Alexander Wolff

I would like to set in a Web-app that all static resources (images, css,
js..) are cached in browser by 10 minutes
(including in the HTTP Header response something like this: "Cache-Control:
max-age=600)

some idea how to configure cache-control in Tomcat?

thanks in advance,
Alexander


Re: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Johnny Kewl
Ok... beginning to think I'm the only one reading here... yes it is a 
kludge, and I doubt very much whether changing anything in catalina.policy 
will do anything in this case... because the security manager is probably 
incorporated in the web-app class loader... and yes this and the 
documentation makes sense when protecting Tomcat from a rouge web-app 
but thats not what I'm trying to do... I'm trying to protect an embedded 
application FROM TOMCAT itself.
The code I have shown you is TOMCATS CODE... not the embedded application 
code which is using tomcat as a library... or a Web-App's code.


Ok... think we got crossed lines somewhere... but just to recap... Tomcats 
System.Exit code kills the client calling tomcat... its rude ;)
I suppose I could write a class loader in the client... tell it to stop 
System.Exits in a custom security manager... and then load up tomcat using 
that classloader... little bit too much work dont you think?
All I think is happening is that those System.Exits make a lot of sense from 
a server perspective... but not from an embedded perspective... its not a 
disaster, it doenst make tomcat bad (its great), its just something to think 
about



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

To: "Tomcat Users List" 
Sent: Thursday, May 24, 2007 8:04 PM
Subject: Re: TOMCAT ISSUE: System.Exit



Johnny Kewl wrote:

Ha ha... I think this is a kludge,


Using a SecurityManager is a kludge?

but ok, I have "read"... so help
me... I want to stop Tomcat calling System.Exit(1)... what do I need to 
do to the catalina.policy file to do this?
I imagine that instead of the embedded app shutting down the user will 
now get a security exception, which to me is wrong... but hey, I'll try 
it.


The 'System.exit()' example is the usual one, as you will remember from 
when you read the documentation:


http://tomcat.apache.org/tomcat-5.0-doc/security-manager-howto.html

p


- Original Message - From: "Peter Crowther" 
<[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, May 24, 2007 6:21 PM
Subject: RE: TOMCAT ISSUE: System.Exit



From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Imagine I make a library for you... and your user application
does something
wrong... and then my library calls System.Exit and shuts down
the JVM... how
you going to fix that with a security manager??


The security manager can prevent the call from succeeding.  Read, don't
just assume it can't work.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#exit(int)
will give you hint on the fact that exit can be prevented by a security
manager, for example.

- Peter

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



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








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

2007-05-24 Thread Rogerio Baldini das Neves
I need to do it in maven.
But send me your solution, 
if I don't be able to solve my problem with maven, I will use yours.

Thank you.



-Mensagem original-
De: Milanez, Marcus [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 24 de maio de 2007 15:34
Para: Tomcat Users List
Assunto: RES: pre-compile

I know how to do it using ANT. Would you like it? 

-Mensagem original-
De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]

Enviada em: quinta-feira, 24 de maio de 2007 15:30
Para: users@tomcat.apache.org
Assunto: pre-compile

Hi Guys,

 

I'd like to pre-compile my jsps for Tomcat 6 using maven.

 

Anybody knows how it is possible ?

 

I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.

But in both I've received the message:

org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
/Str
ing;)V

when accessing some pages.

 

Thanks,

 

Rogerio Baldini

 

 


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



-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
15:49



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

2007-05-24 Thread Milanez, Marcus
I know how to do it using ANT. Would you like it? 

-Mensagem original-
De: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED]

Enviada em: quinta-feira, 24 de maio de 2007 15:30
Para: users@tomcat.apache.org
Assunto: pre-compile

Hi Guys,

 

I'd like to pre-compile my jsps for Tomcat 6 using maven.

 

Anybody knows how it is possible ?

 

I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.

But in both I've received the message:

org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
/Str
ing;)V

when accessing some pages.

 

Thanks,

 

Rogerio Baldini

 

 


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



pre-compile

2007-05-24 Thread Rogerio Baldini das Neves
Hi Guys,

 

I'd like to pre-compile my jsps for Tomcat 6 using maven.

 

Anybody knows how it is possible ?

 

I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.

But in both I've received the message:

org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang/Str
ing;)V

when accessing some pages.

 

Thanks,

 

Rogerio Baldini

 

 



RE: Re: IIS 7.0

2007-05-24 Thread Garner, Shawn
What version of the connector did you use?

I am unable to get it to work with IIS 6.0 and JK-1.2.23

Shawn

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Wachter
Sent: Thursday, May 24, 2007 9:48 AM
To: users@tomcat.apache.org
Subject: Re: IIS 7.0

Finally I found the reason why my Tomcat-IIS-Integration failed under
Windows Vista:

It was a security problem. The "workers.properties" and the
"uriworkermaps.properties" had wrong 
security settings. They could not be read by "all users". After changing
the security settings the 
integration worked.

The reason why these two files had their access privileges set this way
is that I used the Ant task 
FixCrLf in order to make these files "windows" compliant. The FixCrLf
task has the "feature" that 
the security settings of the processed files are changed under Windows
Vista!


-
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 email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
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: Single-sign on without form-based authentication

2007-05-24 Thread lightbulb432

I took a look at JAASRealm and its authenticate method only takes two
parameters (username and "credentials", which is really just a single
password string).

Is it possible to pass my other credentials to the JAASRealm so that I can
pass everything at one time (username, password, other credentials) to the
stored procedure, rather than - if I've interepreted this correctly -
authenticating once through the JAAS username/password, then again through
my stored procedure to "cancel out" the previous authentication.

I'm surprised that my authentication use case (while not common, it's also
not out to lunch) requires such disgusting workarounds...



Gregor Schneider wrote:
> 
> Well, subclassing FormAuthenticator would be a hack, a
> Tomcat-only-solution and inho a bad one.
> 
> therefore, take a look at JAASRealm and try to combine it with your
> existing login-procedure, meaning
> 
> - Implement a JAASRealm
> - get the credentials from there (user, password)
> - do the JAAS-Authentication via Tomcat
> - if ok, call your stored procedure
> - if that returns ok, fine, otherwise invalidate the Session and react
> accordingly
> 
> That's just a rough schema, but it's a start to give you one or two
> thoughts.
> 
> BTW.m JAAS is not Tomcat-specific since JAAS is a Java-API which all
> servlet-containers implement (at least all the important ones, afaik):
> 
> http://en.wikipedia.org/wiki/Java_Authentication_and_Authorization_Service
> 
> hth
> 
> gregor
> -- 
> what's puzzlin' you, is the nature of my game
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
> gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Single-sign-on-without-form-based-authentication-tf3805975.html#a10789440
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Pid

Johnny Kewl wrote:
Ha ha... I think this is a kludge, 


Using a SecurityManager is a kludge?

but ok, I have "read"... so help
me... I want to stop Tomcat calling System.Exit(1)... what do I need to 
do to the catalina.policy file to do this?
I imagine that instead of the embedded app shutting down the user will 
now get a security exception, which to me is wrong... but hey, I'll try it.


The 'System.exit()' example is the usual one, as you will remember from 
when you read the documentation:


http://tomcat.apache.org/tomcat-5.0-doc/security-manager-howto.html

p


- Original Message - From: "Peter Crowther" 
<[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, May 24, 2007 6:21 PM
Subject: RE: TOMCAT ISSUE: System.Exit



From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Imagine I make a library for you... and your user application
does something
wrong... and then my library calls System.Exit and shuts down
the JVM... how
you going to fix that with a security manager??


The security manager can prevent the call from succeeding.  Read, don't
just assume it can't work.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#exit(int)
will give you hint on the fact that exit can be prevented by a security
manager, for example.

- Peter

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



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






smime.p7s
Description: S/MIME Cryptographic Signature


Re: Reloadable attribute not working

2007-05-24 Thread Pid

lightbulb432 wrote:

I tried looking through the startup.bat file for standalone Tomcat and still
cannot seem to figure out what the difference is between what that file is
doing to startup Tomcat properly, and what I'm doing wrong with embedded
Tomcat from my class below. (It's calling the same startup classes that I'd
be calling, right?)

Any thoughts?


.oO( the conventional startup script might be easier to use )



lightbulb432 wrote:

I know the cause of the problem - my use of embedded tomcat. When I tried
it with the standalone Tomcat, it works fine. What I'm confused about,
then, is how to fix the following code to make it work like standalone
Tomcat. I'm using Tomcat 6.

I'd be very surprised if this I'm not doing something wrong and this is a
limitation of embedded Tomcat.


public static void main(String[] args) {

Bootstrap bootstrap = new Bootstrap();
bootstrap.setCatalinaHome(path1);
bootstrap.setCatalinaBase(path2);
try {
bootstrap.init(new String[] {"-config","conf/server.xml"});
bootstrap.start();
Thread.sleep(1000);
}
catch (Exception e) {
e.printStackTrace();
}
}


Also, nothing is appearing underneath
CATALINA_BASE/work/Catalina/localhost/myapp, regardless of the number of
servlets or JSPs I've deployed and accessed, and regardless of whether
it's with standalone or embedded Tomcat.




Caldarale, Charles R wrote:
From: lightbulb432 [mailto:[EMAIL PROTECTED] 
Subject: RE: Reloadable attribute not working


There's no folders under CATALINA_BASE/conf

Not having run an embedded Tomcat, I don't know if that's normal or not.

I'm using the invoker servlet - could that be a reason, or 
does it have nothing to do with this? 

Don't know - the invoker servlet should never be used.  It's only there
for compatiblity.

Also, could it be why no .java and .class files are generated 
in my "work" directory?

They're only generated for .jsp files; do you have any in your webapps?


What other effects might one expect using the invoker servlet?

Security holes all over the place.  It's really a bad idea.

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











smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problem with mod_jk-apache-2.2.4.so

2007-05-24 Thread Fabbris Pierluigi

Mladen Turk ha scritto:

Fabbris Pierluigi wrote:

I've problem to use Apache 2.2.4 and Tomcat 6 together.


You really need that, right ;)




Use:
Listener className="org.apache.jk.config.ApacheConfig"

Just out of curiosity, how did you came up with
org.apache.ajp.tomcat6.config.ApacheConfig class ?

Regards,
Mladen.

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


Tank for your help. Now I say you  how I arrive at className="org.apache.ajp.tomcat6.config.ApacheConfig".

The manual of |mod_jk-2.0.43.dll say for Tomcat 4:
append="true" forwardAll="false" 
modJk="c:/apache/Apache2/modules/mod_jk-2.0.43.dll" />.

I remove 4 and write 6. I hadn't idea.
Fabbris Pierluigi

|

-
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: Running Embedded Tomcat from Java Web Start

2007-05-24 Thread Johnny Kewl


- Original Message - 
From: "Johnny Kewl" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, May 24, 2007 7:21 PM
Subject: Re: Running Embedded Tomcat from Java Web Start



Hi Andrew,

The problem is not Tomcat, its WebStart, I hate that thing... know I'm 
going to get flamed ;)
WebStart also seems to crash with RPC applications... and I think that as 
soon as an application has classloaders in it, Web Start is touch and 
go...

Also I imagine you know you have to get certs and all that stuff

Anyway, I got so the dispondant with web start I made my own app called 
IGNITION.

You can get it at http://coolese.100free.com/

Briefly... you have your embedded app... you build it... then look under 
your "build" folder and you will see the class structure for your app... 
(ie you dont have to unpack a jar).


Ha ha... correction, confusing it with my application server... just drop 
the app into the folder...

point URL at it... it will run... sorry!


IGNITION is a web-app... you drop it into Tomcat and its installed... then 
you drop the CLASS structure into the START folder... thats it.
If you call that URL... it will install on the clients machine... no certs 
required.


Have Fun...





- Original Message - 
From: "Andrew Rapp" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, May 24, 2007 6:39 PM
Subject: Running Embedded Tomcat from Java Web Start



Hi All,

I'm trying to launch Embedded Tomcat from Java Web Start (JNLP), but 
without any luck so far.  I've searched high and low and found several 
folks who have tried this approach but no one has seemed to succeed. 
Just to clarify, I'm not trying to run Java Web Start from Embedded 
Tomcat, but actually the reverse: start Embedded Tomcat on the client's 
machine, via Java Web Start.


Tomcat starts but I get the following exception:

   --> Parent Classloader:
   [EMAIL PROTECTED]
org.apache.jasper.servlet.JspServlet
   java.lang.ClassNotFoundException: 
org.apache.jasper.servlet.JspServlet
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
   at 
org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1051)

   at java.security.AccessController.doPrivileged(Native Method)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1047)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

   at org.apache.catalina.startup.Embedded.start(Embedded.java:822)

Apparently a classloader issue with JNLP, but I don't know how to set the 
classloader on Tomcat.


I also tried launching Embedded Tomcat via a URLClassLoader.  With the 
URLClassLoader I get: java.security.AccessControlException: access denied 
(java.util.PropertyPermission catalina.home write).  It seems that the 
URLClassLoader is not running with the same privileges as the JNLP 
classloader.


I'm using the following code to start tomcat.

   System.setProperty("catalina.home", getPath());

   embedded = new Embedded();

   Engine engine = embedded.createEngine();
   engine.setDefaultHost("localhost");

   host = embedded.createHost("localhost", getPath() + "/webapps");
   engine.addChild(host);

   Context context = embedded.createContext("", getPath() + 
"/webapps/ROOT");


   host.addChild(context);

   embedded.addEngine(engine);

   Connector connector = 
embedded.createConnector((java.net.InetAddress) null, 11080, false);

   embedded.addConnector(connector);
   embedded.start();

Any suggestions will be appreciated.

Andrew





-
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: Single-sign on without form-based authentication

2007-05-24 Thread Gregor Schneider

at least you've saved *half* of the time ;)

cheers

greg
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
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: Single-sign on without form-based authentication

2007-05-24 Thread Pid

Gregor Schneider wrote:

Well, subclassing FormAuthenticator would be a hack, a
Tomcat-only-solution and inho a bad one.

therefore, take a look at JAASRealm and try to combine it with your
existing login-procedure, meaning

- Implement a JAASRealm
- get the credentials from there (user, password)
- do the JAAS-Authentication via Tomcat
- if ok, call your stored procedure
- if that returns ok, fine, otherwise invalidate the Session and react
accordingly

That's just a rough schema, but it's a start to give you one or two 
thoughts.


BTW.m JAAS is not Tomcat-specific since JAAS is a Java-API which all
servlet-containers implement (at least all the important ones, afaik):

http://en.wikipedia.org/wiki/Java_Authentication_and_Authorization_Service

hth

gregor


I was halfway through writing an almost identical answer, but I shall 
instead just add: I concur.



p





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Running Embedded Tomcat from Java Web Start

2007-05-24 Thread Johnny Kewl

Hi Andrew,

The problem is not Tomcat, its WebStart, I hate that thing... know I'm going 
to get flamed ;)
WebStart also seems to crash with RPC applications... and I think that as 
soon as an application has classloaders in it, Web Start is touch and go...

Also I imagine you know you have to get certs and all that stuff

Anyway, I got so the dispondant with web start I made my own app called 
IGNITION.

You can get it at http://coolese.100free.com/

Briefly... you have your embedded app... you build it... then look under 
your "build" folder and you will see the class structure for your app... (ie 
you dont have to unpack a jar).
IGNITION is a web-app... you drop it into Tomcat and its installed... then 
you drop the CLASS structure into the START folder... thats it.
If you call that URL... it will install on the clients machine... no certs 
required.


Have Fun...





- Original Message - 
From: "Andrew Rapp" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, May 24, 2007 6:39 PM
Subject: Running Embedded Tomcat from Java Web Start



Hi All,

I'm trying to launch Embedded Tomcat from Java Web Start (JNLP), but 
without any luck so far.  I've searched high and low and found several 
folks who have tried this approach but no one has seemed to succeed.  Just 
to clarify, I'm not trying to run Java Web Start from Embedded Tomcat, but 
actually the reverse: start Embedded Tomcat on the client's machine, via 
Java Web Start.


Tomcat starts but I get the following exception:

   --> Parent Classloader:
   [EMAIL PROTECTED]
org.apache.jasper.servlet.JspServlet
   java.lang.ClassNotFoundException: 
org.apache.jasper.servlet.JspServlet
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
   at 
org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1051)

   at java.security.AccessController.doPrivileged(Native Method)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1047)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

   at org.apache.catalina.startup.Embedded.start(Embedded.java:822)

Apparently a classloader issue with JNLP, but I don't know how to set the 
classloader on Tomcat.


I also tried launching Embedded Tomcat via a URLClassLoader.  With the 
URLClassLoader I get: java.security.AccessControlException: access denied 
(java.util.PropertyPermission catalina.home write).  It seems that the 
URLClassLoader is not running with the same privileges as the JNLP 
classloader.


I'm using the following code to start tomcat.

   System.setProperty("catalina.home", getPath());

   embedded = new Embedded();

   Engine engine = embedded.createEngine();
   engine.setDefaultHost("localhost");

   host = embedded.createHost("localhost", getPath() + "/webapps");
   engine.addChild(host);

   Context context = embedded.createContext("", getPath() + 
"/webapps/ROOT");


   host.addChild(context);

   embedded.addEngine(engine);

   Connector connector = 
embedded.createConnector((java.net.InetAddress) null, 11080, false);

   embedded.addConnector(connector);
   embedded.start();

Any suggestions will be appreciated.

Andrew





-
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: why is apache serving source for .jsp files?

2007-05-24 Thread Jessica Johnson

Should have mentioned that.
http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp and the
other examples also show the jsp source.  The only way it works is
using port 8080 on localhost.

jessica

On 5/24/07, Tim Lucia <[EMAIL PROTECTED]> wrote:

What happens if you make the request of localhost?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Jessica Johnson
> Sent: Thursday, May 24, 2007 12:31 PM
> To: users@tomcat.apache.org
> Subject: why is apache serving source for .jsp files?
>
> Hi all,
>
> I have been following this excellent tutorial http://apacheguide.org/ to
> setup Apache 2.2.4 with Tomcat 5.5.23 and mod_jk.  It's mostly working,
> except that http://mydomain.com/jsp-examples/num/numguess.jsp is showing
> the
> .jsp source.  If I log into my web server and go to
> http://localhost:8080/j arithmetic.jsp>
> sp-examples/num/numguess.jsp examples/num/numguess.jsp>everything
> works as expected.  So based on this I am assuming that the
> problem is with the workers and mod_jk.  I've done some googling, but
> wasn't
> able to find any solutions.
>
> If anyone can give me a hand, it would be much appreciated.
>
> Below are the parts of all of the config files that I thought might be
> related to the problem.  Let me know if I should include more info.
> Thanks
> in advance to anyone who can point me in the right direction.
>
> jessica
>
>
> * Partial C:\Program Files\Apache Software
> Foundation\Apache2.2\conf\http.conf **
>
> LoadModule php5_module "c:/php/php5apache2_2.dll"
> AddType application/x-httpd-php .php
> PHPIniDir "C:/php"
> Include "C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\auto\mod_jk.conf"
>
>
>
>
> *** Complete C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\auto\mod_jk.conf 
>
> ## Auto generated on Wed May 23 19:03:26 CDT 2007##
>
> 
>   LoadModule jk_module "C:/Program Files/Apache Software
> Foundation/Apache2.2/modules/mod_jk.so"
> 
>
> JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> /conf/jk/workers.properties"
> JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> /logs/mod_jk.log"
>
> JkLogLevel emerg
>
>
>
> 
> ServerName localhost
>
> JkMount /lib ajp13
> JkMount /lib/* ajp13
>
> JkMount /htdocs ajp13
> JkMount /htdocs/* ajp13
>
> JkMount /cgi-bin ajp13
> JkMount /cgi-bin/* ajp13
>
> JkMount /include ajp13
> JkMount /include/* ajp13
>
> JkMount /error ajp13
> JkMount /error/* ajp13
>
> JkMount /icons ajp13
> JkMount /icons/* ajp13
>
> JkMount /proxy ajp13
> JkMount /proxy/* ajp13
>
> JkMount /manager ajp13
> JkMount /manager/* ajp13
>
> JkMount /conf ajp13
> JkMount /conf/* ajp13
>
> JkMount /logs ajp13
> JkMount /logs/* ajp13
>
> JkMount /modules ajp13
> JkMount /modules/* ajp13
>
> JkMount /bin ajp13
> JkMount /bin/* ajp13
>
> JkMount /host-manager ajp13
> JkMount /host-manager/* ajp13
>
> JkMount /manual ajp13
> JkMount /manual/* ajp13
> 
>
>
>
>
>  C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\jk\workers.properties 
>
> [logger]
> level=DEBUG
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
> [config]
> file=C:/Program Files/Apache Software
> Foundation/Apache2.2/conf/workers2.properties
> debug=0
> debugEnv=0
>
>
> [shm]
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
> size=1048576
>
> # socket channel
> [channel.socket:localhost:8009]
> port=8009
> host=127.0.0.1
>
> # worker for the connector
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
>
> [status:status]
>
> [uri:/status/*]
> worker=status:status
>
> [uri:/jsp-examples/num/*.jsp]
> worker=ajp13:localhost:8009
>
> [uri:/*.jsp]
> worker=ajp13:localhost:8009
>
>
>
>
>
>
>
>  C:/Program Files/Apache Software
> Foundation/Apache2.2/conf/workers2.properties (The tutorial told me to
> create this file, but then I noticed the server logs were compaining that
> there was no C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\jk\workers.properties so I just copied this file to that location
> and changed the config file reference.  Not sure if that was the right
> thing
> to do) ***
>
>
> [logger]
> level=DEBUG
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
> [config]
> file=C:/Program Files/Apache Software
> Foundation/Apache2.2/conf/workers.properties
> debug=0
> debugEnv=0
>
>
> [shm]
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
> size=1048576
>
> # socket channel
> [channel.socket:localhost:8009]
> port=8009
> host=127.0.0.1
>
> # worker for the connector
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
>
> [status:status]
>
> [uri:/status/*]
> worker=status:status
>
> [u

Re: Problem with mod_jk-apache-2.2.4.so

2007-05-24 Thread Mladen Turk

Fabbris Pierluigi wrote:

I've problem to use Apache 2.2.4 and Tomcat 6 together.


You really need that, right ;)




Use:
Listener className="org.apache.jk.config.ApacheConfig"

Just out of curiosity, how did you came up with
org.apache.ajp.tomcat6.config.ApacheConfig class ?

Regards,
Mladen.

-
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: why is apache serving source for .jsp files?

2007-05-24 Thread Tim Lucia
What happens if you make the request of localhost?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Jessica Johnson
> Sent: Thursday, May 24, 2007 12:31 PM
> To: users@tomcat.apache.org
> Subject: why is apache serving source for .jsp files?
> 
> Hi all,
> 
> I have been following this excellent tutorial http://apacheguide.org/ to
> setup Apache 2.2.4 with Tomcat 5.5.23 and mod_jk.  It's mostly working,
> except that http://mydomain.com/jsp-examples/num/numguess.jsp is showing
> the
> .jsp source.  If I log into my web server and go to
> http://localhost:8080/j arithmetic.jsp>
> sp-examples/num/numguess.jsp examples/num/numguess.jsp>everything
> works as expected.  So based on this I am assuming that the
> problem is with the workers and mod_jk.  I've done some googling, but
> wasn't
> able to find any solutions.
> 
> If anyone can give me a hand, it would be much appreciated.
> 
> Below are the parts of all of the config files that I thought might be
> related to the problem.  Let me know if I should include more info.
> Thanks
> in advance to anyone who can point me in the right direction.
> 
> jessica
> 
> 
> * Partial C:\Program Files\Apache Software
> Foundation\Apache2.2\conf\http.conf **
> 
> LoadModule php5_module "c:/php/php5apache2_2.dll"
> AddType application/x-httpd-php .php
> PHPIniDir "C:/php"
> Include "C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\auto\mod_jk.conf"
> 
> 
> 
> 
> *** Complete C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\auto\mod_jk.conf 
> 
> ## Auto generated on Wed May 23 19:03:26 CDT 2007##
> 
> 
>   LoadModule jk_module "C:/Program Files/Apache Software
> Foundation/Apache2.2/modules/mod_jk.so"
> 
> 
> JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> /conf/jk/workers.properties"
> JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> /logs/mod_jk.log"
> 
> JkLogLevel emerg
> 
> 
> 
> 
> ServerName localhost
> 
> JkMount /lib ajp13
> JkMount /lib/* ajp13
> 
> JkMount /htdocs ajp13
> JkMount /htdocs/* ajp13
> 
> JkMount /cgi-bin ajp13
> JkMount /cgi-bin/* ajp13
> 
> JkMount /include ajp13
> JkMount /include/* ajp13
> 
> JkMount /error ajp13
> JkMount /error/* ajp13
> 
> JkMount /icons ajp13
> JkMount /icons/* ajp13
> 
> JkMount /proxy ajp13
> JkMount /proxy/* ajp13
> 
> JkMount /manager ajp13
> JkMount /manager/* ajp13
> 
> JkMount /conf ajp13
> JkMount /conf/* ajp13
> 
> JkMount /logs ajp13
> JkMount /logs/* ajp13
> 
> JkMount /modules ajp13
> JkMount /modules/* ajp13
> 
> JkMount /bin ajp13
> JkMount /bin/* ajp13
> 
> JkMount /host-manager ajp13
> JkMount /host-manager/* ajp13
> 
> JkMount /manual ajp13
> JkMount /manual/* ajp13
> 
> 
> 
> 
> 
>  C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\jk\workers.properties 
> 
> [logger]
> level=DEBUG
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
> [config]
> file=C:/Program Files/Apache Software
> Foundation/Apache2.2/conf/workers2.properties
> debug=0
> debugEnv=0
> 
> 
> [shm]
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
> size=1048576
> 
> # socket channel
> [channel.socket:localhost:8009]
> port=8009
> host=127.0.0.1
> 
> # worker for the connector
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
> 
> [status:status]
> 
> [uri:/status/*]
> worker=status:status
> 
> [uri:/jsp-examples/num/*.jsp]
> worker=ajp13:localhost:8009
> 
> [uri:/*.jsp]
> worker=ajp13:localhost:8009
> 
> 
> 
> 
> 
> 
> 
>  C:/Program Files/Apache Software
> Foundation/Apache2.2/conf/workers2.properties (The tutorial told me to
> create this file, but then I noticed the server logs were compaining that
> there was no C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\jk\workers.properties so I just copied this file to that location
> and changed the config file reference.  Not sure if that was the right
> thing
> to do) ***
> 
> 
> [logger]
> level=DEBUG
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
> [config]
> file=C:/Program Files/Apache Software
> Foundation/Apache2.2/conf/workers.properties
> debug=0
> debugEnv=0
> 
> 
> [shm]
> file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
> size=1048576
> 
> # socket channel
> [channel.socket:localhost:8009]
> port=8009
> host=127.0.0.1
> 
> # worker for the connector
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
> 
> [status:status]
> 
> [uri:/status/*]
> worker=status:status
> 
> [uri:/jsp-examples/num/*.jsp]
> worker=ajp13:localhost:8009
> 
> [uri:/*.jsp]
> worker=ajp13:localhost:8009



-
To start a n

Re: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Johnny Kewl
Ha ha... I think this is a kludge, but ok, I have "read"... so help me... I 
want to stop Tomcat calling System.Exit(1)... what do I need to do to the 
catalina.policy file to do this?
I imagine that instead of the embedded app shutting down the user will now 
get a security exception, which to me is wrong... but hey, I'll try it.



- Original Message - 
From: "Peter Crowther" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, May 24, 2007 6:21 PM
Subject: RE: TOMCAT ISSUE: System.Exit



From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Imagine I make a library for you... and your user application
does something
wrong... and then my library calls System.Exit and shuts down
the JVM... how
you going to fix that with a security manager??


The security manager can prevent the call from succeeding.  Read, don't
just assume it can't work.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#exit(int)
will give you hint on the fact that exit can be prevented by a security
manager, for example.

- Peter

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



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



Re: Single-sign on without form-based authentication

2007-05-24 Thread Gregor Schneider

Well, subclassing FormAuthenticator would be a hack, a
Tomcat-only-solution and inho a bad one.

therefore, take a look at JAASRealm and try to combine it with your
existing login-procedure, meaning

- Implement a JAASRealm
- get the credentials from there (user, password)
- do the JAAS-Authentication via Tomcat
- if ok, call your stored procedure
- if that returns ok, fine, otherwise invalidate the Session and react
accordingly

That's just a rough schema, but it's a start to give you one or two thoughts.

BTW.m JAAS is not Tomcat-specific since JAAS is a Java-API which all
servlet-containers implement (at least all the important ones, afaik):

http://en.wikipedia.org/wiki/Java_Authentication_and_Authorization_Service

hth

gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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



Running Embedded Tomcat from Java Web Start

2007-05-24 Thread Andrew Rapp
Hi All,

I'm trying to launch Embedded Tomcat from Java Web Start (JNLP), but without 
any luck so far.  I've searched high and low and found several folks who have 
tried this approach but no one has seemed to succeed.  Just to clarify, I'm not 
trying to run Java Web Start from Embedded Tomcat, but actually the reverse: 
start Embedded Tomcat on the client's machine, via Java Web Start.  

Tomcat starts but I get the following exception:

--> Parent Classloader:
[EMAIL PROTECTED]
 org.apache.jasper.servlet.JspServlet
java.lang.ClassNotFoundException: 
org.apache.jasper.servlet.JspServlet
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
at org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1051)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1047)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.startup.Embedded.start(Embedded.java:822)

Apparently a classloader issue with JNLP, but I don't know how to set the 
classloader on Tomcat.  

I also tried launching Embedded Tomcat via a URLClassLoader.  With the 
URLClassLoader I get: java.security.AccessControlException: access denied 
(java.util.PropertyPermission catalina.home write).  It seems that the 
URLClassLoader is not running with the same privileges as the JNLP classloader.

I'm using the following code to start tomcat.

System.setProperty("catalina.home", getPath());

embedded = new Embedded();

Engine engine = embedded.createEngine();
engine.setDefaultHost("localhost");

host = embedded.createHost("localhost", getPath() + "/webapps");
engine.addChild(host);

Context context = embedded.createContext("", getPath() + 
"/webapps/ROOT");

host.addChild(context);

embedded.addEngine(engine);

Connector connector = embedded.createConnector((java.net.InetAddress) 
null, 11080, false);
embedded.addConnector(connector);
embedded.start();

Any suggestions will be appreciated.

Andrew



Problem with mod_jk-apache-2.2.4.so

2007-05-24 Thread Fabbris Pierluigi

I've problem to use Apache 2.2.4 and Tomcat 6 together.
I install Apache 2.2.4 and Tomcat 6.
I put mod_jk-apache-2.2.4.so in the directory modules in Apache and
configure in http.conf di apache in this way: LoadModule jk_module
modules/mod_jk-apache-2.2.4.so
Until this no problem Apache starts.
Now I open server.xml in Tomcat 6 to modify the file in right way:
below  insert:

below   insert:

After I modify this I start Tomcat, but if I read a older manual now
before I create workers.properties and last thing in Apache in http.conf
there are a problem.
In the directory /conf/auto/  doesn' exist mod_jk.conf.
This file doesn't create when I start Tomcat.
What do I miss?
Hoping in a help.
Fabbris Pierluigi


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



why is apache serving source for .jsp files?

2007-05-24 Thread Jessica Johnson

Hi all,

I have been following this excellent tutorial http://apacheguide.org/ to
setup Apache 2.2.4 with Tomcat 5.5.23 and mod_jk.  It's mostly working,
except that http://mydomain.com/jsp-examples/num/numguess.jsp is showing the
.jsp source.  If I log into my web server and go to
http://localhost:8080/j
sp-examples/num/numguess.jspeverything
works as expected.  So based on this I am assuming that the
problem is with the workers and mod_jk.  I've done some googling, but wasn't
able to find any solutions.

If anyone can give me a hand, it would be much appreciated.

Below are the parts of all of the config files that I thought might be
related to the problem.  Let me know if I should include more info.  Thanks
in advance to anyone who can point me in the right direction.

jessica


* Partial C:\Program Files\Apache Software
Foundation\Apache2.2\conf\http.conf **

LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
Include "C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\auto\mod_jk.conf"




*** Complete C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\auto\mod_jk.conf 

## Auto generated on Wed May 23 19:03:26 CDT 2007##


 LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"


JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
/conf/jk/workers.properties"
JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
/logs/mod_jk.log"

JkLogLevel emerg




   ServerName localhost

   JkMount /lib ajp13
   JkMount /lib/* ajp13

   JkMount /htdocs ajp13
   JkMount /htdocs/* ajp13

   JkMount /cgi-bin ajp13
   JkMount /cgi-bin/* ajp13

   JkMount /include ajp13
   JkMount /include/* ajp13

   JkMount /error ajp13
   JkMount /error/* ajp13

   JkMount /icons ajp13
   JkMount /icons/* ajp13

   JkMount /proxy ajp13
   JkMount /proxy/* ajp13

   JkMount /manager ajp13
   JkMount /manager/* ajp13

   JkMount /conf ajp13
   JkMount /conf/* ajp13

   JkMount /logs ajp13
   JkMount /logs/* ajp13

   JkMount /modules ajp13
   JkMount /modules/* ajp13

   JkMount /bin ajp13
   JkMount /bin/* ajp13

   JkMount /host-manager ajp13
   JkMount /host-manager/* ajp13

   JkMount /manual ajp13
   JkMount /manual/* ajp13





 C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\jk\workers.properties 

[logger]
level=DEBUG
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
[config]
file=C:/Program Files/Apache Software
Foundation/Apache2.2/conf/workers2.properties
debug=0
debugEnv=0


[shm]
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# worker for the connector
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/status/*]
worker=status:status

[uri:/jsp-examples/num/*.jsp]
worker=ajp13:localhost:8009

[uri:/*.jsp]
worker=ajp13:localhost:8009







 C:/Program Files/Apache Software
Foundation/Apache2.2/conf/workers2.properties (The tutorial told me to
create this file, but then I noticed the server logs were compaining that
there was no C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\jk\workers.properties so I just copied this file to that location
and changed the config file reference.  Not sure if that was the right thing
to do) ***


[logger]
level=DEBUG
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
[config]
file=C:/Program Files/Apache Software
Foundation/Apache2.2/conf/workers.properties
debug=0
debugEnv=0


[shm]
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# worker for the connector
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/status/*]
worker=status:status

[uri:/jsp-examples/num/*.jsp]
worker=ajp13:localhost:8009

[uri:/*.jsp]
worker=ajp13:localhost:8009


change the email address for Tomcat Users List

2007-05-24 Thread Abdelmonaam Kallali
Did anybody figure out how to change the email address for Tomcat Users
List?

 





 

 

 



Abdelmonaam KALLALI
Test Specialist 

DragonWave
411 Legget Dr 


  [EMAIL PROTECTED] 


tel: 
mobile: 

 
 613-599  ext 275 
 
 613-889 0732 

 



 
 Want to always have my latest info?

  Want a
signature like this?

 



RE: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Peter Crowther
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
> Imagine I make a library for you... and your user application 
> does something 
> wrong... and then my library calls System.Exit and shuts down 
> the JVM... how 
> you going to fix that with a security manager??

The security manager can prevent the call from succeeding.  Read, don't
just assume it can't work.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#exit(int)
will give you hint on the fact that exit can be prevented by a security
manager, for example.

- Peter

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



Re: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Johnny Kewl

Sorry dont understand, please explain a little more.
I cant see what the security manager has to do with it.

Imagine I make a library for you... and your user application does something 
wrong... and then my library calls System.Exit and shuts down the JVM... how 
you going to fix that with a security manager??



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

To: "Tomcat Users List" 
Sent: Thursday, May 24, 2007 2:54 PM
Subject: Re: TOMCAT ISSUE: System.Exit



Look up 'SecurityManager'.

p

Johnny Kewl wrote:

I'm busy having a good look at Tomcats code,
When I find something, I will report it like this, the powers that be, 
can list it as a bug, an issue, a nice to have, whatever.
There is no need to report back, I'm not waiting for the changes, I'm 
making a modified Tomcat prototype called WildCat, so anyone interested 
can play with that.


TOMCAT ISSUE: System.exit(1),

In Catalina ->  public void stopServer(String[] arguments)

} catch (IOException e) {
log.error("Catalina.stop: ", e);
//System.exit(1);  //MODIFIED
}

And in StandardServer -> public void await() } catch (IOException e) {
log.error("StandardServer.await: create[" + port  + "]: ", 
e);

//System.exit(1); //MODIFIED
}

In an embedded application, these System.exit(1) kill the entire 
application.
So for example if a user through an embedded application Starts or Stops 
tomcat twice, they don't see a trapped or redirected error in the 
application, because the application shuts down.
The log.error will appear in the Dos/Terminal err/out stream, but in a 
Java application, the user will not be looking at that, the application 
just disappears. 



Johnny Kewl eMail: Johnkewlstuff.co.za  -- replace  
with @ --

  Cell: +027-72- 473-9331
Java Developer (Tomcat Aficionado)
  Free Tomcat software at  http://coolese.100free.com/







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



Re: Single-sign on without form-based authentication

2007-05-24 Thread lightbulb432

I'll try to avoid the hack method if possible.

Let me clarify the two requirements that my authentication process must
meet. It must use an existing stored procedure that will return a login
success/fail response, and it needs additional credentials (username,
password, and at least one other field, if not more.)

Which of the two suggestions should I be looking at? (JAASRealm or
FormAuthenticator?) I can't tell the conceptual difference between these
classes, and which can solve my problem.

Also, is it correct to say that both suggestions are Tomcat-specific?
(Realms and FormAuthenticator.)

Thanks.



Gregor Schneider wrote:
> 
> in $CATALINA_HOME/server/lib/catalina.jar there's a file
> "catalina.properties".
> There your will find the following entries:
> 
> BASIC=org.apache.catalina.authenticator.BasicAuthenticator
> CLIENT-CERT=org.apache.catalina.authenticator.SSLAuthenticator
> DIGEST=org.apache.catalina.authenticator.DigestAuthenticator
> FORM=org.apache.catalina.authenticator.FormAuthenticator
> NONE=org.apache.catalina.authenticator.NonLoginAuthenticator
> 
> Replace either Basic or FormAuthenticator with your own, put your jar
> into "$CATALINA_HOME/server/lib, restart -> voilá
> 
> had to do that once, however, it's a bad hack
> 
> On 5/24/07, lightbulb432 <[EMAIL PROTECTED]> wrote:
> 
>> implementation. Could somebody describe the difference between your
>> suggestion and implementing Realm? Are they mutually exclusive concepts?
>> Are
>> they unrelated to each other completely?
>>
> http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm
> 
> That would be a better solution, though, however, I'm not sure if that
> could work with the architecture you described in your former post.
> 
> cheers
> 
> gregor
> -- 
> what's puzzlin' you, is the nature of my game
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
> gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Single-sign-on-without-form-based-authentication-tf3805975.html#a10787517
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: NPE when setting executor on AJP Connector

2007-05-24 Thread Rémy Maucherat

On 5/24/07, Mirko Nasato <[EMAIL PROTECTED]> wrote:

Rémy Maucherat wrote:
> I was disappointed when I saw the performance results of the current
> executors. At the moment, you should not be using them.
>
Alright. I would suggest putting an EXPERIMENTAL! or similar warning in
the docs and conf files in that case.


It's not that experimental, it's just that there's no real benefit
except for some special cases. As you noticed, it also doesn't work
with the org.apache.jk AJP connector.

Rémy

-
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: NPE when setting executor on AJP Connector

2007-05-24 Thread Mirko Nasato

Rémy Maucherat wrote:

I was disappointed when I saw the performance results of the current
executors. At the moment, you should not be using them.

Alright. I would suggest putting an EXPERIMENTAL! or similar warning in 
the docs and conf files in that case.


Kind regards

Mirko


-
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: NPE when setting executor on AJP Connector

2007-05-24 Thread Rémy Maucherat

On 5/24/07, Mirko Nasato <[EMAIL PROTECTED]> wrote:

Should I file a bug report?


I was disappointed when I saw the performance results of the current
executors. At the moment, you should not be using them.

Rémy

-
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: Configuring a DataSourceRealm

2007-05-24 Thread Paulo Vivacqua

Hello Chris,
Thanks very much for your answer.

Yes I am currently using MemoryRealm and I want to use DataSourceRealm instead.
I am using tomcat 5.0

I copied the Mysql Driver's jar into $CATALINA_HOME/common/lib.
I already created the database with the required tables user,
user-roles and roles.
I configured JNDI DataSource in Tomcat by adding a declaration for my
resource named jdbc/oaso into a Context path to
$CATALINA_HOME/conf/server.xml.
I configured the  on the web.xml
I added the  to the jdbc/oaso into the web.xml




On 5/24/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paulo,

Paulo Vivacqua wrote:
> I am having difficulty implementing a Datasource realm for my
> application. I followed some tutorials but could not make it to work.I
> already posted this issue on other forums but I got no answer.
>
> The application Instead of pulling out data from the MySQL database
> it´s getting the user information from the tomcat-users.xml
> (MemoryRealm)

So... you are currently using MemoryRealm and you want to use
DataSourceRealm instead?

What version of Tomcat are you using?

What have you tried already? Posting configuration without telling us
what else you know isn't very helpful :(

- -chris

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

iD8DBQFGVarm9CaO5/Lv0PARApCKAJ9T31kPWmqWi7Qqj+dKQCFZp44CegCfTOdL
EQKleoWdZtWgU7j8lDzycPg=
=G1yI
-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]





--
Paulo Vivacqua
[EMAIL PROTECTED]
msn: [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: Single-sign on without form-based authentication

2007-05-24 Thread Gregor Schneider

in $CATALINA_HOME/server/lib/catalina.jar there's a file "catalina.properties".
There your will find the following entries:

BASIC=org.apache.catalina.authenticator.BasicAuthenticator
CLIENT-CERT=org.apache.catalina.authenticator.SSLAuthenticator
DIGEST=org.apache.catalina.authenticator.DigestAuthenticator
FORM=org.apache.catalina.authenticator.FormAuthenticator
NONE=org.apache.catalina.authenticator.NonLoginAuthenticator

Replace either Basic or FormAuthenticator with your own, put your jar
into "$CATALINA_HOME/server/lib, restart -> voilá

had to do that once, however, it's a bad hack

On 5/24/07, lightbulb432 <[EMAIL PROTECTED]> wrote:


implementation. Could somebody describe the difference between your
suggestion and implementing Realm? Are they mutually exclusive concepts? Are
they unrelated to each other completely?


http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm

That would be a better solution, though, however, I'm not sure if that
could work with the architecture you described in your former post.

cheers

gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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



NPE when setting executor on AJP Connector

2007-05-24 Thread Mirko Nasato

Hi,

I've just installed Tomcat 6.0.13 and noticed in conf/server.xml that 
there is a new Executor element - commented out by default - saying "The 
connectors can use a shared executor, you can define one or more named 
thread pools".


So tried and enabled it, using the same executor for both the HTTP and 
the AJP Connectors:


   
   protocol="HTTP/1.1" .../>
   protocol="AJP/1.3" ... />


However I then get an exception when starting Tomcat:
--
May 24, 2007 3:14:34 PM org.apache.tomcat.util.digester.Digester 
startElement

SEVERE: Begin event threw exception
java.lang.NullPointerException
   at 
org.apache.catalina.startup.ConnectorCreateRule._setExecutor(ConnectorCreateRule.java:61)
   at 
org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:54)

   at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
   at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)

--

The executor seems to work only with the HTTP Connector, not the AJP 
one. However according to the docs the standard AJP implementation 
should support 'executor' as well


 http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html

Should I file a bug report?

Thanks

Mirko



-
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: Need Help Restoring a Seesion after session time-out

2007-05-24 Thread domenico di leo

I suppose you use a servlet to set the session, you can use

session.setMaxInactiveInterval(time)
where the variable time points out how many second  you want to keep
alive your session.
e.g. time=60*60 =1h.

However you should set a reasonable time interval, you can't keep
alive your session for ever , otherwise your server could goes down

On 24/05/07, Jitendra Ch <[EMAIL PROTECTED]> wrote:







Hi to allCan  One of you help me how to make a session alive, 
because my session is getting expired after the time mentioned in the 
web.xmlWith regardsJitendra Ch
_
The idiot box is no longer passe!
http://content.msn.co.in/Entertainment/TV/Default.aspx


-
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: Configuring a DataSourceRealm

2007-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paulo,

Paulo Vivacqua wrote:
> I am having difficulty implementing a Datasource realm for my
> application. I followed some tutorials but could not make it to work.I
> already posted this issue on other forums but I got no answer.
> 
> The application Instead of pulling out data from the MySQL database
> it´s getting the user information from the tomcat-users.xml
> (MemoryRealm)

So... you are currently using MemoryRealm and you want to use
DataSourceRealm instead?

What version of Tomcat are you using?

What have you tried already? Posting configuration without telling us
what else you know isn't very helpful :(

- -chris

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

iD8DBQFGVarm9CaO5/Lv0PARApCKAJ9T31kPWmqWi7Qqj+dKQCFZp44CegCfTOdL
EQKleoWdZtWgU7j8lDzycPg=
=G1yI
-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: IIS 7.0

2007-05-24 Thread Stefan Wachter

Finally I found the reason why my Tomcat-IIS-Integration failed under Windows 
Vista:

It was a security problem. The "workers.properties" and the "uriworkermaps.properties" had wrong 
security settings. They could not be read by "all users". After changing the security settings the 
integration worked.


The reason why these two files had their access privileges set this way is that I used the Ant task 
FixCrLf in order to make these files "windows" compliant. The FixCrLf task has the "feature" that 
the security settings of the processed files are changed under Windows Vista!



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



Configuring a DataSourceRealm

2007-05-24 Thread Paulo Vivacqua

Hello there,

I am having difficulty implementing a Datasource realm for my
application. I followed some tutorials but could not make it to work.I
already posted this issue on other forums but I got no answer.

The application Instead of pulling out data from the MySQL database
it´s getting the user information from the tomcat-users.xml
(MemoryRealm)

web.xml





http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  
  
  30
  
  
  
  
  index.jsp
  
  
  
  Constraint1
  
  testeJdbc
  
  /index.jsp
  GET
  POST
  HEAD
  PUT
  OPTIONS
  TRACE
  DELETE
  
  
  admin
  admin
  tomcat
  member
  
  
  
  CONFIDENTIAL
  
  

  
  Constraint2
  
  pagina1
  
  /pagina1.jsp
  GET
  POST
  
  
  
  admin
  member
  
  
  
  CONFIDENTIAL
  
  

  
  FORM
  
  
  /Login.jsp
  /ErrorPage.jsp
  
  
  
  
  admin
  
  
  
  guest
  
  
  
  member
  
  
  
  tomcat
  

  
  JdbcRealmTeste
  jdbc/oaso
  javax.sql.DataSource
  Container
  



server.xml






  
  
  
  
  
  
  
  
  maxWait
  5000
  
  
  maxActive
  4
  
  
  password
  shisqi3320
  
  
  url
  jdbc:mysql://localhost:3306/renatovivacqua
  
  
  driverClassName
  com.mysql.jdbc.Driver
  
  
  maxIdle
  2
  
  
  username
  root
  
  
  
  
  factory

org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
  pathname
  conf/tomcat-users.xml
  
  
  
  
  
  
  
  
  
  
  
  
  

  

  

  

  

  
  
  factory

org.apache.commons.dbcp.BasicDataSourceFactory
  
  
  maxActive
  4
  
  
  maxIdle
  2
  
  
  maxWait
  5000
  
  
  username
  root
  
  
  password
  shisqi3320
  
  
  driverClassName
  com.mysql.jdbc.Driver
  
  
  url

jdbc:mysql://localhost:3306/renatovivacqua?autoReconnect=true
  
  
  
  
  
  
  
  


-
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 in catalina.out log

2007-05-24 Thread Propes, Barry L
maybe put the jar file in the wrong directory? Looks like that's what could 
have happened.

-Original Message-
From: Jean-Pierre Astier [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 5:27 AM
To: Tomcat Users List
Subject: error in catalina.out log


Hi all,

I've got this message in my catalina.out log.

I dont know how to resolve the problem.

Any idea ??

Thanks

Jean-Pierre Astier

23 mai 2007 12:51:39 org.apache.catalina.loader.WebappClassLoader  
loadClass
INFO: Illegal access: this web application instance has been stopped  
already.  Could not load com.mysql.jdbc.Messages.  The eventual  
following stack trace is caused by an error thrown for debugging  
purposes as well as to attempt to terminate the thread which caused  
the illegal access, and has no functional impact.
java.lang.IllegalStateException
 at org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1241)
 at org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1201)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
319)
 at com.mysql.jdbc.CommunicationsException. 
(CommunicationsException.java:174)
 at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
 at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
 at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
 at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
 at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
 at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
 at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
 at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
 at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
 at java.lang.ref.Finalizer$FinalizerThread.run 
(Finalizer.java:160)


-
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: Reloadable attribute not working

2007-05-24 Thread lightbulb432

I tried looking through the startup.bat file for standalone Tomcat and still
cannot seem to figure out what the difference is between what that file is
doing to startup Tomcat properly, and what I'm doing wrong with embedded
Tomcat from my class below. (It's calling the same startup classes that I'd
be calling, right?)

Any thoughts?



lightbulb432 wrote:
> 
> I know the cause of the problem - my use of embedded tomcat. When I tried
> it with the standalone Tomcat, it works fine. What I'm confused about,
> then, is how to fix the following code to make it work like standalone
> Tomcat. I'm using Tomcat 6.
> 
> I'd be very surprised if this I'm not doing something wrong and this is a
> limitation of embedded Tomcat.
> 
> 
>   public static void main(String[] args) {
>   
>   Bootstrap bootstrap = new Bootstrap();
>   bootstrap.setCatalinaHome(path1);
>   bootstrap.setCatalinaBase(path2);
>   try {
>   bootstrap.init(new String[] {"-config","conf/server.xml"});
>   bootstrap.start();
>   Thread.sleep(1000);
> }
> catch (Exception e) {
>   e.printStackTrace();
> }
>   }
> 
> 
> Also, nothing is appearing underneath
> CATALINA_BASE/work/Catalina/localhost/myapp, regardless of the number of
> servlets or JSPs I've deployed and accessed, and regardless of whether
> it's with standalone or embedded Tomcat.
> 
> 
> 
> 
> Caldarale, Charles R wrote:
>> 
>>> From: lightbulb432 [mailto:[EMAIL PROTECTED] 
>>> Subject: RE: Reloadable attribute not working
>>> 
>>> There's no folders under CATALINA_BASE/conf
>> 
>> Not having run an embedded Tomcat, I don't know if that's normal or not.
>> 
>>> I'm using the invoker servlet - could that be a reason, or 
>>> does it have nothing to do with this? 
>> 
>> Don't know - the invoker servlet should never be used.  It's only there
>> for compatiblity.
>> 
>>> Also, could it be why no .java and .class files are generated 
>>> in my "work" directory?
>> 
>> They're only generated for .jsp files; do you have any in your webapps?
>> 
>>> What other effects might one expect using the invoker servlet?
>> 
>> Security holes all over the place.  It's really a bad idea.
>> 
>>  - 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]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Reloadable-attribute-not-working-tf3781575.html#a10785088
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Single-sign on without form-based authentication

2007-05-24 Thread lightbulb432

Thanks for pointing me to that class. How can I specify my overriden version
in a configuration file or programmatically so that it can be used?

Also, I was looking into how to solve the problem from my original post, and
came across the concept multiple times of providing my own Realm
implementation. Could somebody describe the difference between your
suggestion and implementing Realm? Are they mutually exclusive concepts? Are
they unrelated to each other completely?

Thanks.



Gregor Schneider wrote:
> 
> You could call the authenticate()-method from Tomcat's FormAuthenticator:
> 
> http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/authenticator/FormAuthenticator.html#authenticate(org.apache.catalina.HttpRequest,%20org.apache.catalina.HttpResponse,%20org.apache.catalina.deploy.LoginConfig)
> 
> However, this will work in Tomcat only, and I'd rather implement a
> formbased login than to "frickle" (German expression for a quick &
> dirty solution) my own solution.
> 
> cheers
> 
> Gregor
> -- 
> what's puzzlin' you, is the nature of my game
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
> gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Single-sign-on-without-form-based-authentication-tf3805975.html#a10785065
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: How can I make the classes of one app be in the classpath of another app?

2007-05-24 Thread David Delbecq
You simply can't.
See classloader hierarchy in tomcat.
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

En l'instant précis du 24/05/07 15:49, Enrique Lamas s'exprimait en ces
termes:
> Hello,
> I've allways used resin server and now I'm starting with Tomcat. I've one 
> doubt and I've found no answer to it after much time searching. ¿Can you help 
> me?
>
> I've two apps, for example:
> webapps/app1
> webapps/app2
>
> Well, what I need is from app2 create instances of classes defined at app1, 
> i.e. , I want app1 classes be at app2 classpath. But I don't want neither to 
> make a jar file end copy it to webapps/app2/WEB-INF/lib nor copy to 
> apache-tomcat-6.0.10\lib in order to make it visible to all webapps.
>
> With resin server this was done by inserting this line at web.xml:
>  source="../../../app1/WEB-INF/classes"/>
>
> buy I think this is not standard because it's no allowed whith Tomcat.
>
> ¿How can I do this?
>
> Thanks and sorry for my bad english.
>   


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



Re: How to monitor Tomcat Server.

2007-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Praveen,

Praveen Kumar wrote:
> pls could send the file and cron job details ,
> it would be more useful to me .

Uh... "google httping", "man cron".

- -chris

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

iD8DBQFGVZ/Y9CaO5/Lv0PARAsYZAJsHjL2r25TPJFIhaU+cWqHxxakmigCffFnQ
L314/jC8//BRs+nWNq1fo5w=
=obMu
-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: How to monitor Tomcat Server.

2007-05-24 Thread Praveen Kumar

pls could send the file and cron job details ,

it would be more useful to me .

Thanks
Praveen.


On 5/24/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I use httping and cron every hour from another machine. The only problem
is when there is a network problem, and that's worth knowing about, too.

- -chris

ben short wrote:
> I'd still recommend Nagios to do the monitoring, far cheaper than
> hiring someone to do the checking 24*7. Also you'll get an instant
> notification of when things go bad, rather then in 2 hours time when
> someone checks it.
>
> You could setup 2 instances of nagios.. get them to monitor each other
> and then also mirror everything that will be monitored onto each of
> them. You;ll get two alerts if things go bad, but that's better than
> none.
>
> A faq on nagios monitoring tomcat..
>
> http://nagios.org/faqs/viewfaq.php?faq_id=310
>
> On 5/24/07, Mark H. Wood <[EMAIL PROTECTED]> wrote:
>> On Thu, May 24, 2007 at 03:03:12PM +0530, Praveen Kumar wrote:
>> > It seems this is also one type of  tool. Here  again we have some
>> problem
>> > ie  we  should  monitor this tool too right  ?
>> >
>> > So  instead installing new  tool to  monitor  tomcat server , is
>> there any
>> > feature   that apache group provides  to  inform tomcat server status
?
>>
>> There is an insoluble dilemma here.
>>
>> If you use a separate process to monitor your server, then that
>> process must also be monitored.  Eventually you have two processes
>> watching each other, whatever else they may be doing.
>>
>> If you do *not* use a separate process, then your server can only
>> report its state transitions if it is still able to do so.  A crashed
>> process cannot tell you that it has crashed; the most you can get is
>> that it will begin failing to tell you that it has *not* crashed.
>>
>> To get complete coverage can become quite elaborate.  To protect
>> against hardware failure, you need two machines monitoring each other.
>> To protect against network or utility power failure, you need two (or
>> more) machines monitoring each other from different sites.
>>
>> At some point as this scales up, it may be more sensible to just hire
>> somebody to watch screens and check things periodically.
>>
>> --
>> Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
>> Typically when a software vendor says that a product is "intuitive" he
>> means the exact opposite.
>>
>>
>>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGVZxt9CaO5/Lv0PARAtBUAJ9NmYhhoObys/3XL8OTy9equ4mNtQCfUy8n
wrhleB5kift4bc8sV35xyuU=
=VEFp
-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]





--
Thanks
Domma Raju Praveen Kumar.


Re: How to monitor Tomcat Server.

2007-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I use httping and cron every hour from another machine. The only problem
is when there is a network problem, and that's worth knowing about, too.

- -chris

ben short wrote:
> I'd still recommend Nagios to do the monitoring, far cheaper than
> hiring someone to do the checking 24*7. Also you'll get an instant
> notification of when things go bad, rather then in 2 hours time when
> someone checks it.
> 
> You could setup 2 instances of nagios.. get them to monitor each other
> and then also mirror everything that will be monitored onto each of
> them. You;ll get two alerts if things go bad, but that's better than
> none.
> 
> A faq on nagios monitoring tomcat..
> 
> http://nagios.org/faqs/viewfaq.php?faq_id=310
> 
> On 5/24/07, Mark H. Wood <[EMAIL PROTECTED]> wrote:
>> On Thu, May 24, 2007 at 03:03:12PM +0530, Praveen Kumar wrote:
>> > It seems this is also one type of  tool. Here  again we have some
>> problem
>> > ie  we  should  monitor this tool too right  ?
>> >
>> > So  instead installing new  tool to  monitor  tomcat server , is
>> there any
>> > feature   that apache group provides  to  inform tomcat server status ?
>>
>> There is an insoluble dilemma here.
>>
>> If you use a separate process to monitor your server, then that
>> process must also be monitored.  Eventually you have two processes
>> watching each other, whatever else they may be doing.
>>
>> If you do *not* use a separate process, then your server can only
>> report its state transitions if it is still able to do so.  A crashed
>> process cannot tell you that it has crashed; the most you can get is
>> that it will begin failing to tell you that it has *not* crashed.
>>
>> To get complete coverage can become quite elaborate.  To protect
>> against hardware failure, you need two machines monitoring each other.
>> To protect against network or utility power failure, you need two (or
>> more) machines monitoring each other from different sites.
>>
>> At some point as this scales up, it may be more sensible to just hire
>> somebody to watch screens and check things periodically.
>>
>> -- 
>> Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
>> Typically when a software vendor says that a product is "intuitive" he
>> means the exact opposite.
>>
>>
>>
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGVZxt9CaO5/Lv0PARAtBUAJ9NmYhhoObys/3XL8OTy9equ4mNtQCfUy8n
wrhleB5kift4bc8sV35xyuU=
=VEFp
-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]



How can I make the classes of one app be in the classpath of another app?

2007-05-24 Thread Enrique Lamas
Hello,
I've allways used resin server and now I'm starting with Tomcat. I've one doubt 
and I've found no answer to it after much time searching. ¿Can you help me?

I've two apps, for example:
webapps/app1
webapps/app2

Well, what I need is from app2 create instances of classes defined at app1, 
i.e. , I want app1 classes be at app2 classpath. But I don't want neither to 
make a jar file end copy it to webapps/app2/WEB-INF/lib nor copy to 
apache-tomcat-6.0.10\lib in order to make it visible to all webapps.

With resin server this was done by inserting this line at web.xml:


buy I think this is not standard because it's no allowed whith Tomcat.

¿How can I do this?

Thanks and sorry for my bad english.

Re: How to monitor Tomcat Server.

2007-05-24 Thread ben short

I'd still recommend Nagios to do the monitoring, far cheaper than
hiring someone to do the checking 24*7. Also you'll get an instant
notification of when things go bad, rather then in 2 hours time when
someone checks it.

You could setup 2 instances of nagios.. get them to monitor each other
and then also mirror everything that will be monitored onto each of
them. You;ll get two alerts if things go bad, but that's better than
none.

A faq on nagios monitoring tomcat..

http://nagios.org/faqs/viewfaq.php?faq_id=310

On 5/24/07, Mark H. Wood <[EMAIL PROTECTED]> wrote:

On Thu, May 24, 2007 at 03:03:12PM +0530, Praveen Kumar wrote:
> It seems this is also one type of  tool. Here  again we have some problem
> ie  we  should  monitor this tool too right  ?
>
> So  instead installing new  tool to  monitor  tomcat server , is there any
> feature   that apache group provides  to  inform tomcat server status ?

There is an insoluble dilemma here.

If you use a separate process to monitor your server, then that
process must also be monitored.  Eventually you have two processes
watching each other, whatever else they may be doing.

If you do *not* use a separate process, then your server can only
report its state transitions if it is still able to do so.  A crashed
process cannot tell you that it has crashed; the most you can get is
that it will begin failing to tell you that it has *not* crashed.

To get complete coverage can become quite elaborate.  To protect
against hardware failure, you need two machines monitoring each other.
To protect against network or utility power failure, you need two (or
more) machines monitoring each other from different sites.

At some point as this scales up, it may be more sensible to just hire
somebody to watch screens and check things periodically.

--
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.





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



Need Help Restoring a Seesion after session time-out

2007-05-24 Thread Jitendra Ch






Hi to allCan  One of you help me how to make a session alive, 
because my session is getting expired after the time mentioned in the 
web.xmlWith regardsJitendra Ch
_
The idiot box is no longer passe!
http://content.msn.co.in/Entertainment/TV/Default.aspx

Re: How to monitor Tomcat Server.

2007-05-24 Thread Mark H. Wood
On Thu, May 24, 2007 at 03:03:12PM +0530, Praveen Kumar wrote:
> It seems this is also one type of  tool. Here  again we have some problem
> ie  we  should  monitor this tool too right  ?
> 
> So  instead installing new  tool to  monitor  tomcat server , is there any
> feature   that apache group provides  to  inform tomcat server status ?

There is an insoluble dilemma here.

If you use a separate process to monitor your server, then that
process must also be monitored.  Eventually you have two processes
watching each other, whatever else they may be doing.

If you do *not* use a separate process, then your server can only
report its state transitions if it is still able to do so.  A crashed
process cannot tell you that it has crashed; the most you can get is
that it will begin failing to tell you that it has *not* crashed.

To get complete coverage can become quite elaborate.  To protect
against hardware failure, you need two machines monitoring each other.
To protect against network or utility power failure, you need two (or
more) machines monitoring each other from different sites.

At some point as this scales up, it may be more sensible to just hire
somebody to watch screens and check things periodically.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



pgpxkmTChiio2.pgp
Description: PGP signature


Re: DBCP

2007-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mohammed,

Mohammed Zabin wrote:
> You know what? I am confusing with this. Shall i put the following code in
> web.xml in my web application or web.xml on config folder, shall i use
> server.xml or context.xml

Use META-INF/context.xml in your WAR file or deployment directory. Don't
use ${TOMCAT_HOME}/conf/Catalina/[host]/[app].xml unless there's a
really good reason to do so.

Put your  in context.xml and remove all 
configuration from server.xml.

Remove any  you have in your web.xml.

- -chris

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

iD8DBQFGVZCk9CaO5/Lv0PARAvY4AJ9LdP/csNjVWn3ZU9OVzv527gyWygCfTJmS
3EScAagRpgYlErF8uPLvF9E=
=MAx6
-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: Server.xml Sort on Start

2007-05-24 Thread Caldarale, Charles R
> From: Mark H. Wood,UL 0115A,+1 317 274 0749, 
> [mailto:[EMAIL PROTECTED] On Behalf Of Mark H. Wood
> Subject: Re: Server.xml Sort on Start
> 
> I don't *know*, mind you, but random ordering suggests that the
> container starts a thread for each 'host' and the checks are taking
> place in those threads.

Not by default - the  entries are processed by the thread that
handles the .  However, setting backgroundProcesserDelay in a
 element will cause it to be processed by its own thread.  (It's
default value is -1.)  Look at the Threads display in Lambda Probe for
ContainerBackgroundProcessor threads.

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

2007-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David Rodríguez Fernández wrote:
> Hi list.
> I have a tomcat 5.0.19 server (java 1.4.2_08) who slow the connection
> when i use the keepAlive method. This is normal?

Which numbers do you think are slower in your KeepAlive test? They all
look like they are within a reasonable margin of error to me (~650
requests/sec, avg response time = ~30ms, transfer rate = ~100k/sec, etc.).

What makes you think that KeepAlives are slower?

Are you looking at the "Connection Times" table?

Remember that a "connection" means different things for each of your
tests. In the "KeepAlive test", a connection serves many requests (and
therefore stays open for longer). In the "no KeepAlive test", a new
connection is created for each request, then closed.

I think you are interpreting your results incorrectly.

- -chris


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

iD4DBQFGVY+y9CaO5/Lv0PARArq8AJY/AAS/aXuOkCbnpdsuPk95z2C0AJ9JocSi
FD4/tY+XZ2eUhW4G570CjA==
=Q3j2
-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: Server.xml Sort on Start

2007-05-24 Thread Mark H. Wood
I don't *know*, mind you, but random ordering suggests that the
container starts a thread for each 'host' and the checks are taking
place in those threads.  Thread switching is influenced by lots of
things and would be fairly unpredictable, so a bunch of threads
setting up host objects could complete or fail in any order.

The code knows for sure, and you can inspect it if you wish.  I'm
hoping that someone who has already done so will step forward with,
"Mark's right," or, "he's talking rot, you know, it's really thusandso."
But it makes a certain amount of sense to spin off a thread to manage
each address:port pair and let those threads take care of checking and
setup for their own areas of responsibility.

If my guess is right, then you're kind of stuck with your current
method of debugging the config., but maybe you can automate it.  It
mightn't be too hard to script up something that processes the log and
makes a list of which app.s *did* start.  server.xml is, well, XML, so
there are plenty of good tools that can be used to edit it
programmatically.  For example, move all of the known working 'host'
declarations to the end and start again, perhaps shuffling the
remainder.  You could automatically loop through this until the bad'un
is isolated.

This sort of thing would be a waste of programming time for a handful
of hosts, but if you have scores of them and they are fairly volatile
then automated "Monte Carlo debugging" (if you will) may be a good
approach.

Another method would be to disable automatic deployment at startup,
and then drive the manager app. with a script that starts each
app. until one fails or Tomcat freezes.  Less fun, more determinism.

Yet another tactic would be to keep the Tomcat config. files in a
revision control system, or at least to keep backups (possibly with
your editor's help), so that you can readily zero in on the changes
between a recent working config. and the busted one.

If this is an ongoing problem then keeping good records of what went
wrong each time might be useful.  As you spot patterns, you may be
able to develop antibugging techniques and tools to better avoid the
common problems.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



pgp6j3MqFMdLN.pgp
Description: PGP signature


RE: Problem with web hosting for project implemented using springs frame work

2007-05-24 Thread Caldarale, Charles R
> From: Thirumalai, Vijayakumar [Dexterity] 
> [mailto:[EMAIL PROTECTED] 
> Subject: Problem with web hosting for project implemented 
> using springs frame work
> 
> If we place these two (xml-apis.jar, XercesImpl.jar) jar 
> files in tomcat folder (X:\my_app\Portal\tomcat\common\endorsed),
> it will give the problem what we are facing now in the web site.

Those files are to be used ONLY when Tomcat 5.5 is running on a 1.4
JRE/JDK.  If you have any other combination those jars must not be
present.  They are not part of the standard Tomcat download, but do come
with the Tomcat 5.5 compatibility package for the 1.4 JRE/JDK.

If you're running a 1.5 or above JRE/JDK, the jars must be removed.

 - 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: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
> Subject: TOMCAT ISSUE: System.Exit 
> 
> TOMCAT ISSUE: System.exit(1)...
> In an embedded application, these System.exit(1) kill the 
> entire application.

Wouldn't you normally control that by proper settings in your
java.policy file for the application (conf/catalina.policy if not
running embedded)?  Don't think any code changes are needed here.

 - 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: TOMCAT ISSUE: System.Exit

2007-05-24 Thread Pid

Look up 'SecurityManager'.

p

Johnny Kewl wrote:

I'm busy having a good look at Tomcats code,
When I find something, I will report it like this, the powers that be, can list 
it as a bug, an issue, a nice to have, whatever.
There is no need to report back, I'm not waiting for the changes, I'm making a 
modified Tomcat prototype called WildCat, so anyone interested can play with 
that.

TOMCAT ISSUE: System.exit(1),

In Catalina ->  public void stopServer(String[] arguments)

} catch (IOException e) {
log.error("Catalina.stop: ", e);
//System.exit(1);  //MODIFIED
}

And in StandardServer -> public void await() 


} catch (IOException e) {
log.error("StandardServer.await: create[" + port  + "]: ", e);
//System.exit(1); //MODIFIED
}

In an embedded application, these System.exit(1) kill the entire application.
So for example if a user through an embedded application Starts or Stops tomcat 
twice, they don't see a trapped or redirected error in the application, because 
the application shuts down.
The log.error will appear in the Dos/Terminal err/out stream, but in a Java application, the user will not be looking at that, the application just disappears.  




Johnny Kewl 
  eMail: Johnkewlstuff.co.za  -- replace  with @ --

  Cell: +027-72- 473-9331
Java Developer (Tomcat Aficionado)
  Free Tomcat software at  http://coolese.100free.com/





smime.p7s
Description: S/MIME Cryptographic Signature


Problem with web hosting for project implemented using springs frame work

2007-05-24 Thread Thirumalai, Vijayakumar [Dexterity]
HI All,

 

We are facing problem with web hosting

 

If we place these two (xml-apis.jar, XercesImpl.jar) jar files in tomcat
folder (X:\my_app\Portal\tomcat\common\endorsed), it will give the
problem what we are facing now in the web site.

If we remove these two jar files system may work fine.

We tested the same scenario in our local system. It is behaving the
same. And in the net also we found the same reason.

 

Is there any other solution for this with out remove this JAR files?
bcaz we havn't permission to remove that jar files.

Thanks & Regards,
Vijayakumar.T 

Programmer , Dexterity Business Analysts | www.dexterity.in
http://www.dexterity.in/>  Off  : +91 44 4229 
|Extn:1228

 



Caution -Disclaimer
---
The information contained in the electronic message and any
attachments to this message are intended for the exclusive use
of the addressee(s)and may contain confidential or privileged
information. If you are not intended recipient, please notify
the sender immediately and destroy all copies of this message
and any attachments. Computer viruses can be transmitted via
email. The recipient advised to check this email and any
attachments for the presence of viruses. Dexterity has taken
responsible protection to prevent this risk and accepts no
liability for any damage caused by any virus transmitted by
this mail.

Re: error in catalina.out log

2007-05-24 Thread Jean-Pierre Astier

Thanks David !!!

Le 24 mai 07 à 13:18, David Delbecq a écrit :

This mean that, while concerned webapplication has already stopped,  
some

clases inside are still trying to do some job. Ensure all your MySql
connections are closed when webapplication stops.

En l'instant précis du 24/05/07 12:26, Jean-Pierre Astier  
s'exprimait en

ces termes:

Hi all,

I've got this message in my catalina.out log.

I dont know how to resolve the problem.

Any idea ??

Thanks

Jean-Pierre Astier

23 mai 2007 12:51:39 org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.Messages.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused
the illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1241)


at
org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1201)


at java.lang.ClassLoader.loadClassInternal 
(ClassLoader.java:319)

at
com.mysql.jdbc.CommunicationsException. 
(CommunicationsException.java:174)


at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native  
Method)

at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)


-
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: error in catalina.out log

2007-05-24 Thread David Delbecq
This mean that, while concerned webapplication has already stopped, some
clases inside are still trying to do some job. Ensure all your MySql
connections are closed when webapplication stops.

En l'instant précis du 24/05/07 12:26, Jean-Pierre Astier s'exprimait en
ces termes:
> Hi all,
>
> I've got this message in my catalina.out log.
>
> I dont know how to resolve the problem.
>
> Any idea ??
>
> Thanks
>
> Jean-Pierre Astier
>
> 23 mai 2007 12:51:39 org.apache.catalina.loader.WebappClassLoader
> loadClass
> INFO: Illegal access: this web application instance has been stopped
> already.  Could not load com.mysql.jdbc.Messages.  The eventual
> following stack trace is caused by an error thrown for debugging
> purposes as well as to attempt to terminate the thread which caused
> the illegal access, and has no functional impact.
> java.lang.IllegalStateException
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1241)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
>
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at
> com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:174)
>
> at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
> at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
> at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
> at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
> at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
> at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
> at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
> at
> java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
>
>
> -
> 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: DBCP

2007-05-24 Thread Mohammed Zabin

You know what? I am confusing with this. Shall i put the following code in
web.xml in my web application or web.xml on config folder, shall i use
server.xml or context.xml

On 5/24/07, David Rodríguez Fernández <[EMAIL PROTECTED]> wrote:


I'm using tomcat 5.5, and for this kind of things i'm creating a xml file
in
the {TOMCATHOME}/conf/Catalina/localhost/AppName.xml
With a content like this:
# cat /etc/tomcat-5.5/Catalina/localhost/AppName.xml

   






-Mensaje original-
De: Mohammed Zabin [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 24 de mayo de 2007 12:24
Para: Tomcat Users List
Asunto: Re: DBCP

I am using tomcat 6, and another thing, i have changed my configuration
parameters to the following:







On 5/24/07, David Rodríguez Fernández <[EMAIL PROTECTED]>
wrote:
>
> What tomcat version do you have?
>
> -Mensaje original-
> De: Mohammed Zabin [mailto:[EMAIL PROTECTED] Enviado el: jueves, 24
> de mayo de 2007 12:03
> Para: users@tomcat.apache.org
> Asunto: DBCP
>
> *Hi All*
> **
> *I want to use DBCP to connect my localhost Oracle Database, I have
> write the following in servlet.xml file:*
>
>   type="javax.sql.DataSource" />
>
>
>   
>  factory
>  org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>  driverClassName
>  oracle.jdbc.OracleDriver
>   
>   
>  url
>  jdbc:oracle:thin:@127.0.0.1:1521:mine
>   
>   
>  username
>  hr
>   
>   
>  password
>  hr
>   
>   
>  maxActive
>  20
>   
>   
>  maxIdle
>  10
>   
>   
>  maxWait
>  -1
>   
>
> 
>
> *and the following in web.xml file:*
>
> 
>   Oracle Datasource example
>   jdbc/myoracledb
>   javax.sql.DataSource
>   Container
> 
>
> *and following is my JSP code:*
>
>
> <%@ page import="javax.sql.*, javax.naming.*, java.sql.*" %>
>
> <%
> Context initContext = new InitialContext(); Context envContext  =
> (Context)initContext.lookup("java:/comp/env");
> DataSource ds = (DataSource)envContext.lookup("jdbc/myoracledb");
> Connection conn = ds.getConnection();
>
> out.println( "Connection Established" ); %>
>
> *When running the above jsp page, i got the following exception:*
>
> *org.apache.jasper.JasperException: javax.servlet.ServletException:
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
> driver of class '' for connect URL 'null'
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException
> (JspServletWra
> pper.java:532)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
> java
> :4
> 08)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
>
> Any Help Please, I am working to solving this problem from one week, I
> am lost, what is the reason for this exception, any help will be
> apprecieated
>
> Jotnarta
>
>
>
>
> --
>
> La Información incluida en el presente correo electrónico es SECRETO
> PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del
> destinatario arriba mencionado. Si usted lee este mensaje y no es el
> destinatario señalado, el empleado o el agente responsable de entregar
> el mensaje al destinatario, o ha recibido esta comunicación por error,
> le informamos que esta totalmente prohibida cualquier divulgación,
> distribución o reproducción de esta comunicación, y le rogamos que nos
> lo notifique inmediatamente y nos devuelva el mensaje original a la
> dirección arriba mencionada.
>
> Gracias.
>
> The information contained in this e-mail is LEGALLY PRIVILEDGED AND
> CONFIDENTIAL and is intended only for the use of the addressee named
> above. If the reader of this message is not the intended recipient or
> the employee or agent responsible for delivering the message to the
> intended recipient, or you have received this communication in error,
> please be aware that any dissemination, distribution or duplication of
> this communication is strictly prohibited, and please notify us
> immediately and return the original message to us at the address above.
>
> Thank you.
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--

La Información incluida en el presente correo electrónico es SECRETO
PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del
destinatario arriba mencionado. Si usted lee este mensaje y no es el
destinatario señalado, el empleado o el agente responsable de entregar
el mensaje al destinatario, o ha recibido esta comunica

RE: DBCP

2007-05-24 Thread David Rodríguez Fernández
I'm using tomcat 5.5, and for this kind of things i'm creating a xml file in
the {TOMCATHOME}/conf/Catalina/localhost/AppName.xml
With a content like this:
# cat /etc/tomcat-5.5/Catalina/localhost/AppName.xml








-Mensaje original-
De: Mohammed Zabin [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 24 de mayo de 2007 12:24
Para: Tomcat Users List
Asunto: Re: DBCP

I am using tomcat 6, and another thing, i have changed my configuration
parameters to the following:







On 5/24/07, David Rodríguez Fernández <[EMAIL PROTECTED]> wrote:
>
> What tomcat version do you have?
>
> -Mensaje original-
> De: Mohammed Zabin [mailto:[EMAIL PROTECTED] Enviado el: jueves, 24 
> de mayo de 2007 12:03
> Para: users@tomcat.apache.org
> Asunto: DBCP
>
> *Hi All*
> **
> *I want to use DBCP to connect my localhost Oracle Database, I have 
> write the following in servlet.xml file:*
>
>   type="javax.sql.DataSource" />
>
>
>   
>  factory
>  org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>  driverClassName
>  oracle.jdbc.OracleDriver
>   
>   
>  url
>  jdbc:oracle:thin:@127.0.0.1:1521:mine
>   
>   
>  username
>  hr
>   
>   
>  password
>  hr
>   
>   
>  maxActive
>  20
>   
>   
>  maxIdle
>  10
>   
>   
>  maxWait
>  -1
>   
>
> 
>
> *and the following in web.xml file:*
>
> 
>   Oracle Datasource example
>   jdbc/myoracledb
>   javax.sql.DataSource
>   Container
> 
>
> *and following is my JSP code:*
>
>
> <%@ page import="javax.sql.*, javax.naming.*, java.sql.*" %>
>
> <%
> Context initContext = new InitialContext(); Context envContext  = 
> (Context)initContext.lookup("java:/comp/env");
> DataSource ds = (DataSource)envContext.lookup("jdbc/myoracledb");
> Connection conn = ds.getConnection();
>
> out.println( "Connection Established" ); %>
>
> *When running the above jsp page, i got the following exception:*
>
> *org.apache.jasper.JasperException: javax.servlet.ServletException:
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
> driver of class '' for connect URL 'null'
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException
> (JspServletWra
> pper.java:532)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
> java
> :4
> 08)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
>
> Any Help Please, I am working to solving this problem from one week, I 
> am lost, what is the reason for this exception, any help will be 
> apprecieated
>
> Jotnarta
>
>
>
>
> --
>
> La Información incluida en el presente correo electrónico es SECRETO 
> PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del 
> destinatario arriba mencionado. Si usted lee este mensaje y no es el 
> destinatario señalado, el empleado o el agente responsable de entregar 
> el mensaje al destinatario, o ha recibido esta comunicación por error, 
> le informamos que esta totalmente prohibida cualquier divulgación, 
> distribución o reproducción de esta comunicación, y le rogamos que nos 
> lo notifique inmediatamente y nos devuelva el mensaje original a la 
> dirección arriba mencionada.
>
> Gracias.
>
> The information contained in this e-mail is LEGALLY PRIVILEDGED AND 
> CONFIDENTIAL and is intended only for the use of the addressee named 
> above. If the reader of this message is not the intended recipient or 
> the employee or agent responsible for delivering the message to the 
> intended recipient, or you have received this communication in error, 
> please be aware that any dissemination, distribution or duplication of 
> this communication is strictly prohibited, and please notify us 
> immediately and return the original message to us at the address above.
>
> Thank you.
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--

La Información incluida en el presente correo electrónico es SECRETO
PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del
destinatario arriba mencionado. Si usted lee este mensaje y no es el
destinatario señalado, el empleado o el agente responsable de entregar
el mensaje al destinatario, o ha recibido esta comunicación por error,
le informamos que esta totalmente prohibida cualquier divulgación,
distribución o reproducción de esta comunicación, y le rogamos que nos
lo notifique inmediatamente y nos devuelva el mensaje original 

error in catalina.out log

2007-05-24 Thread Jean-Pierre Astier

Hi all,

I've got this message in my catalina.out log.

I dont know how to resolve the problem.

Any idea ??

Thanks

Jean-Pierre Astier

23 mai 2007 12:51:39 org.apache.catalina.loader.WebappClassLoader  
loadClass
INFO: Illegal access: this web application instance has been stopped  
already.  Could not load com.mysql.jdbc.Messages.  The eventual  
following stack trace is caused by an error thrown for debugging  
purposes as well as to attempt to terminate the thread which caused  
the illegal access, and has no functional impact.

java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1241)
at org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1201)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
319)
at com.mysql.jdbc.CommunicationsException. 
(CommunicationsException.java:174)

at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run 
(Finalizer.java:160)



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

2007-05-24 Thread Mohammed Zabin

I am using tomcat 6, and another thing, i have changed my configuration
parameters to the following:







On 5/24/07, David Rodríguez Fernández <[EMAIL PROTECTED]> wrote:


What tomcat version do you have?

-Mensaje original-
De: Mohammed Zabin [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 24 de mayo de 2007 12:03
Para: users@tomcat.apache.org
Asunto: DBCP

*Hi All*
**
*I want to use DBCP to connect my localhost Oracle Database, I have write
the following in servlet.xml file:*



   
  
 factory
 org.apache.commons.dbcp.BasicDataSourceFactory
  
  
 driverClassName
 oracle.jdbc.OracleDriver
  
  
 url
 jdbc:oracle:thin:@127.0.0.1:1521:mine
  
  
 username
 hr
  
  
 password
 hr
  
  
 maxActive
 20
  
  
 maxIdle
 10
  
  
 maxWait
 -1
  
   


*and the following in web.xml file:*


  Oracle Datasource example
  jdbc/myoracledb
  javax.sql.DataSource
  Container


*and following is my JSP code:*


<%@ page import="javax.sql.*, javax.naming.*, java.sql.*" %>

<%
Context initContext = new InitialContext();
Context envContext  = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/myoracledb");
Connection conn = ds.getConnection();

out.println( "Connection Established" ); %>

*When running the above jsp page, i got the following exception:*

*org.apache.jasper.JasperException: javax.servlet.ServletException:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver
of
class '' for connect URL 'null'

org.apache.jasper.servlet.JspServletWrapper.handleJspException
(JspServletWra
pper.java:532)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:4
08)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*

Any Help Please, I am working to solving this problem from one week, I am
lost, what is the reason for this exception, any help will be apprecieated

Jotnarta




--

La Información incluida en el presente correo electrónico es SECRETO
PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del
destinatario arriba mencionado. Si usted lee este mensaje y no es el
destinatario señalado, el empleado o el agente responsable de entregar
el mensaje al destinatario, o ha recibido esta comunicación por error,
le informamos que esta totalmente prohibida cualquier divulgación,
distribución o reproducción de esta comunicación, y le rogamos que nos
lo notifique inmediatamente y nos devuelva el mensaje original a la
dirección arriba mencionada.

Gracias.

The information contained in this e-mail is LEGALLY PRIVILEDGED AND
CONFIDENTIAL and is intended only for the use of the addressee named
above. If the reader of this message is not the intended recipient or
the employee or agent responsible for delivering the message to the
intended recipient, or you have received this communication in error,
please be aware that any dissemination, distribution or duplication of
this communication is strictly prohibited, and please notify us
immediately and return the original message to us at the address above.

Thank you.



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




TOMCAT ISSUE: System.Exit

2007-05-24 Thread Johnny Kewl
I'm busy having a good look at Tomcats code...
When I find something, I will report it like this... the powers that be, can 
list it as a bug, an issue, a nice to have... whatever.
There is no need to report back... I'm not waiting for the changes... I'm 
making a modified Tomcat prototype called WildCat... so anyone interested can 
play with that.

TOMCAT ISSUE: System.exit(1)...

In Catalina ->  public void stopServer(String[] arguments)

} catch (IOException e) {
log.error("Catalina.stop: ", e);
//System.exit(1);  //MODIFIED
}

And in StandardServer -> public void await() 

} catch (IOException e) {
log.error("StandardServer.await: create[" + port  + "]: ", e);
//System.exit(1); //MODIFIED
}

In an embedded application, these System.exit(1) kill the entire application.
So for example if a user through an embedded application Starts or Stops tomcat 
twice, they don't see a trapped or redirected error in the application, because 
the application shuts down.
The log.error will appear in the Dos/Terminal err/out stream... but in a Java 
application, the user will not be looking at that... the application just 
disappears.  



Johnny Kewl 
  eMail: Johnkewlstuff.co.za  -- replace  with @ --
  Cell: +027-72- 473-9331
Java Developer (Tomcat Aficionado)
  Free Tomcat software at  http://coolese.100free.com/


RE: DBCP

2007-05-24 Thread David Rodríguez Fernández
What tomcat version do you have? 

-Mensaje original-
De: Mohammed Zabin [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 24 de mayo de 2007 12:03
Para: users@tomcat.apache.org
Asunto: DBCP

*Hi All*
**
*I want to use DBCP to connect my localhost Oracle Database, I have write
the following in servlet.xml file:*




   
  factory
  org.apache.commons.dbcp.BasicDataSourceFactory
   
   
  driverClassName
  oracle.jdbc.OracleDriver
   
   
  url
  jdbc:oracle:thin:@127.0.0.1:1521:mine
   
   
  username
  hr
   
   
  password
  hr
   
   
  maxActive
  20
   
   
  maxIdle
  10
   
   
  maxWait
  -1
   

  

*and the following in web.xml file:*


   Oracle Datasource example
   jdbc/myoracledb
   javax.sql.DataSource
   Container


*and following is my JSP code:*


<%@ page import="javax.sql.*, javax.naming.*, java.sql.*" %>

<%
  Context initContext = new InitialContext();
  Context envContext  = (Context)initContext.lookup("java:/comp/env");
  DataSource ds = (DataSource)envContext.lookup("jdbc/myoracledb");
  Connection conn = ds.getConnection();

  out.println( "Connection Established" ); %>

*When running the above jsp page, i got the following exception:*

*org.apache.jasper.JasperException: javax.servlet.ServletException:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
pper.java:532)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:4
08)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*

Any Help Please, I am working to solving this problem from one week, I am
lost, what is the reason for this exception, any help will be apprecieated

Jotnarta




--

La Información incluida en el presente correo electrónico es SECRETO
PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del
destinatario arriba mencionado. Si usted lee este mensaje y no es el
destinatario señalado, el empleado o el agente responsable de entregar
el mensaje al destinatario, o ha recibido esta comunicación por error,
le informamos que esta totalmente prohibida cualquier divulgación,
distribución o reproducción de esta comunicación, y le rogamos que nos
lo notifique inmediatamente y nos devuelva el mensaje original a la
dirección arriba mencionada.

Gracias.

The information contained in this e-mail is LEGALLY PRIVILEDGED AND
CONFIDENTIAL and is intended only for the use of the addressee named
above. If the reader of this message is not the intended recipient or
the employee or agent responsible for delivering the message to the
intended recipient, or you have received this communication in error,
please be aware that any dissemination, distribution or duplication of
this communication is strictly prohibited, and please notify us
immediately and return the original message to us at the address above.

Thank you.



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



Re: How to monitor Tomcat Server.

2007-05-24 Thread ben short

I would think that they have apache httpd running in font of tomcat
and the page is displayed by that.

On 5/24/07, Praveen Kumar <[EMAIL PROTECTED]> wrote:

Thanks for  your ans.

They  should  provide  some option  saying  send mail to  x before
shutdown.

That will be more helpful.

And one more  thing i have seen many  pages saying

Server is down  , sorry  
They will tell some time to  come  up  

right   , how they will  implement  this  ?

Is they are  providing some backup server for that  ?

What is  logic behind that  ?

Any help  ove  this  ?

Thanks
Praveen.







On 5/24/07, Pid <[EMAIL PROTECTED]> wrote:
>
> Praveen Kumar wrote:
> > Hi Raghu,
> >
> >
> > Right now i am using  this logic  only. it is working fine.
> >
> > Is  there any  another way  to monitor  tomcat server  ?
> >
> > I mean , Is  tomcat server  group  provides  any  feature to fulfil this
> > requirement  ?
> >
> > Any  help  ?
> >
> > Thanks
> > Praveen
>
> If you're asking whether Tomcat can send a message saying that it has
> shutdown, then no it can't - mostly because it's shutdown...
>
> There's no monitoring software provided with Tomcat.
>
>
>
> >
> > On 5/24/07, Raghupathy, Gurumoorthy <[EMAIL PROTECTED]>
> > wrote:
> >>
> >>
> http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html
> >>
> >>
> >> this works great :)
> >>
> >>
> >> -Original Message-
> >> From: Praveen Kumar [mailto:[EMAIL PROTECTED]
> >> Sent: 24 May 2007 07:14
> >> To: users@tomcat.apache.org
> >> Subject: How to monitor Tomcat Server.
> >>
> >> Hi All,
> >>
> >> I'm using Tomcat server for  my Project.
> >>
> >> Here, I  need to  send  mails to some mail aliases   regarding  tomcat
> >> server  status  i.e once it is  shutdown  , i need to  send
> mail  saying
> >> that  tomcat server is down etc  like that.
> >>
> >> I  hope that  Apache tomcat  group  itself  have some  options to
> >> monitor
> >> server  status.
> >>
> >> Is  there  any way  to monitor  tomcat server status  always.
> >>
> >> Pls  help  me in this regard. waiting  for valuble responses .
> >>
> >>
> >> Thanks
> >> Praveen Kumar.
> >>
> >> -
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
>
>


--
Thanks
Domma Raju Praveen Kumar.



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



  1   2   >