Re: FW: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Bob Hall
Karthik,

--- On Thu, 4/29/10 at 11:02 PM, Karthik Nanjangude 
 wrote:

> 
> This is in referral to one of the form topics raised some
> day's ago
> 
> For JVM  to restart Tomcat in 1 case  when
> OnOutOfMemoryError
> 
> was raised
> 
> URL http://marc.info/?l=tomcat-user&m=127119151302985&w=2
> 
> Refers  to -XX:OnOutOfMemoryError=" args>;"  for restart
> 
> 
> I wanted to make sure if any other cause for TOMCAT Crash
> been noticed.
> 
> 

Yes...

- Bob




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



FW: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Karthik Nanjangude

Hi

>> for General / Special cause under which TOMCAT Crash been noticed ?

This is in referral to one of the form topics raised some day's ago

For JVM  to restart Tomcat in 1 case  when OnOutOfMemoryError

was raised

URL http://marc.info/?l=tomcat-user&m=127119151302985&w=2

Refers  to -XX:OnOutOfMemoryError=";"  for restart


I wanted to make sure if any other cause for TOMCAT Crash been noticed.




With regards
karthik



-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Thursday, April 29, 2010 10:18 PM
To: Tomcat Users List
Subject: Re: General / Special cause under which TOMCAT Crash been noticed

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Karthik,

On 4/29/2010 4:19 AM, Karthik Nanjangude wrote:
> SPEC
>
> JDK1.5
> TOMCAT 6.0.26
> O/s : Windows 2000 ,Linux ( Red Hat ) / Unix ( HP )
>
> Question : Is there any list of cases , categories with Comparable
> Study for General / Special cause under which TOMCAT Crash been noticed ?

I've always noticed that Tomcat has crashed after Tomcat has crashed.

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

iEYEARECAAYFAkvZuCYACgkQ9CaO5/Lv0PByggCdG3hd6FBU4rHvPAJEMCyAs4TA
0uUAoJEMv0bXhrbIdTbh4cRGauHI+iZi
=k4bT
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to force session replication per request in a Tomcat 6 cluster

2010-04-29 Thread Kevin Jansz
Out of curiosity I tried the SimpleTcpReplicationManager with the
useDirtyFlag="false" and it definitely does not work

  

  

30/04/2010 10:12:37 AM org.apache.catalina.ha.tcp.SimpleTcpCluster createManager
SEVERE: Unable to clone cluster manager, defaulting to
org.apache.catalina.ha.session.DeltaManager
java.lang.UnsupportedOperationException
at 
org.apache.catalina.ha.session.SimpleTcpReplicationManager.cloneFromTemplate(SimpleTcpReplicationManager.java
:682)
at 
org.apache.catalina.ha.tcp.SimpleTcpCluster.createManager(SimpleTcpCluster.java:508)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4384)
...

SimpleTcpReplicationManager explicitly throws
UnsupportedOperationException. It's interesting that this has been
reported as bug before:
https://issues.apache.org/bugzilla/show_bug.cgi?id=45382
https://issues.apache.org/bugzilla/show_bug.cgi?id=45381
both marked as invalid, from what I gather because the DeltaManager
should be used ... but there's no manager option for if you wanted
forced replication.

I tried out the Valve approach as described by Jon. The changes
required were to ensure:
1. implement ClusterValve otherwise the Cluster will ignore it.
2. check the implementation of the session before casting
So this was the config I tried (calling the valve "ForceReplicationValve"):
  

  

It doesn't work as the sessions are instances of
org.apache.catalina.ha.session.DeltaSession if the DeltaManager is
used. org.apache.catalina.ha.session.ReplicatedSession is only the
implementation SimpleTcpReplicationManager but as mentioned above this
can't be used. So there's no way for a ClusterValve to tell the
manager that the session is "dirty" and needs replication.

Having just a Delta & Backup manager seems like a gap in the basic
clustering offering. It does seem like the only alternative is write
our own manager as Jon as done (based on SimpleTcpReplicationManager
which should probably be deprecated given the
UnsupportedOperationException). Perhaps this is a question for the dev
list?

cheers,
Kevin

--
Kevin Jansz
kevin.ja...@exari.com
Level 7, 10-16 Queen Street, Melbourne 3000 Australia
Tel +61 3 9621 2773 | Fax +61 3 9621 2776
Exari Systems
Boston | London | Melbourne | Munich
www.exari.com

Test drive our software online - www.exari.com/demo-trial.html
Read our blog on document assembly - blog.exari.com


On 29 April 2010 16:41, Kevin Jansz  wrote:
> that's brilliant, thank you ... I have a bit more confidence in trying
> this out if the custom code is so minimal. It does look like all we
> require & if it plugs into the default (delta?) manager from tomcat
> too that'd be great. I'll let you know how we get on ...
>
> I would be interested to know if anyone had comments from a more
> "philosophical" point of view - is it wrong/bad-practice to put
> mutable objects in the session?
>
> thanks again Jon.
>
> Regards,
> Kevin
>
> --
> Kevin Jansz
> kevin.ja...@exari.com
> Level 7, 10-16 Queen Street, Melbourne 3000 Australia
> Tel +61 3 9621 2773 | Fax +61 3 9621 2776
> Exari Systems
> Boston | London | Melbourne | Munich
> www.exari.com
>
>
> On 29 April 2010 01:36, Jon Brisbin  wrote:
>>
>>
>> On Apr 28, 2010, at 9:57 AM, Kevin Jansz wrote:
>>
>> > That is useful to know ... is the Valve in a state that it can be
>> > shared? Did you base any of the interaction with the manager/store on
>> > the SimpleTcpReplicationManager?
>>
>> I actually use my own, from-scratch session replication manager. It's still 
>> alpha, but it uses RabbitMQ to replicate sessions (I'm adding ZooKeeper into 
>> the mix right now, as well, to coordinate session updates). The Valve is 
>> responsible for calling a method I added to my Store called 
>> "replicateSession" after the request is processed. This sounds like it's 
>> similar in functionality to what you're after.
>>
>> I just perused the guts of SimpleTcpReplicationManager and it looks like you 
>> could force a replication event by setting isDirty to true in the Valve, 
>> after the request is processed (this is untested pseudo-code, BTW):
>>
>> public class ReplicationValve extends ValveBase {
>>
>>  protected static final String info = "ReplicationValve/1.0";
>>
>> �...@override
>>  public String getInfo() {
>>    return info;
>>  }
>>
>> �...@override
>>  public void invoke( Request request, Response response ) throws 
>> IOException, ServletException {
>>
>>    getNext().invoke( request, response );
>>
>>    Session session = null;
>>    try {
>>      session = request.getSessionInternal();
>>    } catch ( Throwable t ) {
>>      // IGNORED
>>    }
>>    if ( null != session ) {
>>      ((ReplicatedSession)session).setIsDirty(true);
>>    }
>>  }
>> }
>>
>> > I guess the dilemma for us is the
>> > org.apache.catalina.ha.session.SimpleTcpReplicationManager seems to
>> > have the functionality we require (ie from Tomcat 5.0) and there isn't
>> > anything much more we need above that. Ju

Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Len Popp
On Thu, Apr 29, 2010 at 18:02, Konstantin Kolinko
 wrote:
> Requiring to read documentation before running a product is "unfair" ?
>  All the files that you have to read first do contain that
> information.  Maybe we can adjust some wording and some headers to be
> more clear, though.

One good thing about proprietary software is that it lists the system
requirements on the outside of the box, instead of in the bottom of a
locked filing cabinet stuck in a disused lavatory with a sign on the
door saying "Beware of the Leopard." :)

On 4/29/2010 5:20 PM, André Warnier wrote:
> Suggestion : in the little table at the top of the "which version?"
> page, add a column with the minimum Java version required.

+1
-- 
Len

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Pid
On 29/04/2010 22:54, Christopher Schultz wrote:
> André,
> 
> On 4/29/2010 5:20 PM, André Warnier wrote:
>> Suggestion : in the little table at the top of the "which version?"
>> page, add a column with the minimum Java version required.
> 
> +1

see previous for my +1.

p

>> That seems to me the most "natural" place.
>> Putting it in a file which you get only after you have downloaded Tomcat
>> seems to me .. unfair.
> 
> +2



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





signature.asc
Description: OpenPGP digital signature


Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Konstantin Kolinko
2010/4/30 André Warnier :
> Konstantin Kolinko wrote:
>>
>> 2010/4/29 Christopher Schultz :
>>>
>>> I was just looking on the TC site to see what minimum Java version is
>>> required for TC 6. I just assumed that it would be there because,
>>> whenever that question is asked on the list, a snippy response usually
>>> follows it.
>>
>> I know of the following places where it is written:
>>
>> 1. README.html,
>> that is linked from the Download page, and that is also displayed when
>> you browse the download area,
>> http://tomcat.apache.org/download-60.cgi
>> -> "Please see the README"
>>
>> 2. RELEASE-NOTES.txt
>> that is linked from many places, including the above mentioned README,
>> the documentation, and also included in every download bundle.
>>
>> 3. RUNNING.txt
>> that is included into distributions as well.
>>
>> Anything else is needed?
>>
>

> Putting it in a file which you get only after you have downloaded Tomcat
> seems to me .. unfair.

All the above mentioned files are accessible online.

Maybe the "Please see the README file" phrase on the download page can
be tweaked a bit.

> unfair.

Requiring to read documentation before running a product is "unfair" ?
 All the files that you have to read first do contain that
information.  Maybe we can adjust some wording and some headers to be
more clear, though.


> On 4/29/2010 5:20 PM, André Warnier wrote:
> > Suggestion : in the little table at the top of the "which version?"
> > page, add a column with the minimum Java version required.
>
> +1
>

If anybody wants to provide a patch, the file is
/site/trunk/xdocs/whichversion.xml


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 4/29/2010 5:20 PM, André Warnier wrote:
> Suggestion : in the little table at the top of the "which version?"
> page, add a column with the minimum Java version required.

+1

> That seems to me the most "natural" place.
> Putting it in a file which you get only after you have downloaded Tomcat
> seems to me .. unfair.

+2

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

iEYEARECAAYFAkvaADAACgkQ9CaO5/Lv0PDIggCfdhZnxEJ3s22tIvSmlAB6u8JX
3oAAn0YkoAHFClsWhal0DF31nczOAReY
=xC5S
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6 error compiling JSPs with nested @include directives

2010-04-29 Thread Pid
On 29/04/2010 21:33, Konstantin Kolinko wrote:
> 2010/4/29 Nuno Faria :
>> Strange thing. This is a fresh install of a 6.0.26 and I had created
>> the example from scratch.
>> But I did as you suggested and cleaned my work folder and now it compiles!?
>>
>> The names I used where slightly different but I reverted to mine to
>> check it back.
>> I attached the files and every one with /subdir/*_nested* gave me a
>> compile error that it is now fixed.
>>
> I cannot reproduce the error with any pages in the examples.zip that
> you attached.
> 
> By the way, this list removes attachments, but sometimes they are
> visible -- probably when both the sender and the recipient use gmail.
> 
>> Then if i try the missing file
>> http://sites_empresa.lardocelar.com:8080/includes/site_parameters.jsp
>>
>> I get (from the first include in the file)
>>
>> org.apache.jasper.JasperException: /site_parameters.jsp(6,1) File (...)
> 
> Note that the above line should have mentioned
> "/includes/site_parameters.jsp", not "/site_parameters.jsp" as it
> does.
> 
> The correct way to call the included file will be
> http://sites_empresa.lardocelar.com:8080/contactos/includes/site_parameters.jsp
> 
> if contactos is your web application.
> 
> The paths in @include are relative to the web application and not to
> the site root.

@Nuno

I don't suppose you could post your server.xml & any applicable
context.xml (comments & passwords removed please) could you?


p


> Best regards,
> Konstantin Kolinko
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 




signature.asc
Description: OpenPGP digital signature


Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread André Warnier

Konstantin Kolinko wrote:

2010/4/29 Christopher Schultz :

I was just looking on the TC site to see what minimum Java version is
required for TC 6. I just assumed that it would be there because,
whenever that question is asked on the list, a snippy response usually
follows it.


I know of the following places where it is written:

1. README.html,
that is linked from the Download page, and that is also displayed when
you browse the download area,
http://tomcat.apache.org/download-60.cgi
-> "Please see the README"

2. RELEASE-NOTES.txt
that is linked from many places, including the above mentioned README,
the documentation, and also included in every download bundle.

3. RUNNING.txt
that is included into distributions as well.

Anything else is needed?



Suggestion : in the little table at the top of the "which version?" 
page, add a column with the minimum Java version required.


That seems to me the most "natural" place.
Putting it in a file which you get only after you have downloaded Tomcat 
seems to me .. unfair.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6 error compiling JSPs with nested @include directives

2010-04-29 Thread Konstantin Kolinko
2010/4/29 Nuno Faria :
> Strange thing. This is a fresh install of a 6.0.26 and I had created
> the example from scratch.
> But I did as you suggested and cleaned my work folder and now it compiles!?
>
> The names I used where slightly different but I reverted to mine to
> check it back.
> I attached the files and every one with /subdir/*_nested* gave me a
> compile error that it is now fixed.
>
I cannot reproduce the error with any pages in the examples.zip that
you attached.

By the way, this list removes attachments, but sometimes they are
visible -- probably when both the sender and the recipient use gmail.

> Then if i try the missing file
> http://sites_empresa.lardocelar.com:8080/includes/site_parameters.jsp
>
> I get (from the first include in the file)
>
> org.apache.jasper.JasperException: /site_parameters.jsp(6,1) File (...)

Note that the above line should have mentioned
"/includes/site_parameters.jsp", not "/site_parameters.jsp" as it
does.

The correct way to call the included file will be
http://sites_empresa.lardocelar.com:8080/contactos/includes/site_parameters.jsp

if contactos is your web application.

The paths in @include are relative to the web application and not to
the site root.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: should I serialize?

2010-04-29 Thread Caldarale, Charles R
> From: Yucca Nel [mailto:yucca...@live.co.za]
> Subject: should I serialize?
> 
> In my first appliaction that would like to go live, II would like to
> know if my webapp needs serialization as I plan to have everything in a
> single war an deployed on tomcat with hosting provider.

In a non-clustered environment, Tomcat will serialize only the HttpSession 
objects and whatever they have links to.  Just make sure that any attributes 
you add to a session are themselves serializable.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Konstantin Kolinko
2010/4/29 Christopher Schultz :
> I was just looking on the TC site to see what minimum Java version is
> required for TC 6. I just assumed that it would be there because,
> whenever that question is asked on the list, a snippy response usually
> follows it.

I know of the following places where it is written:

1. README.html,
that is linked from the Download page, and that is also displayed when
you browse the download area,
http://tomcat.apache.org/download-60.cgi
-> "Please see the README"

2. RELEASE-NOTES.txt
that is linked from many places, including the above mentioned README,
the documentation, and also included in every download bundle.

3. RUNNING.txt
that is included into distributions as well.

Anything else is needed?

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem with starting tomcat5

2010-04-29 Thread Caldarale, Charles R
> From: Petr Hracek [mailto:phrac...@gmail.com]
> Subject: Re: Problem with starting tomcat5
> 
> Could please explain me more detailly what do you mean with the
> sentence about servlets?

Just that having the configuration right is only part of insuring that your 
servlets will execute properly.  Most of that requires that you have done the 
programming part properly, in addition to the configuration.

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



should I serialize?

2010-04-29 Thread Yucca Nel
In my first appliaction that would like to go live, II would like to know if my 
webapp needs serialization as I plan to have everything in a single war an 
deployed on tomcat with hosting provider. This does not sound like a case where 
objects will be serialized there will however be a RDBMS.

Re: Problem with starting tomcat5

2010-04-29 Thread Petr Hracek
Could please explain me more detailly what do you mean with the sentence
about servlets?
I am user with tomcat and beginner with servlets

Thank you in advance
Best Regards
Petr Hracek


2010/4/29 Caldarale, Charles R 

> > From: Petr Hracek [mailto:phrac...@gmail.com]
> > Subject: Re: Problem with starting tomcat5
> >
> > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>
> Which says, among other things:
>
> "path
>
> "The value of this field must not be set except when statically defining a
> Context in server.xml, as it will be inferred from the filenames used for
> either the .xml context file or the docBase."
>
> > Will the servlets work when I will delete path from the context file?
>
> That depends on how well you coded the servlets.
>
>  - 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.
>
>


-- 
Best Regards / S pozdravem
Petr Hracek


RE: Adding or Mount a Sub-Context or Archive to a Path

2010-04-29 Thread Jon Kristensen
On Thu, 2010-04-29 at 10:49 -0500, Caldarale, Charles R wrote:
> > From: Jon Kristensen [mailto:i...@jonkristensen.com]
> > Subject: RE: Adding or Mount a Sub-Context or Archive to a Path
> > 
> > > > I'm forwarding all requests from Apache to Tomcat.
> > >
> > I have other pages requiring httpd.
> 
> Please reconcile the above two statements.

I meant to say that I'm forwarding all requests on this specific host to
Tomcat.

> > What if I want to deploy other sites to the server?
> 
> The term "sites" is not used with a servlet container environment.  Assuming 
> you are referring to having multiple  elements, used a different 
> appBase for each.  The doc is here:
> 
> http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
> 
>  - Chuck

I see! Thanks!

-- 
Jon Kristensen 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread David kerber

On 4/29/2010 1:05 PM, Gregor Schneider wrote:

Karthik,

AFAIK there is no study telling the likeliness of any web- /
application-server to crash.

If there wer such a study, you'd have to specify a 'lot' of possible
crash-scenarioes - startung at misbehaviour of admins, ddos, bad
webapps etc.

Make sure you have some solutions ready in case of DDoS, see that your
OS is stable and on a current patchlevel and scrutinize  the software
you're installing into Tomcat (aka Webapps) thoroughly - that's about
it.

If I did not understand your question correctly, you might want to rephrase it.


+1.  I don't know how to crash tomcat intentionally once it has started 
successfully, except for deleting or renaming files and folders it needs 
to run, which would require direct access to the server.  If there were 
a reliable way of crashing it remotely, I'm sure the developers would 
like to know, so it could be fixed...


D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Martin Gainty

it appears an "unknown entity" has distorted the space-time continuim

Martin Gainty 
__ 
standard caveats apply




> Date: Thu, 29 Apr 2010 17:57:42 +0100
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: General / Special cause under which  TOMCAT Crash  been noticed
> 
> On 29/04/2010 17:53, Caldarale, Charles R wrote:
> >> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> >> Subject: Re: General / Special cause under which TOMCAT Crash been
> >> noticed
> >>
> >> I've always noticed that Tomcat has crashed after Tomcat has crashed.
> > 
> > You mean you haven't installed the quantum tunneling listener yet?
> 
> I rely on Internet Telepathy(tm).
> 
> 
> p
> 
  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Re: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Gregor Schneider
Karthik,

AFAIK there is no study telling the likeliness of any web- /
application-server to crash.

If there wer such a study, you'd have to specify a 'lot' of possible
crash-scenarioes - startung at misbehaviour of admins, ddos, bad
webapps etc.

Make sure you have some solutions ready in case of DDoS, see that your
OS is stable and on a current patchlevel and scrutinize  the software
you're installing into Tomcat (aka Webapps) thoroughly - that's about
it.

If I did not understand your question correctly, you might want to rephrase it.

Rgds

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Pid
On 29/04/2010 17:53, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
>> Subject: Re: General / Special cause under which TOMCAT Crash been
>> noticed
>>
>> I've always noticed that Tomcat has crashed after Tomcat has crashed.
> 
> You mean you haven't installed the quantum tunneling listener yet?

I rely on Internet Telepathy(tm).


p



signature.asc
Description: OpenPGP digital signature


Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Pid
On 29/04/2010 17:46, Christopher Schultz wrote:
> All,
> 
> I was just looking on the TC site to see what minimum Java version is
> required for TC 6. I just assumed that it would be there because,
> whenever that question is asked on the list, a snippy response usually
> follows it.
> 
> It's kinda buried on the "migration" page. Anyone installing Tomcat from
> scratch is unlikely to go to the "migration" page. Actually, I was
> unable to find the minimum level (Java 1.5 for those interested) until I
> asked Google for:
> 
> "tomcat 6" (jdk or jre) site:http://tomcat.apache.org/
> 
> ...and my answer was the 6th-ranked page in the results.
> 
> Any chance this information could be easier to find? Perhaps, on the
> "Introduction" and/or "Setup" pages? Or, maybe a page called
> "Environmental Requirements" or something like that?

Perhaps in the table on the:

 http://tomcat.apache.org/whichversion.html

page.  (Top link, under downloads, in LHS nav).

Easy enough to tweak that page I guess.


p

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





signature.asc
Description: OpenPGP digital signature


RE: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: General / Special cause under which TOMCAT Crash been
> noticed
> 
> I've always noticed that Tomcat has crashed after Tomcat has crashed.

You mean you haven't installed the quantum tunneling listener yet?

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



RE: Tomcat 6 Java Version Requirements

2010-04-29 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: FAQ: Tomcat 6 Java Version Requirements
> 
> I was just looking on the TC site to see what minimum Java version is
> required for TC 6.

It's in the RUNNING.txt file in the download:

"Apache Tomcat 6.0 requires the Java 2 Standard Edition Runtime Environment 
(JRE) version 5.0 or later."

But I agree, having it up front on the web site would be helpful.

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



Re: General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Karthik,

On 4/29/2010 4:19 AM, Karthik Nanjangude wrote:
> SPEC
> 
> JDK1.5
> TOMCAT 6.0.26
> O/s : Windows 2000 ,Linux ( Red Hat ) / Unix ( HP )
> 
> Question : Is there any list of cases , categories with Comparable
> Study for General / Special cause under which TOMCAT Crash been noticed ?

I've always noticed that Tomcat has crashed after Tomcat has crashed.

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

iEYEARECAAYFAkvZuCYACgkQ9CaO5/Lv0PByggCdG3hd6FBU4rHvPAJEMCyAs4TA
0uUAoJEMv0bXhrbIdTbh4cRGauHI+iZi
=k4bT
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I was just looking on the TC site to see what minimum Java version is
required for TC 6. I just assumed that it would be there because,
whenever that question is asked on the list, a snippy response usually
follows it.

It's kinda buried on the "migration" page. Anyone installing Tomcat from
scratch is unlikely to go to the "migration" page. Actually, I was
unable to find the minimum level (Java 1.5 for those interested) until I
asked Google for:

"tomcat 6" (jdk or jre) site:http://tomcat.apache.org/

...and my answer was the 6th-ranked page in the results.

Any chance this information could be easier to find? Perhaps, on the
"Introduction" and/or "Setup" pages? Or, maybe a page called
"Environmental Requirements" or something like that?

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

iEYEARECAAYFAkvZt/EACgkQ9CaO5/Lv0PCDlgCeNN5XYesK/CnGKRJSZf9a8X7V
ypQAnj9XVexwQjUU0nNInSDp9e0hijpU
=TMbE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6 error compiling JSPs with nested @include directives

2010-04-29 Thread Nuno Faria
This email contained a .zip file attachment. Raytheon does not allow email 
attachments that are considered likely to contain malicious code. For your 
protection this attachment has been removed.

If this email is from an unknown source, please simply delete this email.

If this email was expected, and it is from a known sender, you may follow the 
below suggested instructions to obtain these types of attachments.

+ Instruct the sender to enclose the file(s) in a ".zip" compressed file, and 
rename the ".zip" compressed file with a different extension, such as, 
".rtnzip".  Password protecting the renamed ".zip" compressed file adds an 
additional layer of protection. When you receive the file, please rename it 
with the extension ".zip".

Additional instructions and options on how to receive these attachments can be 
found at:

http://security.it.ray.com/antivirus/extensions.html
http://security.it.ray.com/news/2007/zipfiles.html

Should you have any questions or difficulty with these instructions, please 
contact the Help Desk at 877.844.4712

---

Strange thing. This is a fresh install of a 6.0.26 and I had created
the example from scratch.
But I did as you suggested and cleaned my work folder and now it compiles!?

The names I used where slightly different but I reverted to mine to
check it back.
I attached the files and every one with /subdir/*_nested* gave me a
compile error that it is now fixed.

However my real projects still have the error.

For example when I access
http://sites_empresa.lardocelar.com:8080/contactos/

I get (from the first include in the index.jsp file)

org.apache.jasper.JasperException: /index.jsp(1,2) File
"/includes/site_parameters.jsp" not found

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)

org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:297)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:330)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:438)
org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1745)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)

org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

If I force the refresh I get

org.apache.jasper.JasperException: org.apache.jasper.JasperException:
Unable to load class for JSP

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

org.apache.jasper.JasperException: Unable to load class for JSP

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:623)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:621)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletW

Re: Tomcat 6 error compiling JSPs with nested @include directives

2010-04-29 Thread Pid
On 29/04/2010 15:56, Nuno Faria wrote:
> Hi.
> 
> I recently migrated SO from XP + Tomcat 5.5 to Windows 7 64-bit + Tomcat 
> 6.0.26
> around my webapps got a compile error only in certain JSPs.
> 
> Every JSP that have a @include directive to a JSP that has another
> @include directive in its coding throws an error.
> It is as if Nested @includes are not supported.
> 
> Simple trial goes as this:
> 
> Root
>  |
>  |_ index.jsp
>  |_ index_nested.jsp
>  |
>  |_ includes
>|
>|- i1.jsp
>|- i2.jsp
> 
> On index.jsp I have
> <%...@include file="/includes/i2.jsp"%>
> 
> On index_nested.jsp I have
> <%...@include file="/includes/i1.jsp"%>
> 
> On i1.jsp I have
> <%...@include file="/includes/i2.jsp"%>
> 
> On i2.jsp I have
> Hello World
> 
> index.jsp compiles juste fine.
> 
> index_nested.jsp throws
> org.apache.jasper.JasperException: /index_nested.jsp(1,2) File
> "/includes/i1.jsp" not found
>
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
>
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
>
> org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:297)
>
> org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:330)
>org.apache.jasper.compiler.Parser.parseDirective(Parser.java:438)
>org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1745)
>org.apache.jasper.compiler.Parser.parse(Parser.java:127)
>
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
>
> org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
>org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
>
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

The only difference there is the file names.  Are those the exact ones
you're using?

How is "index_nested.jsp" actually nested, (it isn't clear from the above)?


p

> I get this error with stand-alone Tomcat, without any connector to an
> Apache Web Server.
> 
> Thanx in advance
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 




signature.asc
Description: OpenPGP digital signature


RE: Adding or Mount a Sub-Context or Archive to a Path

2010-04-29 Thread Caldarale, Charles R
> From: Jon Kristensen [mailto:i...@jonkristensen.com]
> Subject: RE: Adding or Mount a Sub-Context or Archive to a Path
> 
> > > I'm forwarding all requests from Apache to Tomcat.
> >
> I have other pages requiring httpd.

Please reconcile the above two statements.

> What if I want to deploy other sites to the server?

The term "sites" is not used with a servlet container environment.  Assuming 
you are referring to having multiple  elements, used a different appBase 
for each.  The doc is here:

http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

 - Chuck


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



RE: Adding or Mount a Sub-Context or Archive to a Path

2010-04-29 Thread Jon Kristensen
On Thu, 2010-04-29 at 09:30 -0500, Caldarale, Charles R wrote:
> > From: Jon Kristensen [mailto:i...@jonkristensen.com]
> > Subject: Adding or Mount a Sub-Context or Archive to a Path
> > 
> > I'm using Apache 2.2.9, Tomcat 6.0.26, and mod_jk. I'm forwarding all
> > requests from Apache to Tomcat.
> 
> Then why are you bothering with httpd?  Remove it and simplify your life (and 
> improve performance).

I have other pages requiring httpd.

> >  
> Putting  elements in server.xml is a really, really bad idea.  The 
> above is guaranteed to give you double deployment.  Best to just remove the 
>  element, and rename your .war file to ROOT.war.

What if I want to deploy other sites to the server?

> > Now, I want to be able to attach (static) content from a WAR, or even
> > better, a ZIP file, to a subdirectory, like http://jon3d.org/WebStart.
> 
> Then put the static content in webapps/WebStart.war; no  element is 
> needed.  You cannot use the .zip name, but you can just change the extension 
> of the .zip file to .war (they're the same format).

That works, thanks!

>  - 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.
-- 
Jon Kristensen 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk Apache2-->Tomcat6

2010-04-29 Thread g f
Well thats embarrassing.
Thanks alot!

On Thu, Apr 29, 2010 at 10:28 AM, Paolo Santarsiero <
paolo.santarsi...@gmail.com> wrote:

> JkUnMount /*.html
> Where is the worker or load balancer? Should be something like this:
> JkUnMount /*.html worker1
>
> On 29 April 2010 17:23, g f  wrote:
>
> > Hello all,
> > I am not entirely sure this is the correct list to post mod_jk questions
> > however the link from mod_jk did point to the the tomcat users list.
> >
> > I am running a debian lenny box with:
> >
> > Apache2 Version: 2.2.9-10+lenny2
> > Tomcat6 Version: 6.0.24-4
> > mod_jkVersion: 1:1.2.28-2
> >
> > I am able to get everything working in that I can forward all requests to
> > Tomcat through apache.
> > I am attempting to use JkUnMount but when I add that to my config Apache
> > will not start with the following error:
> >
> > Starting web server: apache2Syntax error on line 12 of
> > /etc/apache2/sites-enabled/000-default:
> > *JkUnMount needs a path when not defined in a location*
> > *Action 'start' failed.*
> > *The Apache error log may have more information.*
> > * failed!*
> >
> > The logs do not even get created.
> > I have searched google for this error to no avail.
> > The README.gzip does mention JkUnMount so I believe this deb package does
> > support this feature.
> >
> > From what I understand from the docs I can set up mod_jk to allow apache
> to
> > serve up all static content *out* of $CATALINA_HOME/webapps and allow
> > Tomcat
> > to serve up the rest (servlets and jsps)
> > Do I understand correctly?
> >
> > Here is s snippet of my config(000-default)[the debian way]:
> > 
> > ServerAdmin webmas...@localhost
> > # DocumentRoot /var/www
> > DocumentRoot /apps/apache2/www
> > #**mod_jk_directives
> > JkAutoAlias /var/lib/tomcat6/webapps
> > JkMount / ajp13_worker
> > JkMount /* ajp13_worker
> > JkUnMount /*.html
> >
> > # Some other things I have tried (commented out).
> > # 
> > # Options Indexes FollowSymLinks MultiViews
> > # AllowOverride None
> > # Order allow,deny
> > # Allow from all
> > # 
> > # Alias /test/ "/var/lib/tomcat6/webapps/test/"
> > # 
> > # AllowOverride None
> > # Order allow,deny
> > # Deny from all
> > # 
> > # JkMount /* ajp13_worker
> > # JkMount /test/* ajp13_worker
> > # JkUnMount /*.html
> > #   End mod_jk
> > 
> > Options FollowSymLinks
> > AllowOverride None
> > 
> > 
> > Options Indexes FollowSymLinks MultiViews
> > AllowOverride None
> > Order allow,deny
> > allow from all
> > 
> > 
> >
> >
> > Here is a snippet from the mod_jk page
> >
> >  # Static files in the examples webapp are served by apache
> >  Alias /examples /vat/tomcat3/webapps/examples
> >  # All requests go to worker1 by default
> >  JkMount /* worker1
> >  # Serve html, jpg and gif using httpd
> >  JkUnMount /*.html worker1
> >  JkUnMount /*.jpg  worker1
> >  JkUnMount /*.gif  worker1
> >
> >
> > Thanks in advance!
> >
> > G
> >
>


Re: mod_jk Apache2-->Tomcat6

2010-04-29 Thread Paolo Santarsiero
JkUnMount /*.html
Where is the worker or load balancer? Should be something like this:
JkUnMount /*.html worker1

On 29 April 2010 17:23, g f  wrote:

> Hello all,
> I am not entirely sure this is the correct list to post mod_jk questions
> however the link from mod_jk did point to the the tomcat users list.
>
> I am running a debian lenny box with:
>
> Apache2 Version: 2.2.9-10+lenny2
> Tomcat6 Version: 6.0.24-4
> mod_jkVersion: 1:1.2.28-2
>
> I am able to get everything working in that I can forward all requests to
> Tomcat through apache.
> I am attempting to use JkUnMount but when I add that to my config Apache
> will not start with the following error:
>
> Starting web server: apache2Syntax error on line 12 of
> /etc/apache2/sites-enabled/000-default:
> *JkUnMount needs a path when not defined in a location*
> *Action 'start' failed.*
> *The Apache error log may have more information.*
> * failed!*
>
> The logs do not even get created.
> I have searched google for this error to no avail.
> The README.gzip does mention JkUnMount so I believe this deb package does
> support this feature.
>
> From what I understand from the docs I can set up mod_jk to allow apache to
> serve up all static content *out* of $CATALINA_HOME/webapps and allow
> Tomcat
> to serve up the rest (servlets and jsps)
> Do I understand correctly?
>
> Here is s snippet of my config(000-default)[the debian way]:
> 
> ServerAdmin webmas...@localhost
> # DocumentRoot /var/www
> DocumentRoot /apps/apache2/www
> #**mod_jk_directives
> JkAutoAlias /var/lib/tomcat6/webapps
> JkMount / ajp13_worker
> JkMount /* ajp13_worker
> JkUnMount /*.html
>
> # Some other things I have tried (commented out).
> # 
> # Options Indexes FollowSymLinks MultiViews
> # AllowOverride None
> # Order allow,deny
> # Allow from all
> # 
> # Alias /test/ "/var/lib/tomcat6/webapps/test/"
> # 
> # AllowOverride None
> # Order allow,deny
> # Deny from all
> # 
> # JkMount /* ajp13_worker
> # JkMount /test/* ajp13_worker
> # JkUnMount /*.html
> #   End mod_jk
> 
> Options FollowSymLinks
> AllowOverride None
> 
> 
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> 
> 
>
>
> Here is a snippet from the mod_jk page
>
>  # Static files in the examples webapp are served by apache
>  Alias /examples /vat/tomcat3/webapps/examples
>  # All requests go to worker1 by default
>  JkMount /* worker1
>  # Serve html, jpg and gif using httpd
>  JkUnMount /*.html worker1
>  JkUnMount /*.jpg  worker1
>  JkUnMount /*.gif  worker1
>
>
> Thanks in advance!
>
> G
>


mod_jk Apache2-->Tomcat6

2010-04-29 Thread g f
Hello all,
I am not entirely sure this is the correct list to post mod_jk questions
however the link from mod_jk did point to the the tomcat users list.

I am running a debian lenny box with:

Apache2 Version: 2.2.9-10+lenny2
Tomcat6 Version: 6.0.24-4
mod_jkVersion: 1:1.2.28-2

I am able to get everything working in that I can forward all requests to
Tomcat through apache.
I am attempting to use JkUnMount but when I add that to my config Apache
will not start with the following error:

Starting web server: apache2Syntax error on line 12 of
/etc/apache2/sites-enabled/000-default:
*JkUnMount needs a path when not defined in a location*
*Action 'start' failed.*
*The Apache error log may have more information.*
* failed!*

The logs do not even get created.
I have searched google for this error to no avail.
The README.gzip does mention JkUnMount so I believe this deb package does
support this feature.

>From what I understand from the docs I can set up mod_jk to allow apache to
serve up all static content *out* of $CATALINA_HOME/webapps and allow Tomcat
to serve up the rest (servlets and jsps)
Do I understand correctly?

Here is s snippet of my config(000-default)[the debian way]:

ServerAdmin webmas...@localhost
# DocumentRoot /var/www
DocumentRoot /apps/apache2/www
#**mod_jk_directives
JkAutoAlias /var/lib/tomcat6/webapps
JkMount / ajp13_worker
JkMount /* ajp13_worker
JkUnMount /*.html

# Some other things I have tried (commented out).
# 
# Options Indexes FollowSymLinks MultiViews
# AllowOverride None
# Order allow,deny
# Allow from all
# 
# Alias /test/ "/var/lib/tomcat6/webapps/test/"
# 
# AllowOverride None
# Order allow,deny
# Deny from all
# 
# JkMount /* ajp13_worker
# JkMount /test/* ajp13_worker
# JkUnMount /*.html
#   End mod_jk

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all




Here is a snippet from the mod_jk page

  # Static files in the examples webapp are served by apache
  Alias /examples /vat/tomcat3/webapps/examples
  # All requests go to worker1 by default
  JkMount /* worker1
  # Serve html, jpg and gif using httpd
  JkUnMount /*.html worker1
  JkUnMount /*.jpg  worker1
  JkUnMount /*.gif  worker1


Thanks in advance!

G


Re: Tomcat 6 error compiling JSPs with nested @include directives

2010-04-29 Thread Konstantin Kolinko
2010/4/29 Nuno Faria :
> I recently migrated SO from XP + Tomcat 5.5 to Windows 7 64-bit + Tomcat 
> 6.0.26
> around my webapps got a compile error only in certain JSPs.
>

There were bugs with includes about 6 month ago, like BZ 47318 [1],
but all those should already be fixed in 6.0.24 and 6.0.26.  I tried
your example and it works for me in 6.0.26.

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=47318

Make sure, that it is 6.0.26 that you are using, and remove all files
from /work folder that might be there from previous versions.

If the error is still reproducible, please open a bug and attach a
simple war file that would reproduce the problem.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 6 error compiling JSPs with nested @include directives

2010-04-29 Thread Nuno Faria
Hi.

I recently migrated SO from XP + Tomcat 5.5 to Windows 7 64-bit + Tomcat 6.0.26
around my webapps got a compile error only in certain JSPs.

Every JSP that have a @include directive to a JSP that has another
@include directive in its coding throws an error.
It is as if Nested @includes are not supported.

Simple trial goes as this:

Root
 |
 |_ index.jsp
 |_ index_nested.jsp
 |
 |_ includes
       |
       |- i1.jsp
       |- i2.jsp

On index.jsp I have
<%...@include file="/includes/i2.jsp"%>

On index_nested.jsp I have
<%...@include file="/includes/i1.jsp"%>

On i1.jsp I have
<%...@include file="/includes/i2.jsp"%>

On i2.jsp I have
Hello World

index.jsp compiles juste fine.

index_nested.jsp throws
org.apache.jasper.JasperException: /index_nested.jsp(1,2) File
"/includes/i1.jsp" not found
       
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
       
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
       
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
       
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:297)
       org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:330)
       org.apache.jasper.compiler.Parser.parseDirective(Parser.java:438)
       org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1745)
       org.apache.jasper.compiler.Parser.parse(Parser.java:127)
       
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
       
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
       org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
       
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
       
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


I get this error with stand-alone Tomcat, without any connector to an
Apache Web Server.

Thanx in advance

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Adding or Mount a Sub-Context or Archive to a Path

2010-04-29 Thread Caldarale, Charles R
> From: Jon Kristensen [mailto:i...@jonkristensen.com]
> Subject: Adding or Mount a Sub-Context or Archive to a Path
> 
> I'm using Apache 2.2.9, Tomcat 6.0.26, and mod_jk. I'm forwarding all
> requests from Apache to Tomcat.

Then why are you bothering with httpd?  Remove it and simplify your life (and 
improve performance).

>  elements in server.xml is a really, really bad idea.  The 
above is guaranteed to give you double deployment.  Best to just remove the 
 element, and rename your .war file to ROOT.war.

> Now, I want to be able to attach (static) content from a WAR, or even
> better, a ZIP file, to a subdirectory, like http://jon3d.org/WebStart.

Then put the static content in webapps/WebStart.war; no  element is 
needed.  You cannot use the .zip name, but you can just change the extension of 
the .zip file to .war (they're the same format).

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



Adding or Mount a Sub-Context or Archive to a Path

2010-04-29 Thread Jon Kristensen
Hello people!

I'm using Apache 2.2.9, Tomcat 6.0.26, and mod_jk. I'm forwarding all
requests from Apache to Tomcat. My Tomcat configuration looks like this:



www.jon3d.org


Now, I want to be able to attach (static) content from a WAR, or even
better, a ZIP file, to a subdirectory, like http://jon3d.org/WebStart. I
would prefer not to have to extract the war file for ease of deployment
and to not having to redo anything when deploying a new site WAR file. I
want to be able to mount a variable amount of such archives to different
directories.

I've been looking at haveing context configuration files within the
archive but I don't want the main project to be aware of these mounts
(as they must be able to change over time without redeployment) and
since a mount should not be aware of other mounts.

Let me know if I should clarify something!

Thanks!

Warm Regards,
Jon Kristensen



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem with starting tomcat5

2010-04-29 Thread Caldarale, Charles R
> From: Petr Hracek [mailto:phrac...@gmail.com]
> Subject: Re: Problem with starting tomcat5
> 
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Which says, among other things:

"path

"The value of this field must not be set except when statically defining a 
Context in server.xml, as it will be inferred from the filenames used for 
either the .xml context file or the docBase."

> Will the servlets work when I will delete path from the context file?

That depends on how well you coded the servlets.

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



What's the significance of antiResourceLocking & antiJARLocking

2010-04-29 Thread govind naroji
Hi,

I am working on a project where we'll be using Tomcat 6.0.20 for Development
and production.

I came across some issues related to hot deployment which requires one to
set Context.antiResourceLocking to false in server.xml. I had some questions
on antiResourceLocking and antiJARLocking.

I have gone through the reference at
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html.
What I can't understand is what exactly do you mean by a JAR getting locked
or a resource getting locked. What I have read so far is that the locking
problem usually comes when you are undeploying an application which fails
due to a process having a lock on the file/jar. Can someone please point me
to anything where I can read more on this issue?

My questions are:
1) If I set antiJARLocking and/or antiResourceLocking to false what are the
problems that I can get? Can some one please provide an example?
2) Is it a bad practice to set these attributes to false in a production
environment?
2) Is it true that locking won't occur on a Linux box as frequently as it
can happen on a Windows box?

Appreciate your help.

Thank you.
Govind Naroji


Re: Problem with starting tomcat5

2010-04-29 Thread Petr Hracek
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
I will delete them.
Will the servlets work when I will delete path from the context file?

Best Regards
Petr

2010/4/29 Caldarale, Charles R 

> > From: Petr Hracek [mailto:phrac...@gmail.com]
> > Subject: Re: Problem with starting tomcat5
> >
> > in the RepGen.xml file is:
> > 
> > 
>
> Take out the path attribute; it's not allowed here.
>
> > When I am calling URL: /RepGen/servlet/ReportRenderer
> > then HTML page is shown correctly.
>
> Then why did you say earlier that it's not working?
>
> Is there actually a problem 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.
>
>


-- 
Best Regards / S pozdravem
Petr Hracek


RE: logging in multiple tomcat web applications

2010-04-29 Thread Caldarale, Charles R
> From: Jamie [mailto:ja...@stimulussoft.com]
> Subject: Re: logging in multiple tomcat web applications
> 
> I tried the catalina.base variable but as far as i can see it puts it
> in Tomcat home dir not the webapp dir!

As stated before, writing logs to a webapp's directory is *always* a really bad 
idea.  Put them in a reasonable location.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Debugging PermGen problems

2010-04-29 Thread Ognjen Blagojevic

Caldarale, Charles R wrote:

From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs]
Subject: Debugging PermGen problems

Environment: Tomcat 6.0.14, Windows XP SP2.


Before doing *anything* else, move up to the current level (6.0.26).  Besides 
having numerous stability and security fixes beyond your nearly three-year old 
version, it has several enhancements to catch and work around these memory 
leakers.  It's pointless to continue experimentation with 6.0.14.


Thank you for hint. We upgraded to 6.0.26, and DriverManager problems 
are now gone.


A bit of research of the other GC root paths revealed that one culprit 
is jsf-impl jar, so we upgraded from mojarra 1.2_08 to latest 1.2_14 and 
solved part of the problem with PropertyEditorManager.


Now, it seems that there is no more problematic static references, but 
few threadLocal references are still there. Those seems to be related to 
JasperReports 2.0.5 library. From the root paths attached below, I guess 
that the thread "http-8443-6" holds reference to the class loaded by 
webapp class loader, and therefore it is not possible to GC that webapp 
class loader.


If my assumption is correct, next thing we need to find is how to 
inspect and clean up thread local after JasperReport servlet finished 
his work. Right?


Regards,
Ognjen

Paths from "GC Roots" to "Object WebappClassLoader #04068C80"

+---+-++
|   Name 
|  Retained Size  |  Shallow Size  |

+---+-++
|  +---org.apache.catalina.loader.WebappClassLoader 
|  8,109,432  |   168  |
|| 
| ||
|+--- of net.sf.jasperreports.engine.util.JRClassLoader 
| 64  |64  |
|| | 
| ||
|| +--- of net.sf.jasperreports.engine.util.JRClassLoader 
|632  |56  |
||   | 
| ||
||   +--- of 
stu_zavrsni_rad_prijava_detail_1269596557540_786829| 
696  |64  |
|| | 
| ||
|| +---value of java.lang.ThreadLocal$ThreadLocalMap$Entry 
|728  |32  |
||   | 
| ||
||   +---[52] of java.lang.ThreadLocal$ThreadLocalMap$Entry[64] 
|  5,776  |   272  |
|| | 
| ||
|| +---table of java.lang.ThreadLocal$ThreadLocalMap 
|  5,800  |24  |
||   | 
| ||
||   +---threadLocals of java.lang.Thread [Stack Local, 
Thread]  "http-8443-6"  |  6,088  |   104  |
|| 
| ||
|+---classloader of java.security.ProtectionDomain 
|920  |32  |
|| | 
| ||
|| +--- of 
stu_zavrsni_rad_prijava_detail_1269596557540_786829   | 
696  |64  |
||   | 
| ||
||   +---value of java.lang.ThreadLocal$ThreadLocalMap$Entry 
|728  |32  |
|| | 
| ||
|| +---[52] of java.lang.ThreadLocal$ThreadLocalMap$Entry[64] 
|  5,776  |   272  |
||   | 
| ||
||   +---table of java.lang.ThreadLocal$ThreadLocalMap 
|  5,800  |24  |
|| | 
| ||
|| +---threadLocals of java.lang.Thread [Stack Local, 
Thread]  "http-8443-6"|  6,088  |   104  |
|| 
| ||
|+---contextClassLoader of java.lang.Thread [Stack Local, Thread] 
"Java2D Disposer"|320  |   104  |
|| 
| ||
|+---parent of net.sf.jasperreports.engine.util.JRClassLoader 
|632  |56  |
|  | 
| ||
|  +--- of 
stu_zavrsni_rad_prijava_detail_1269596557540_786829  | 
  696  |64  |
|| 
| ||
|   

Re: logging in multiple tomcat web applications

2010-04-29 Thread Jamie
I tried the catalina.base variable but as far as i can see it puts it in 
Tomcat home dir not the webapp dir!


On 2010/04/29 12:34 PM, Pid wrote:

On 29/04/2010 11:27, Jamie wrote:
   

Hi There

We use multiple web applications running inside Tomcat and need a
painless way for each app to write to its own log file.

In our scenario, each web application has its own log4j.xml file and the
corresponding log file for each instance is stored in a unique location
for that application, namely:

WEBAPP/WEB-INF/logs
 

You're writing logs *inside* the webapp?  Yikes!


   

(so that each web application has its own log information)

Our log4j.xml file has an appender that looks as follows:



 

There are other variables you can use, e.g.

  

${catalina.home} will also work.


p

   








You'll notice above, we refer to the system property {$ROOT} in the
log4j.xml file. This Java system variable
is set when the web application is first initialized.  The variable
during startup as follows:

public class AppServletContext implements ServletContextListener{
 ServletContext context;

 public void contextInitialized(ServletContextEvent event) {
 ServletContext context = event.getServletContext();
 String path = context.getRealPath(File.separator);
 if (path.endsWith(File.separator))
 path = path.substring(0,path.length()-1);
 int i = path.lastIndexOf(File.separator);
 String name = path.substring(i+1,path.length());
 System.setProperty(name,path);
 }

 public void contextDestroyed(ServletContextEvent event ) {
 }
}

The effect of the above is to set a Java System Property with the name
of the instance (e.g. ROOT) and value of the context path on startup. In
this way, we are able to refer to the context path, from within the
log4j.xml file. Thus, if the name of the web application being loaded is
appname... then the Java system system variable APPNAME will be set, and
we would create a log4j.xml with the variable ${APPNAME} to refer to the
application path.

While this approach does work, it requires  us to update the log4j.xml
for each instance. We need to change ${ROOT} to ${webappname}. This is a
pain when there are alot of web applications and each of their log4j.xml
files need to be updated. Are there any other ideas on how to  refer to
the current Tomcat web application  path from with the log4j.xml without
having to customize a log4j.xml file for each web application. I need a
simpler more generic way, such as
. Perhaps, there is
a simpler way that I missed.

Thanks in advance for your consideration

Jamie



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

 


   



--
Stimulus Software - MailArchiva
Email Discovery, Archiving And Compliance
USA Tel: +1-713-343-8824 ext 100
UK Tel: +44-20-80991035 ext 100
FAX: +1-(877)-350-2328
Email: ja...@stimulussoft.com 
Web: www.mailarchiva.com 

Click here  to receive 
MailArchiva product announcements.


RE: Problem with starting tomcat5

2010-04-29 Thread Caldarale, Charles R
> From: Petr Hracek [mailto:phrac...@gmail.com]
> Subject: Re: Problem with starting tomcat5
> 
> in the RepGen.xml file is:
> 
> 

Take out the path attribute; it's not allowed here.

> When I am calling URL: /RepGen/servlet/ReportRenderer
> then HTML page is shown correctly.

Then why did you say earlier that it's not working?

Is there actually a problem 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.



RE: logging in multiple tomcat web applications

2010-04-29 Thread Karthik Nanjangude
Hi

My suggestion would be to point the logger (log4j.xml) to place the logs in

"Tomcat / logs / abclog / folder"

This would be safe and not be visible or it is readable by the world



With regards
karthik


-Original Message-
From: Jamie [mailto:ja...@stimulussoft.com]
Sent: Thursday, April 29, 2010 5:20 PM
To: Tomcat Users List
Subject: Re: logging in multiple tomcat web applications

If we do that, then it will be sitting in the webapp directory where if
permissions are not set correctly, it is readable by the world.

On 2010/04/29 01:47 PM, David kerber wrote:
> Just move the log folder up a level.
>
>
> On 4/29/2010 7:04 AM, Jamie wrote:
>> Ok. We are not using Tomcat's web app deploy feature at all. We manage
>> the deployment of instances. Where then should all the configuration and
>> log data go? I presume with Windows 7, they have protections storing the
>> data in the Program Files directory in any case. Should they go in


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to configure ProxyPassReverse for SSL redirect

2010-04-29 Thread Timo Meinen
Hi,

Nick Kew from the httpd-users list pointed me to the final solution:

The problem is, that the redirect is initiated through the Location
header, which can be rewrited with mod_headers:

Header edit Location ^([^/]*//[^/]*)?/spike/(.*)$ $1/$2


I think, mod_proxy should rewrite this header, too, like any other
header it rewrites. Is it a bug or am I missing something?

Timo

2010/4/28 Mark Thomas :
> On 27/04/2010 04:25, Timo Meinen wrote:
>>
>> Is someone out there, who can explain me, what the problem is?
>
> It looks like a bug in mod_proxy_ajp. Check you are using the latest httpd
> release (2.2.15) and if you still see the problem, open a bug. Note:
> mod_proxy_ajp is maintained by the httpd project.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Httpd Configuration Clarification

2010-04-29 Thread David Smith
Adjust your script to check http://hostname:443/...  An SSL cert is tied
to a hostname and will probably fail due to certificate issues if you
attempt to access via localhost.  Some http script libraries can be
rather draconian on this issue.

--David

On 4/29/2010 3:35 AM, Anisha Parveen wrote:
> Thank you for the response. That was a type error.
>  
> https://hostname:443/cns/ser/CTConfigService
> On Thu, Apr 29, 2010 at 12:54 PM, Pid  wrote:
>
>   
>> On 29/04/2010 07:24, Anisha Parveen -X (anparvee - Infosys at Cisco) wrote:
>> 
>>> Hi,
>>>
>>> I am facing a problem with my configuration. Problem basically is that I
>>> am able to access the WebServices URL
>>> Say http://hostname:443/cns/ser/CTConfigService through the browser.
>>>   
>> Your SSL config is probably broken, if you're using port 443 without https.
>>
>> 
>>> However, the script running on the machine checks an url
>>> https://localhost:443/cns/ser/CTConfigService
>>>   
>> .
>> 
>>> The webservice url is not accessible through localhost from the same
>>> box.
>>>
>>> I have attached my httpd.conf and mod_jk.conf-cns files.
>>>   
>> The list often strips attachments.
>>
>> 
>>> Kindly let me know what changes need to be done, such that the URL is
>>> accessible through localhost from the same machine
>>> And through hostname from the browser in other machines.
>>>
>>> Any pointers or tutorials on configuration would be hihgly useful.
>>>   
>> There's no clue that this is a Tomcat related question, perhaps you're
>> in the wrong place.
>>
>> If you're looking for the Apache HTTPD users list, it's here:
>>
>>  http://httpd.apache.org/lists.html
>>
>>
>> p
>>
>>
>> 
>>> Thanks in advance,
>>> Anisha
>>>
>>>   
>>
>>
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: logging in multiple tomcat web applications

2010-04-29 Thread Jamie
If we do that, then it will be sitting in the webapp directory where if 
permissions are not set correctly, it is readable by the world.


On 2010/04/29 01:47 PM, David kerber wrote:

Just move the log folder up a level.


On 4/29/2010 7:04 AM, Jamie wrote:

Ok. We are not using Tomcat's web app deploy feature at all. We manage
the deployment of instances. Where then should all the configuration and
log data go? I presume with Windows 7, they have protections storing the
data in the Program Files directory in any case. Should they go in



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: logging in multiple tomcat web applications

2010-04-29 Thread David kerber

Just move the log folder up a level.


On 4/29/2010 7:04 AM, Jamie wrote:

Ok. We are not using Tomcat's web app deploy feature at all. We manage
the deployment of instances. Where then should all the configuration and
log data go? I presume with Windows 7, they have protections storing the
data in the Program Files directory in any case. Should they go in
user.home?

On 2010/04/29 12:57 PM, Mark Thomas wrote:

On 29/04/2010 05:45, Jamie wrote:


Aah.. Just what I was looking for.. Thanks! Is it bad to write logs
inside WEB-INF?


Generally, yes. When the application gets (un|re)deployed, the logs
will get deleted. That isn't usually what you want.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: logging in multiple tomcat web applications

2010-04-29 Thread Jamie
Ok. We are not using Tomcat's web app deploy feature at all. We manage 
the deployment of instances. Where then should all the configuration and 
log data go? I presume with Windows 7, they have protections storing the 
data in the Program Files directory in any case. Should they go in 
user.home?


On 2010/04/29 12:57 PM, Mark Thomas wrote:

On 29/04/2010 05:45, Jamie wrote:


Aah.. Just what I was looking for.. Thanks! Is it bad to write logs
inside WEB-INF?


Generally, yes. When the application gets (un|re)deployed, the logs 
will get deleted. That isn't usually what you want.


Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




--
Stimulus Software - MailArchiva
Email Discovery, Archiving And Compliance
USA Tel: +1-713-343-8824 ext 100
UK Tel: +44-20-80991035 ext 100
FAX: +1-(877)-350-2328
Email: ja...@stimulussoft.com 
Web: www.mailarchiva.com 

Click here  to receive 
MailArchiva product announcements.


Re: logging in multiple tomcat web applications

2010-04-29 Thread Mark Thomas

On 29/04/2010 05:45, Jamie wrote:


Aah.. Just what I was looking for.. Thanks! Is it bad to write logs
inside WEB-INF?


Generally, yes. When the application gets (un|re)deployed, the logs will 
get deleted. That isn't usually what you want.


Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: logging in multiple tomcat web applications

2010-04-29 Thread Pid
On 29/04/2010 11:45, Jamie wrote:
> 
> Aah.. Just what I was looking for.. Thanks! Is it bad to write logs
> inside WEB-INF?

Writing anything inside a deployed webapp isn't such a good idea.
If it's undeployed, then *paf* all your content is gone.

If the app got undeployed because of a problem (somehow, may be
unlikely, but hey) then you'd lose the log files and any ability to work
out what happened.


p

> Jamie
> On 2010/04/29 12:34 PM, Pid wrote:
>> On 29/04/2010 11:27, Jamie wrote:
>>   
>>> Hi There
>>>
>>> We use multiple web applications running inside Tomcat and need a
>>> painless way for each app to write to its own log file.
>>>
>>> In our scenario, each web application has its own log4j.xml file and the
>>> corresponding log file for each instance is stored in a unique location
>>> for that application, namely:
>>>
>>> WEBAPP/WEB-INF/logs
>>>  
>> You're writing logs *inside* the webapp?  Yikes!
>>
>>
>>
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 




signature.asc
Description: OpenPGP digital signature


Re: logging in multiple tomcat web applications

2010-04-29 Thread Jamie


Aah.. Just what I was looking for.. Thanks! Is it bad to write logs 
inside WEB-INF?


Jamie
On 2010/04/29 12:34 PM, Pid wrote:

On 29/04/2010 11:27, Jamie wrote:
   

Hi There

We use multiple web applications running inside Tomcat and need a
painless way for each app to write to its own log file.

In our scenario, each web application has its own log4j.xml file and the
corresponding log file for each instance is stored in a unique location
for that application, namely:

WEBAPP/WEB-INF/logs
 

You're writing logs *inside* the webapp?  Yikes!


   




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: logging in multiple tomcat web applications

2010-04-29 Thread Pid
On 29/04/2010 11:27, Jamie wrote:
> Hi There
> 
> We use multiple web applications running inside Tomcat and need a
> painless way for each app to write to its own log file.
> 
> In our scenario, each web application has its own log4j.xml file and the
> corresponding log file for each instance is stored in a unique location
> for that application, namely:
> 
> WEBAPP/WEB-INF/logs

You're writing logs *inside* the webapp?  Yikes!


> (so that each web application has its own log information)
> 
> Our log4j.xml file has an appender that looks as follows:
> 
>  class="org.apache.log4j.RollingFileAppender">
> 

There are other variables you can use, e.g.

 

${catalina.home} will also work.


p

> 
> 
> 
> 
> 
> 
> 
> You'll notice above, we refer to the system property {$ROOT} in the
> log4j.xml file. This Java system variable
> is set when the web application is first initialized.  The variable
> during startup as follows:
> 
> public class AppServletContext implements ServletContextListener{
> ServletContext context;
> 
> public void contextInitialized(ServletContextEvent event) {
> ServletContext context = event.getServletContext();
> String path = context.getRealPath(File.separator);
> if (path.endsWith(File.separator))
> path = path.substring(0,path.length()-1);
> int i = path.lastIndexOf(File.separator);
> String name = path.substring(i+1,path.length());
> System.setProperty(name,path);
> }
> 
> public void contextDestroyed(ServletContextEvent event ) {
> }
> }
> 
> The effect of the above is to set a Java System Property with the name
> of the instance (e.g. ROOT) and value of the context path on startup. In
> this way, we are able to refer to the context path, from within the
> log4j.xml file. Thus, if the name of the web application being loaded is
> appname... then the Java system system variable APPNAME will be set, and
> we would create a log4j.xml with the variable ${APPNAME} to refer to the
> application path.
> 
> While this approach does work, it requires  us to update the log4j.xml
> for each instance. We need to change ${ROOT} to ${webappname}. This is a
> pain when there are alot of web applications and each of their log4j.xml
> files need to be updated. Are there any other ideas on how to  refer to
> the current Tomcat web application  path from with the log4j.xml without
> having to customize a log4j.xml file for each web application. I need a
> simpler more generic way, such as
> . Perhaps, there is
> a simpler way that I missed.
> 
> Thanks in advance for your consideration
> 
> Jamie
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 




signature.asc
Description: OpenPGP digital signature


logging in multiple tomcat web applications

2010-04-29 Thread Jamie

Hi There

We use multiple web applications running inside Tomcat and need a 
painless way for each app to write to its own log file.


In our scenario, each web application has its own log4j.xml file and the 
corresponding log file for each instance is stored in a unique location

for that application, namely:

WEBAPP/WEB-INF/logs

(so that each web application has its own log information)

Our log4j.xml file has an appender that looks as follows:










You'll notice above, we refer to the system property {$ROOT} in the 
log4j.xml file. This Java system variable
is set when the web application is first initialized.  The variable 
during startup as follows:


public class AppServletContext implements ServletContextListener{
ServletContext context;

public void contextInitialized(ServletContextEvent event) {
ServletContext context = event.getServletContext();
String path = context.getRealPath(File.separator);
if (path.endsWith(File.separator))
path = path.substring(0,path.length()-1);
int i = path.lastIndexOf(File.separator);
String name = path.substring(i+1,path.length());
System.setProperty(name,path);
}

public void contextDestroyed(ServletContextEvent event ) {
}
}

The effect of the above is to set a Java System Property with the name 
of the instance (e.g. ROOT) and value of the context path on startup. In 
this way, we are able to refer to the context path, from within the 
log4j.xml file. Thus, if the name of the web application being loaded is 
appname... then the Java system system variable APPNAME will be set, and 
we would create a log4j.xml with the variable ${APPNAME} to refer to the 
application path.


While this approach does work, it requires  us to update the log4j.xml 
for each instance. We need to change ${ROOT} to ${webappname}. This is a 
pain when there are alot of web applications and each of their log4j.xml 
files need to be updated. Are there any other ideas on how to  refer to 
the current Tomcat web application  path from with the log4j.xml without 
having to customize a log4j.xml file for each web application. I need a 
simpler more generic way, such as
. Perhaps, there is 
a simpler way that I missed.


Thanks in advance for your consideration

Jamie



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat 7.0.0 ServletContainerInitializer BUG

2010-04-29 Thread Pid
Yep.  I don't think this is fixed yet.


p

On 29/04/2010 10:50, dl wrote:
> I builder tomcat 7.0.0 from svn r939221
> below if my code:
> 
> @MySomeAnn
> public class MySomeClass{...}
> 
> @HandlesTypes(MySomeAnn.class) 
> public class ModuleInitializer implements ServletContainerInitializer 
> { 
> @Override 
> public void onStartup(Set> classSet, ServletContext ctx) throws 
> ServletException  
> {
> for (Class targetClass : classSet) 
> { 
> System.out.println(targetClass.getName());
> ...
> 
> Here output is "MySomeAnn". Bug I expect output "MySomeClass".
> It's not yet imp Servlet 3.0 spec.
> 
> My code work fine on Glassfish 3.0. The output is "MySomeClass".
> 
> Can anyone help me? Thanks very much.
> 
> 
> 
> dl,dlpo...@163.com 
> 2010-04-29 




signature.asc
Description: OpenPGP digital signature


Re: JAR files still locked after Context.stop()

2010-04-29 Thread Jamie

Hi Chuck

I'll try... I think there is a JAR registration issue with Javamail. At 
least, I found an article on the Internet that talks about it.


On 2010/04/27 10:52 PM, Caldarale, Charles R wrote:

From: Jamie [mailto:ja...@stimulussoft.com]
Subject: Re: JAR files still locked after Context.stop()

I figure out that it is only the Javamail mail.jar file that
is locked. For some reason, Windows wont let go of it, but all
other appear to be fine.
 

You could always put that jar in Tomcat's lib directory rather than the webapp.

Can you find out who is holding references to any classes from the jar?  (My 
guess is that it's yet another JRE registration that the leak finder hasn't yet 
been coded to handle.)

  - Chuck



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



tomcat 7.0.0 ServletContainerInitializer BUG

2010-04-29 Thread dl
I builder tomcat 7.0.0 from svn r939221
below if my code:

@MySomeAnn
public class MySomeClass{...}

@HandlesTypes(MySomeAnn.class) 
public class ModuleInitializer implements ServletContainerInitializer 
{ 
@Override 
public void onStartup(Set> classSet, ServletContext ctx) throws 
ServletException  
{
for (Class targetClass : classSet) 
{ 
System.out.println(targetClass.getName());
...

Here output is "MySomeAnn". Bug I expect output "MySomeClass".
It's not yet imp Servlet 3.0 spec.

My code work fine on Glassfish 3.0. The output is "MySomeClass".

Can anyone help me? Thanks very much.



dl,dlpo...@163.com 
2010-04-29 


Re: Problem with starting tomcat5

2010-04-29 Thread Petr Hracek
in the RepGen.xml file is:




and in web.xml I have:

ReportRenderer
/servlet/ReportRenderer


When I am calling URL: /RepGen/servlet/ReportRenderer
then HTML page is shown correctly.
If this is wrong why the page is shown?

best regards
Petr
2010/4/29 Pid 

> On 29/04/2010 07:34, Petr Hracek wrote:
> > Yes you are right bad configuration in web.xml.
> > In the conf/Catalina/localhost/ is RepGen.xml
> > and in web.xml file is /ReportRenderer.
>
> Then surely the correct URL to call is:
>
>  /RegGen/ReportRenderer
>
> > When I change them to /servlet/ReportRenderer
> > no it's wokring.
>
> Why would it?
>
>
> p
>
> > Best Regards
> > Petr
> >
> > 2010/4/28 André Warnier 
> >
> >> Petr Hracek wrote:
> >>
> >>> Hello *,
> >>>
> >>> thanks for all your responses and good advises.
> >>> Now tomcat 5.5.28 and apache 1.3 is running. Also mod_jk (AJP13) is
> >>> running
> >>> as well.
> >>> In the mod_jk.log file I have found that servlet is successfully found
> and
> >>> mapped over JkMount. Communication seems to be OK. But what I have
> found
> >>> that HTTP 404 error occurs.
> >>>
> >>
> >> Yes, and it comes back from Tomcat, who apparently cannot find whatever
> >> should be at the path
> >> /RepGen/servlet/ReportRenderer
> >>
> >> So, what is below the tomcat_dir/webapps directory ?
> >> And what is in the file tomcat_dir/webapps/RepGen/WEB-INF/web.xml ?
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
> >
>
>
>


-- 
Best Regards / S pozdravem
Petr Hracek


General / Special cause under which TOMCAT Crash been noticed

2010-04-29 Thread Karthik Nanjangude

Hi

SPEC

JDK1.5
TOMCAT 6.0.26
O/s : Windows 2000 ,Linux ( Red Hat ) / Unix ( HP )


Question : Is there any list of  cases , categories  with  Comparable Study  
for  General / Special cause under which  TOMCAT Crash  been noticed ?

I need this Info for Production server (24 X 7) strategy alertness.




with regards

N.S.Karthik



Re: Httpd Configuration Clarification

2010-04-29 Thread Anisha Parveen
Thank you for the response. That was a type error.
 
https://hostname:443/cns/ser/CTConfigService
On Thu, Apr 29, 2010 at 12:54 PM, Pid  wrote:

> On 29/04/2010 07:24, Anisha Parveen -X (anparvee - Infosys at Cisco) wrote:
> > Hi,
> >
> > I am facing a problem with my configuration. Problem basically is that I
> > am able to access the WebServices URL
> > Say http://hostname:443/cns/ser/CTConfigService through the browser.
>
> Your SSL config is probably broken, if you're using port 443 without https.
>
> > However, the script running on the machine checks an url
> > https://localhost:443/cns/ser/CTConfigService
> .
> > The webservice url is not accessible through localhost from the same
> > box.
> >
> > I have attached my httpd.conf and mod_jk.conf-cns files.
>
> The list often strips attachments.
>
> > Kindly let me know what changes need to be done, such that the URL is
> > accessible through localhost from the same machine
> > And through hostname from the browser in other machines.
> >
> > Any pointers or tutorials on configuration would be hihgly useful.
>
> There's no clue that this is a Tomcat related question, perhaps you're
> in the wrong place.
>
> If you're looking for the Apache HTTPD users list, it's here:
>
>  http://httpd.apache.org/lists.html
>
>
> p
>
>
> > Thanks in advance,
> > Anisha
> >
>
>
>


Re: Httpd Configuration Issue

2010-04-29 Thread Pid
On 29/04/2010 07:43, Anisha Parveen wrote:
> Hi,
> 
> I am facing a problem with my configuration. Problem basically is that I
> am able to access the WebServices URL Say
> 
> _http://hostname:443/cns/ser/CTConfigService_ through the browser.
> 
> However, the script running on the machine checks an url
> 
> _https://localhost:443/cns/ser/CTConfigService_
> .
> 
> The webservice url is not accessible through localhost from the same box.
> 
> I have attached my httpd.conf and mod_jk.conf-cns files.
> 
> Kindly let me know what changes need to be done, such that the URL is
> accessible through localhost from the same machine And through hostname
> from the browser in other machines.
> 
> Any pointers or tutorials on configuration would be hihgly useful.
> 
> Thanks in advance,
> 
> Anisha

No point in sending the same message twice.


p

> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org




signature.asc
Description: OpenPGP digital signature


Re: Problem with starting tomcat5

2010-04-29 Thread Pid
On 29/04/2010 07:34, Petr Hracek wrote:
> Yes you are right bad configuration in web.xml.
> In the conf/Catalina/localhost/ is RepGen.xml
> and in web.xml file is /ReportRenderer.

Then surely the correct URL to call is:

  /RegGen/ReportRenderer

> When I change them to /servlet/ReportRenderer
> no it's wokring.

Why would it?


p

> Best Regards
> Petr
> 
> 2010/4/28 André Warnier 
> 
>> Petr Hracek wrote:
>>
>>> Hello *,
>>>
>>> thanks for all your responses and good advises.
>>> Now tomcat 5.5.28 and apache 1.3 is running. Also mod_jk (AJP13) is
>>> running
>>> as well.
>>> In the mod_jk.log file I have found that servlet is successfully found and
>>> mapped over JkMount. Communication seems to be OK. But what I have found
>>> that HTTP 404 error occurs.
>>>
>>
>> Yes, and it comes back from Tomcat, who apparently cannot find whatever
>> should be at the path
>> /RepGen/servlet/ReportRenderer
>>
>> So, what is below the tomcat_dir/webapps directory ?
>> And what is in the file tomcat_dir/webapps/RepGen/WEB-INF/web.xml ?
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> 




signature.asc
Description: OpenPGP digital signature


Re: Httpd Configuration Clarification

2010-04-29 Thread Pid
On 29/04/2010 07:24, Anisha Parveen -X (anparvee - Infosys at Cisco) wrote:
> Hi,
> 
> I am facing a problem with my configuration. Problem basically is that I
> am able to access the WebServices URL
> Say http://hostname:443/cns/ser/CTConfigService through the browser. 

Your SSL config is probably broken, if you're using port 443 without https.

> However, the script running on the machine checks an url
> https://localhost:443/cns/ser/CTConfigService. 
> The webservice url is not accessible through localhost from the same
> box.
> 
> I have attached my httpd.conf and mod_jk.conf-cns files. 

The list often strips attachments.

> Kindly let me know what changes need to be done, such that the URL is
> accessible through localhost from the same machine
> And through hostname from the browser in other machines.
>
> Any pointers or tutorials on configuration would be hihgly useful.

There's no clue that this is a Tomcat related question, perhaps you're
in the wrong place.

If you're looking for the Apache HTTPD users list, it's here:

 http://httpd.apache.org/lists.html


p


> Thanks in advance,
> Anisha
> 




signature.asc
Description: OpenPGP digital signature