Tomcat Monitoring

2006-07-12 Thread Mr Alireza Fattahi
Hi,

We are using Tomcat 5.5, please let us know if there are any monitoring tools 
that we can use with this server.
We found Lambda Probe mentioned in the posts. 
Are there any built-in tools, or can we find some open sources for this issue?!




~Regards,
~~Alireza Fattahi

-
 All New Yahoo! Mail – Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard 
protect you.

Re: Tomcat Monitoring

2006-07-12 Thread Leon Rosenberg

please define monitoring.
which data do you want to get? do you want to monitor your production
webapps status? monitor your hits? availability?
leon


On 7/12/06, Mr Alireza Fattahi <[EMAIL PROTECTED]> wrote:

Hi,

We are using Tomcat 5.5, please let us know if there are any monitoring tools 
that we can use with this server.
We found Lambda Probe mentioned in the posts.
Are there any built-in tools, or can we find some open sources for this issue?!




~Regards,
~~Alireza Fattahi

-
 All New Yahoo! Mail – Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard 
protect 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: Tomcat Monitoring

2006-07-12 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

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



Tomcat start new session

2006-07-12 Thread Juba
Hello, I am using Tomcat 5.5.17 and when I run my application I notice
that Tomcat creates more than 1 session when an user log in my
application. And when this happen I can't recover information about the
users and the application's applets can't load correctly. My doubt is if
I have to make some configurations in Tomcat. Localy  and accessing the
server by the ip address plus the port plus the applications's name the
application runs normally. The problem just happens when I access my
application by a virtual host installed in my network(another server).

Any hints?

thanks

Juba


- 
Mensagem verificada pelo software de Anti-Virus McAfee.
FAMERP - STI  


-
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: Accessing a servlet

2006-07-12 Thread Jon Wingfield
I would check in tomcat logs directory for reasons why the servlet is 
not available. One reason could be that classes should be in a package:


http://tomcat.apache.org/faq/classnotfound.html

HTH,

Jon

McRaven, Brian wrote:

OK I did that and now my system is hanging which I guess could be an
error in my code or something with the server.  I think it is my code so
I'll look that over.  Thanks for your help.  Sorry for the confusion.

Brian

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 2:48 PM

To: Tomcat Users List
Subject: Re: Accessing a servlet

Did you reload the webapp after making the change?  All changes to
WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will require
a reload before they become active in tomcat.

--David

McRaven, Brian wrote:

I was able to refer to a book I have and so I dropped the .class 
extensions altogether.  I get an error that requested resource is not 
available still.  Any suggestions on this?  My web.xml file has this

entry:

   
  JustALittleTest
  JustAlittleTest
   

   
  JustALittleTest
  /JustALittleTest
   

And my action attribute="JustALittleTest".

Brian


-Original Message-
From: McRaven, Brian
Sent: Tuesday, July 11, 2006 1:14 PM
To: users@tomcat.apache.org
Subject: Accessing a servlet

Well I'm ticking these newbie questions off.  I have a simple servlet 
that I want my form to access.  I compiled the file fine and it is 
called JustALittleTest.class.  I placed this file in the 
ROOT/WEB-INF/classes folder.  In my JSP I have a form with some submit 
buttons.  The action element of the form is set to ="JustALittleTest".

I changed my web.xml file so it now has the following entries:

   
  JustALittleTest
  JustAlittleTest.class
   

   
  JustALittleTest
  /JustALittleTest.class
   

I've tried a few changes to the above entries but I haven't gotten it 
right yet.  Should the servlet-class value have a .class extension?  Is



my url pattern accessing the correct folder?

Brian





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



isapi_redirect.dll Problem with Request Headers

2006-07-12 Thread Rene Czachs
Hi all,

my Config: IIS 6.0, Tomcat 3.x, JBoss3.1, isapi_redirect.dll v1.2.6

My Problem: I'm setting some custom HTTP-Headers, the Request gets to 
tomcat through the isapi_redirect, and on the appserver-side suddenly all 
the custom headers are missing.

1) is this known behaviour/bug?
2) what may i have configured wrong, or what could be a workaround for 
this?


thx much in advance
/Rene

RE: Accessing a servlet

2006-07-12 Thread McRaven, Brian
I made the servlet part of a package but I'm getting a Servlet not Found
Exception.  The actions I took to make the servlet part of a package are
the following:

1 added package line to java code, recompiled
2 placed new class file in new subdirectory of WEB-INF/classes folder
with same name of package
3 changed entry in web.xml file to reflect package that servlet is in
for the url-pattern
4 changed JSP so that the forms action="firstpack.JustALittleTest"

I've looked at the log files but I'm not sure what to look for.

Brian

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 7:49 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet

I would check in tomcat logs directory for reasons why the servlet is
not available. One reason could be that classes should be in a package:

http://tomcat.apache.org/faq/classnotfound.html

HTH,

Jon

McRaven, Brian wrote:
> OK I did that and now my system is hanging which I guess could be an 
> error in my code or something with the server.  I think it is my code 
> so I'll look that over.  Thanks for your help.  Sorry for the
confusion.
> 
> Brian
> 
> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 2:48 PM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> Did you reload the webapp after making the change?  All changes to 
> WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
> require a reload before they become active in tomcat.
> 
> --David
> 
> McRaven, Brian wrote:
> 
>> I was able to refer to a book I have and so I dropped the .class 
>> extensions altogether.  I get an error that requested resource is not

>> available still.  Any suggestions on this?  My web.xml file has this
>> entry:
>>
>>
>>   JustALittleTest
>>   JustAlittleTest
>>
>>
>>
>>   JustALittleTest
>>   /JustALittleTest
>>
>>
>> And my action attribute="JustALittleTest".
>>
>> Brian
>>
>>
>> -Original Message-
>> From: McRaven, Brian
>> Sent: Tuesday, July 11, 2006 1:14 PM
>> To: users@tomcat.apache.org
>> Subject: Accessing a servlet
>>
>> Well I'm ticking these newbie questions off.  I have a simple servlet

>> that I want my form to access.  I compiled the file fine and it is 
>> called JustALittleTest.class.  I placed this file in the 
>> ROOT/WEB-INF/classes folder.  In my JSP I have a form with some 
>> submit buttons.  The action element of the form is set to
="JustALittleTest".
>> I changed my web.xml file so it now has the following entries:
>>
>>
>>   JustALittleTest
>>   JustAlittleTest.class
>>
>>
>>
>>   JustALittleTest
>>   /JustALittleTest.class
>>
>>
>> I've tried a few changes to the above entries but I haven't gotten it

>> right yet.  Should the servlet-class value have a .class extension?  
>> Is
> 
>> my url pattern accessing the correct folder?
>>
>> Brian
>>



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


-
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: Accessing a servlet

2006-07-12 Thread Jon Wingfield

OK. The web.xml entries should probably be something like this:


  just-a-little-test
  firstpack.JustAlittleTest


  just-a-little-test
  /some/useful/mapping


and the form action should be "/some/useful/mapping".
I changed the names so they weren't all JustAlittleTest ;)


As to the logs, I assumed there would be stacktraces in the logs for 
ClassNotFound/NoClassDefFound exceptions if the mapping was not valid.


HTH,

Jon

McRaven, Brian wrote:

I made the servlet part of a package but I'm getting a Servlet not Found
Exception.  The actions I took to make the servlet part of a package are
the following:

1 added package line to java code, recompiled
2 placed new class file in new subdirectory of WEB-INF/classes folder
with same name of package
3 changed entry in web.xml file to reflect package that servlet is in
for the url-pattern
4 changed JSP so that the forms action="firstpack.JustALittleTest"

I've looked at the log files but I'm not sure what to look for.

Brian

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 7:49 AM

To: Tomcat Users List
Subject: Re: Accessing a servlet

I would check in tomcat logs directory for reasons why the servlet is
not available. One reason could be that classes should be in a package:

http://tomcat.apache.org/faq/classnotfound.html

HTH,

Jon

McRaven, Brian wrote:
OK I did that and now my system is hanging which I guess could be an 
error in my code or something with the server.  I think it is my code 
so I'll look that over.  Thanks for your help.  Sorry for the

confusion.

Brian

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 2:48 PM
To: Tomcat Users List
Subject: Re: Accessing a servlet

Did you reload the webapp after making the change?  All changes to 
WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
require a reload before they become active in tomcat.


--David

McRaven, Brian wrote:

I was able to refer to a book I have and so I dropped the .class 
extensions altogether.  I get an error that requested resource is not



available still.  Any suggestions on this?  My web.xml file has this
entry:

   
  JustALittleTest
  JustAlittleTest
   

   
  JustALittleTest
  /JustALittleTest
   

And my action attribute="JustALittleTest".

Brian


-Original Message-
From: McRaven, Brian
Sent: Tuesday, July 11, 2006 1:14 PM
To: users@tomcat.apache.org
Subject: Accessing a servlet

Well I'm ticking these newbie questions off.  I have a simple servlet


that I want my form to access.  I compiled the file fine and it is 
called JustALittleTest.class.  I placed this file in the 
ROOT/WEB-INF/classes folder.  In my JSP I have a form with some 
submit buttons.  The action element of the form is set to

="JustALittleTest".

I changed my web.xml file so it now has the following entries:

   
  JustALittleTest
  JustAlittleTest.class
   

   
  JustALittleTest
  /JustALittleTest.class
   

I've tried a few changes to the above entries but I haven't gotten it


right yet.  Should the servlet-class value have a .class extension?  
Is

my url pattern accessing the correct folder?

Brian





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



Re: Accessing a servlet

2006-07-12 Thread Pid

   TheServletName
   package.ThisIsTheClassName


   TheServletName
   /a/path/to/theservlet


"servlet-name" is used to link the definition to the mapping.
defs are grouped together in web.xml, as are mappings.

"url-pattern" refers to the path by which you'll access the servlet.
it can any unique url on your system, and does not have to reflect the
class name.





McRaven, Brian wrote:
> I made the servlet part of a package but I'm getting a Servlet not Found
> Exception.  The actions I took to make the servlet part of a package are
> the following:
> 
> 1 added package line to java code, recompiled
> 2 placed new class file in new subdirectory of WEB-INF/classes folder
> with same name of package
> 3 changed entry in web.xml file to reflect package that servlet is in
> for the url-pattern
> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
> 
> I've looked at the log files but I'm not sure what to look for.
> 
> Brian
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 12, 2006 7:49 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> I would check in tomcat logs directory for reasons why the servlet is
> not available. One reason could be that classes should be in a package:
> 
> http://tomcat.apache.org/faq/classnotfound.html
> 
> HTH,
> 
> Jon
> 
> McRaven, Brian wrote:
>> OK I did that and now my system is hanging which I guess could be an 
>> error in my code or something with the server.  I think it is my code 
>> so I'll look that over.  Thanks for your help.  Sorry for the
> confusion.
>> Brian
>>
>> -Original Message-
>> From: David Smith [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 11, 2006 2:48 PM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> Did you reload the webapp after making the change?  All changes to 
>> WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
>> require a reload before they become active in tomcat.
>>
>> --David
>>
>> McRaven, Brian wrote:
>>
>>> I was able to refer to a book I have and so I dropped the .class 
>>> extensions altogether.  I get an error that requested resource is not
> 
>>> available still.  Any suggestions on this?  My web.xml file has this
>>> entry:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest
>>>
>>>
>>> And my action attribute="JustALittleTest".
>>>
>>> Brian
>>>
>>>
>>> -Original Message-
>>> From: McRaven, Brian
>>> Sent: Tuesday, July 11, 2006 1:14 PM
>>> To: users@tomcat.apache.org
>>> Subject: Accessing a servlet
>>>
>>> Well I'm ticking these newbie questions off.  I have a simple servlet
> 
>>> that I want my form to access.  I compiled the file fine and it is 
>>> called JustALittleTest.class.  I placed this file in the 
>>> ROOT/WEB-INF/classes folder.  In my JSP I have a form with some 
>>> submit buttons.  The action element of the form is set to
> ="JustALittleTest".
>>> I changed my web.xml file so it now has the following entries:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest.class
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest.class
>>>
>>>
>>> I've tried a few changes to the above entries but I haven't gotten it
> 
>>> right yet.  Should the servlet-class value have a .class extension?  
>>> Is
>>> my url pattern accessing the correct folder?
>>>
>>> Brian
>>>
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> 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: Accessing a servlet

2006-07-12 Thread McRaven, Brian
When I use this entry I get a request resource not found error.


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


Under the previous error to this one I was using an entry of:


   JustALittleTest
   JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


With the following entry:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


I get an error of 'Error allocating a servlet instance'

Brian

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 9:46 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


   TheServletName
   package.ThisIsTheClassName


   TheServletName
   /a/path/to/theservlet


"servlet-name" is used to link the definition to the mapping.
defs are grouped together in web.xml, as are mappings.

"url-pattern" refers to the path by which you'll access the servlet.
it can any unique url on your system, and does not have to reflect the
class name.





McRaven, Brian wrote:
> I made the servlet part of a package but I'm getting a Servlet not 
> Found Exception.  The actions I took to make the servlet part of a 
> package are the following:
> 
> 1 added package line to java code, recompiled
> 2 placed new class file in new subdirectory of WEB-INF/classes folder 
> with same name of package
> 3 changed entry in web.xml file to reflect package that servlet is in 
> for the url-pattern
> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
> 
> I've looked at the log files but I'm not sure what to look for.
> 
> Brian
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 7:49 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> I would check in tomcat logs directory for reasons why the servlet is 
> not available. One reason could be that classes should be in a
package:
> 
> http://tomcat.apache.org/faq/classnotfound.html
> 
> HTH,
> 
> Jon
> 
> McRaven, Brian wrote:
>> OK I did that and now my system is hanging which I guess could be an 
>> error in my code or something with the server.  I think it is my code

>> so I'll look that over.  Thanks for your help.  Sorry for the
> confusion.
>> Brian
>>
>> -Original Message-
>> From: David Smith [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 11, 2006 2:48 PM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> Did you reload the webapp after making the change?  All changes to 
>> WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
>> require a reload before they become active in tomcat.
>>
>> --David
>>
>> McRaven, Brian wrote:
>>
>>> I was able to refer to a book I have and so I dropped the .class 
>>> extensions altogether.  I get an error that requested resource is 
>>> not
> 
>>> available still.  Any suggestions on this?  My web.xml file has this
>>> entry:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest
>>>
>>>
>>> And my action attribute="JustALittleTest".
>>>
>>> Brian
>>>
>>>
>>> -Original Message-
>>> From: McRaven, Brian
>>> Sent: Tuesday, July 11, 2006 1:14 PM
>>> To: users@tomcat.apache.org
>>> Subject: Accessing a servlet
>>>
>>> Well I'm ticking these newbie questions off.  I have a simple 
>>> servlet
> 
>>> that I want my form to access.  I compiled the file fine and it is 
>>> called JustALittleTest.class.  I placed this file in the 
>>> ROOT/WEB-INF/classes folder.  In my JSP I have a form with some 
>>> submit buttons.  The action element of the form is set to
> ="JustALittleTest".
>>> I changed my web.xml file so it now has the following entries:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest.class
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest.class
>>>
>>>
>>> I've tried a few changes to the above entries but I haven't gotten 
>>> it
> 
>>> right yet.  Should the servlet-class value have a .class extension?

>>> Is
>>> my url pattern accessing the correct folder?
>>>
>>> Brian
>>>
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> 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: Simple question, but can't figure out answer

2006-07-12 Thread Mead, Jennifer L - VSCM
I already have that.  I really don't understand but I bet it turns out
to be something stupid (on my part).  It is pretty frustrating but for
now they get no images!  Thanks for the reply.

Jen 

-Original Message-
From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 4:31 PM
To: Tomcat Users List
Subject: Re: Simple question, but can't figure out answer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ahhh...

and in webapps/ROOT/

create a directory called WEB-INF (please note capitals) that should fix
your problem...

Regards

Andrew

On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote:

>
> What this does is draw the box where the image should be.  When I 
> right click on it and look at the properties and it finds the right 
> file.
> Just thought someone else would have ran into this 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEtDShW126qUNSzvURAgtxAJwPa2jrrkN0241hVlxaxDf+eZd1bgCfbfSl
5pIOXiiNKc5pHCZHpqZlO08=
=haVp
-END PGP SIGNATURE-

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


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



Re: Simple question, but can't figure out answer

2006-07-12 Thread Andrew Miehs


On 12/07/2006, at 4:01 PM, Mead, Jennifer L - VSCM wrote:


I already have that.  I really don't understand but I bet it turns out
to be something stupid (on my part).  It is pretty frustrating but for
now they get no images!  Thanks for the reply.

Jen



Does http://server/images/myimage.gif work?





-
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: Simple question, but can't figure out answer

2006-07-12 Thread Mead, Jennifer L - VSCM
Nope, where and what is it trying to display? 

-Original Message-
From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 7:08 AM
To: Tomcat Users List
Subject: Re: Simple question, but can't figure out answer


On 12/07/2006, at 4:01 PM, Mead, Jennifer L - VSCM wrote:

> I already have that.  I really don't understand but I bet it turns out

> to be something stupid (on my part).  It is pretty frustrating but for

> now they get no images!  Thanks for the reply.
>
> Jen


Does http://server/images/myimage.gif work?





-
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: Simple question, but can't figure out answer

2006-07-12 Thread Pid
Is tomcat actually configured to serve the image directory?

Do you have your logging ramped up?

Try enabling an AccessLogValve if you haven't already.


Mead, Jennifer L - VSCM wrote:
> Nope, where and what is it trying to display? 
> 
> -Original Message-
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 12, 2006 7:08 AM
> To: Tomcat Users List
> Subject: Re: Simple question, but can't figure out answer
> 
> 
> On 12/07/2006, at 4:01 PM, Mead, Jennifer L - VSCM wrote:
> 
>> I already have that.  I really don't understand but I bet it turns out
> 
>> to be something stupid (on my part).  It is pretty frustrating but for
> 
>> now they get no images!  Thanks for the reply.
>>
>> Jen
> 
> 
> Does http://server/images/myimage.gif work?
> 
> 
> 
> 
> 
> -
> 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: Simple question, but can't figure out answer

2006-07-12 Thread Andrew Miehs

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No I am really confused

Your server name is  ...

and looking at your perl code, you were trying to get to an image  
called icc-logo.gif

 http:///images/icc-logo.gif
replace  with the name of your server

This SHOULD display the gif...

if your tomcat is installed in /usr/local
then I would expect at least the following files to exist

/usr/local/tomcat/
/usr/local/tomcat/webapps/
/usr/local/tomcat/webapps/ROOT/
/usr/local/tomcat/webapps/ROOT/images/
/usr/local/tomcat/webapps/ROOT/images/icc-logo.gif
/usr/local/tomcat/webapps/ROOT/WEB-INF/

IF not - then we need to describe exactly what you have

Are you sure you are only running Tomcat on this box?

what does "ps auxw" say?

Andrew



On 12/07/2006, at 4:10 PM, Mead, Jennifer L - VSCM wrote:


Nope, where and what is it trying to display?

-Original Message-
From: Andrew Miehs [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 7:08 AM
To: Tomcat Users List
Subject: Re: Simple question, but can't figure out answer


On 12/07/2006, at 4:01 PM, Mead, Jennifer L - VSCM wrote:

I already have that.  I really don't understand but I bet it turns  
out


to be something stupid (on my part).  It is pretty frustrating but  
for



now they get no images!  Thanks for the reply.

Jen



Does http://server/images/myimage.gif work?





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



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEtQS5W126qUNSzvURArXWAJ4iQZnAk3PCvPOHJ/AYfoZZ2uR1IACcD92B
n1CyuDHGgXRAqOo8/Srfnz8=
=kbxT
-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]



PS Old Gen filling up...

2006-07-12 Thread Darren Kukulka
Hi All,

 

Got a situation here where PS Old Gen within the JVM heap is gradually
filling up and locking to a point where GC will not release any of it and
the application hangs.

 

Running Tomcat 5.5.15 and SUN JDK 1.5_07.

 

Machine is an 8GB dual Xeon processor Dell 2850.

 

The JVM options are set as follows;

 

-Dcatalina.home=F:\tomcat5

-Dcatalina.base=F:\tomcat5

-Djava.endorsed.dirs=F:\tomcat5\common\endorsed

-Djava.io.tmpdir=F:\tomcat5\temp

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

-Djava.util.logging.config.file=F:\tomcat5\conf\logging.properties

-Duser.language=en

-Duser.country=GB

-Xms1330m

-Xmx1330m

-XX:+UseParallelGC

-XX:ParallelGCThreads=2

-XX:+UseParallelOldGC

-XX:+UseAdaptiveSizePolicy

-XX:NewSize=400m

-XX:MaxNewSize=400m

-XX:PermSize=128m

-XX:MaxPermSize=128m

 

Has anyone had similar behaviour or can you point me in the right direction?

 

Thanks in advance.

 

Darren Kukulka

 





Connaught honoured AIM 'Decade of Excellence' Award 



Connaught awarded Partnering Contractor of the Year 2005 



Connaught wins AIM 'Company of the Year' award 2004 



West of England Business of the Year Award Winner 2003 



Why not visit our website http://www.connaught.plc.uk 



Disclaimer: 

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message. 



Connaught plc, Head Office 01392 444546 


Re: Simple question, but can't figure out answer

2006-07-12 Thread David Smith

Hi.

I've been lurking on this thread for a while this morning.  Here's a few 
things you might want to consider


1. Your perl script to serve up images is pulling from /images according 
to what was posted.  Given that perl probably isn't chrooted to the 
directory your webapp is in, the image you are trying to access needs to 
be at /images/icc-logo.gif relative to the unix filesystem root, not 
tomcat's webapps/ROOT or any other webapps folder.


2. If you drop the HTML page test and just attempt to access the image 
directly via http://localhost/path/to/image.gif, what error do you get?


3. I take it you have the perl script for serving up images mapped to 
icc-logo.gif somehow in your config?  I'd be interested to see that part 
of your setup.


--David

Mead, Jennifer L - VSCM wrote:


I already have that.  I really don't understand but I bet it turns out
to be something stupid (on my part).  It is pretty frustrating but for
now they get no images!  Thanks for the reply.

Jen 


-Original Message-
From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 4:31 PM

To: Tomcat Users List
Subject: Re: Simple question, but can't figure out answer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ahhh...

and in webapps/ROOT/

create a directory called WEB-INF (please note capitals) that should fix
your problem...

Regards

Andrew

On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote:

 

What this does is draw the box where the image should be.  When I 
right click on it and look at the properties and it finds the right 
file.

Just thought someone else would have ran into this 
   



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEtDShW126qUNSzvURAgtxAJwPa2jrrkN0241hVlxaxDf+eZd1bgCfbfSl
5pIOXiiNKc5pHCZHpqZlO08=
=haVp
-END PGP SIGNATURE-

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


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

 




-
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: Accessing a servlet

2006-07-12 Thread McRaven, Brian
If the url-pattern should be /firstpack/JustALittleTest then should the
form on the JSP refer to action="firstpack.JustALittleTest" or
action="firstpack/JustALittleTest" ? 

Brian 

-Original Message-
From: McRaven, Brian 
Sent: Wednesday, July 12, 2006 9:55 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Accessing a servlet

When I use this entry I get a request resource not found error.


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


Under the previous error to this one I was using an entry of:


   JustALittleTest
   JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


With the following entry:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


I get an error of 'Error allocating a servlet instance'

Brian

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 9:46 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


   TheServletName
   package.ThisIsTheClassName


   TheServletName
   /a/path/to/theservlet


"servlet-name" is used to link the definition to the mapping.
defs are grouped together in web.xml, as are mappings.

"url-pattern" refers to the path by which you'll access the servlet.
it can any unique url on your system, and does not have to reflect the
class name.





McRaven, Brian wrote:
> I made the servlet part of a package but I'm getting a Servlet not 
> Found Exception.  The actions I took to make the servlet part of a 
> package are the following:
> 
> 1 added package line to java code, recompiled
> 2 placed new class file in new subdirectory of WEB-INF/classes folder 
> with same name of package
> 3 changed entry in web.xml file to reflect package that servlet is in 
> for the url-pattern
> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
> 
> I've looked at the log files but I'm not sure what to look for.
> 
> Brian
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 7:49 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> I would check in tomcat logs directory for reasons why the servlet is 
> not available. One reason could be that classes should be in a
package:
> 
> http://tomcat.apache.org/faq/classnotfound.html
> 
> HTH,
> 
> Jon
> 
> McRaven, Brian wrote:
>> OK I did that and now my system is hanging which I guess could be an 
>> error in my code or something with the server.  I think it is my code

>> so I'll look that over.  Thanks for your help.  Sorry for the
> confusion.
>> Brian
>>
>> -Original Message-
>> From: David Smith [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 11, 2006 2:48 PM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> Did you reload the webapp after making the change?  All changes to 
>> WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
>> require a reload before they become active in tomcat.
>>
>> --David
>>
>> McRaven, Brian wrote:
>>
>>> I was able to refer to a book I have and so I dropped the .class 
>>> extensions altogether.  I get an error that requested resource is 
>>> not
> 
>>> available still.  Any suggestions on this?  My web.xml file has this
>>> entry:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest
>>>
>>>
>>> And my action attribute="JustALittleTest".
>>>
>>> Brian
>>>
>>>
>>> -Original Message-
>>> From: McRaven, Brian
>>> Sent: Tuesday, July 11, 2006 1:14 PM
>>> To: users@tomcat.apache.org
>>> Subject: Accessing a servlet
>>>
>>> Well I'm ticking these newbie questions off.  I have a simple 
>>> servlet
> 
>>> that I want my form to access.  I compiled the file fine and it is 
>>> called JustALittleTest.class.  I placed this file in the 
>>> ROOT/WEB-INF/classes folder.  In my JSP I have a form with some 
>>> submit buttons.  The action element of the form is set to
> ="JustALittleTest".
>>> I changed my web.xml file so it now has the following entries:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest.class
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest.class
>>>
>>>
>>> I've tried a few changes to the above entries but I haven't gotten 
>>> it
> 
>>> right yet.  Should the servlet-class value have a .class extension?

>>> Is
>>> my url pattern accessing the correct folder?
>>>
>>> Brian
>>>
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-m

Re: PS Old Gen filling up...

2006-07-12 Thread Edmon Begoli

Darren,

Old Gen filling up is usually an indicator of a memory leak.

Other possibility is that object creation is very fast and that
garbage collector can not keep up.  Since you are using parallel
collector it is also a possibility that it needs some tweaking.

The Recalcitrant Engineer ( http://www.burnthacker.com ) blog has a
good post somewhere on tweaking the parallel connector.  Site seems to
be too busy now so I can't find it.

Regards,
Edmon

On 7/12/06, Darren Kukulka <[EMAIL PROTECTED]> wrote:

Hi All,



Got a situation here where PS Old Gen within the JVM heap is gradually
filling up and locking to a point where GC will not release any of it and
the application hangs.



Running Tomcat 5.5.15 and SUN JDK 1.5_07.



Machine is an 8GB dual Xeon processor Dell 2850.



The JVM options are set as follows;



-Dcatalina.home=F:\tomcat5

-Dcatalina.base=F:\tomcat5

-Djava.endorsed.dirs=F:\tomcat5\common\endorsed

-Djava.io.tmpdir=F:\tomcat5\temp

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

-Djava.util.logging.config.file=F:\tomcat5\conf\logging.properties

-Duser.language=en

-Duser.country=GB

-Xms1330m

-Xmx1330m

-XX:+UseParallelGC

-XX:ParallelGCThreads=2

-XX:+UseParallelOldGC

-XX:+UseAdaptiveSizePolicy

-XX:NewSize=400m

-XX:MaxNewSize=400m

-XX:PermSize=128m

-XX:MaxPermSize=128m



Has anyone had similar behaviour or can you point me in the right direction?



Thanks in advance.



Darren Kukulka







Connaught honoured AIM 'Decade of Excellence' Award



Connaught awarded Partnering Contractor of the Year 2005



Connaught wins AIM 'Company of the Year' award 2004



West of England Business of the Year Award Winner 2003



Why not visit our website http://www.connaught.plc.uk



Disclaimer:

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message.



Connaught plc, Head Office 01392 444546





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

-
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: Simple question, but can't figure out answer

2006-07-12 Thread Mead, Jennifer L - VSCM
YES!  It now works, and it was idiocy on my part.  I had so many
different images directories it was insane BUT NOT
/usr/local/tomcat/webapps/ROOT/images/.  I thought it had to be under
the WEB-INF directory.  Ahhh, sigh of relief.  Thanks so much.  I am
staying on this list because it is a great bunch of users.  Besides I
can contribute here and there.  Great response and I really appreciate
it.

Jennifer


-Original Message-
From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 7:19 AM
To: Tomcat Users List
Subject: Re: Simple question, but can't figure out answer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No I am really confused

Your server name is  ...

and looking at your perl code, you were trying to get to an image called
icc-logo.gif
  http:///images/icc-logo.gif
replace  with the name of your server

This SHOULD display the gif...

if your tomcat is installed in /usr/local
then I would expect at least the following files to exist

/usr/local/tomcat/
/usr/local/tomcat/webapps/
/usr/local/tomcat/webapps/ROOT/
/usr/local/tomcat/webapps/ROOT/images/
/usr/local/tomcat/webapps/ROOT/images/icc-logo.gif
/usr/local/tomcat/webapps/ROOT/WEB-INF/

IF not - then we need to describe exactly what you have

Are you sure you are only running Tomcat on this box?

what does "ps auxw" say?

Andrew



On 12/07/2006, at 4:10 PM, Mead, Jennifer L - VSCM wrote:

> Nope, where and what is it trying to display?
>
> -Original Message-
> From: Andrew Miehs [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 7:08 AM
> To: Tomcat Users List
> Subject: Re: Simple question, but can't figure out answer
>
>
> On 12/07/2006, at 4:01 PM, Mead, Jennifer L - VSCM wrote:
>
>> I already have that.  I really don't understand but I bet it turns 
>> out
>
>> to be something stupid (on my part).  It is pretty frustrating but 
>> for
>
>> now they get no images!  Thanks for the reply.
>>
>> Jen
>
>
> Does http://server/images/myimage.gif work?
>
>
>
>
>
> -
> 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]
>

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEtQS5W126qUNSzvURArXWAJ4iQZnAk3PCvPOHJ/AYfoZZ2uR1IACcD92B
n1CyuDHGgXRAqOo8/Srfnz8=
=kbxT
-END PGP SIGNATURE-

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


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



Context destroyed while paging results

2006-07-12 Thread Suba Suresh
I apologize upfront if this is not the right group. I did not know 
whether to post the question here or in lucene user list.


I am using a servlet to display the search results for our search.Lucene 
recommends requery if there are more than one page of results. I had 
saved the earlier parameter values in the servlet's variables. So, I 
have the following html code


out.print("http:localhost/servlet/results.QueryResultsServlet?dir=indexedDir&query=queryString>" 
+ " 2 " +"");


When I click on "2" on the resultpage tomcat shutsdown and my context 
gets destroyed. My catalina and the localhost log files are not being 
helpful to debug it.


I know I must be doing something really studpid. So, what is it?

thanks,
suba suresh.

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



org.apache.juli.FileHandler on Shared Tomcat Hosting?

2006-07-12 Thread Giesen Giesen

Has anyone had any luck using org.apache.juli.FileHandler on a shared
Tomcat hosting provider? I isolated this to a trivial test application
that logs perfectly on my dev system (to
C:\apache-tomcat-5.5.17\logs), but on my shared hosting provider, the
log files just don't show up.

log4j works perfectly, btw, but some software libraries I use
(Facelets) require java.util.log and don't provide a log4j option.

Does anyone have any experience with this issue?

Specs
Apache Tomcat 5.5.15
Java 1.5.0.x
log4j 1.2.13

logging.properties: (I've indented for clarity in this message)
handlers = 1root.org.apache.juli.FileHandler,
2catalina.org.apache.juli.FileHandler,
3facelets.org.apache.juli.FileHandler,
4test.org.apache.juli.FileHandler

# --- Handlers
1root.org.apache.juli.FileHandler.level = FINEST
1root.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1root.org.apache.juli.FileHandler.prefix = rootprefix.

2catalina.org.apache.juli.FileHandler.level = FINEST
2catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2catalina.org.apache.juli.FileHandler.prefix = catalinaprefix.

3facelets.org.apache.juli.FileHandler.level = FINEST
3facelets.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3facelets.org.apache.juli.FileHandler.prefix = faceletsprefix.

4test.org.apache.juli.FileHandler.level = FINEST
4test.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4test.org.apache.juli.FileHandler.prefix = testprefix.

# --- Loggers
.level = WARN
.handlers = 1root.org.apache.juli.FileHandler

org.apache.catalina.level = WARN
org.apache.catalina.handlers = 2catalina.org.apache.juli.FileHandler

org.test.level = FINEST
org.test.handlers = 4test.org.apache.juli.FileHandler

facelets.level = FINEST
facelets.handlers = 3facelets.org.apache.juli.FileHandler

-
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: Accessing a servlet

2006-07-12 Thread Martin Gainty

check your ./WEB-INF/web.xml 
 
  FooServlet
  FooServlet

 
FooServlet
/servlet/Foo
 

reference to invoke is
ServletServletNameFromWeb.xml/Url-patternFromActionMapping
e.g.
FooServlet/servlet/Foo

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: "McRaven, Brian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 10:43 AM
Subject: RE: Accessing a servlet


If the url-pattern should be /firstpack/JustALittleTest then should the
form on the JSP refer to action="firstpack.JustALittleTest" or
action="firstpack/JustALittleTest" ? 

Brian 

-Original Message-
From: McRaven, Brian 
Sent: Wednesday, July 12, 2006 9:55 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Accessing a servlet

When I use this entry I get a request resource not found error.


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


Under the previous error to this one I was using an entry of:


   JustALittleTest
   JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


With the following entry:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


I get an error of 'Error allocating a servlet instance'

Brian

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 9:46 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


   TheServletName
   package.ThisIsTheClassName


   TheServletName
   /a/path/to/theservlet


"servlet-name" is used to link the definition to the mapping.
defs are grouped together in web.xml, as are mappings.

"url-pattern" refers to the path by which you'll access the servlet.
it can any unique url on your system, and does not have to reflect the
class name.





McRaven, Brian wrote:
> I made the servlet part of a package but I'm getting a Servlet not 
> Found Exception.  The actions I took to make the servlet part of a 
> package are the following:
> 
> 1 added package line to java code, recompiled
> 2 placed new class file in new subdirectory of WEB-INF/classes folder 
> with same name of package
> 3 changed entry in web.xml file to reflect package that servlet is in 
> for the url-pattern
> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
> 
> I've looked at the log files but I'm not sure what to look for.
> 
> Brian
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 7:49 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> I would check in tomcat logs directory for reasons why the servlet is 
> not available. One reason could be that classes should be in a
package:
> 
> http://tomcat.apache.org/faq/classnotfound.html
> 
> HTH,
> 
> Jon
> 
> McRaven, Brian wrote:
>> OK I did that and now my system is hanging which I guess could be an 
>> error in my code or something with the server.  I think it is my code

>> so I'll look that over.  Thanks for your help.  Sorry for the
> confusion.
>> Brian
>>
>> -Original Message-
>> From: David Smith [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 11, 2006 2:48 PM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> Did you reload the webapp after making the change?  All changes to 
>> WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
>> require a reload before they become active in tomcat.
>>
>> --David
>>
>> McRaven, Brian wrote:
>>
>>> I was able to refer to a book I have and so I dropped the .class 
>>> extensions altogether.  I get an error that requested resource is 
>>> not
> 
>>> available still.  Any suggestions on this?  My web.xml file has this
>>> entry:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest
>>>
>>>
>>> And my action attribute="JustALittleTest".
>>>
>>> Brian
>>>
>>>
>>> -Original Message-
>>> From: McRaven, Brian
>>> Sent: Tuesday, July 11, 2006 1:14 PM
>>> To: users@tomcat.apache.org
>>> Subject: Accessing a servlet
>>>
>>> Well I'm ticking these newbie questions off.  I have a simple 
>>> servlet
> 
>>> that I want my form to access.  I compiled the file fine and it is 
>>> called JustALittleTest.class.  I placed this file in the 
>>> ROOT/WEB-INF/classes folder.  In my JSP I have a form with some 
>>> submit buttons.  The action element of the form is set to
> ="JustALittleTest".
>>> I changed my web.xml file 

RE: Accessing a servlet

2006-07-12 Thread McRaven, Brian
OK so now I have this:

action="JustALittleTest/firstpack/JustALittleTest"

For a web.xml of file of:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


And I get requested resource not found.

Brian

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 11:05 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


check your ./WEB-INF/web.xml
 
  FooServlet
  FooServlet

 
FooServlet
/servlet/Foo
 

reference to invoke is
ServletServletNameFromWeb.xml/Url-patternFromActionMapping
e.g.
FooServlet/servlet/Foo

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: "McRaven, Brian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 10:43 AM
Subject: RE: Accessing a servlet


If the url-pattern should be /firstpack/JustALittleTest then should the
form on the JSP refer to action="firstpack.JustALittleTest" or
action="firstpack/JustALittleTest" ? 

Brian 

-Original Message-
From: McRaven, Brian 
Sent: Wednesday, July 12, 2006 9:55 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Accessing a servlet

When I use this entry I get a request resource not found error.


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


Under the previous error to this one I was using an entry of:


   JustALittleTest
   JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


With the following entry:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


I get an error of 'Error allocating a servlet instance'

Brian

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 9:46 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


   TheServletName
   package.ThisIsTheClassName


   TheServletName
   /a/path/to/theservlet


"servlet-name" is used to link the definition to the mapping.
defs are grouped together in web.xml, as are mappings.

"url-pattern" refers to the path by which you'll access the servlet.
it can any unique url on your system, and does not have to reflect the
class name.





McRaven, Brian wrote:
> I made the servlet part of a package but I'm getting a Servlet not 
> Found Exception.  The actions I took to make the servlet part of a 
> package are the following:
> 
> 1 added package line to java code, recompiled
> 2 placed new class file in new subdirectory of WEB-INF/classes folder 
> with same name of package
> 3 changed entry in web.xml file to reflect package that servlet is in 
> for the url-pattern
> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
> 
> I've looked at the log files but I'm not sure what to look for.
> 
> Brian
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 7:49 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> I would check in tomcat logs directory for reasons why the servlet is 
> not available. One reason could be that classes should be in a
package:
> 
> http://tomcat.apache.org/faq/classnotfound.html
> 
> HTH,
> 
> Jon
> 
> McRaven, Brian wrote:
>> OK I did that and now my system is hanging which I guess could be an 
>> error in my code or something with the server.  I think it is my code

>> so I'll look that over.  Thanks for your help.  Sorry for the
> confusion.
>> Brian
>>
>> -Original Message-
>> From: David Smith [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 11, 2006 2:48 PM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> Did you reload the webapp after making the change?  All changes to 
>> WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
>> require a reload before they become active in tomcat.
>>
>> --David
>>
>> McRaven, Brian wrote:
>>
>>> I was able to refer to a book I have and so I dropped the .class 
>>> extensions altogether.  I get an error that requested resource is 
>>> not
> 
>>> available still.  Any suggestions on this?  My web.xml file has this
>>> entry:
>>>
>>>
>>>   JustALittleTest
>>>   JustAlittleTest
>>>
>>>
>>>
>>>   JustALittleTest
>>>   /JustALittleTest
>>>
>>>
>>> And my action attribute="JustALittleTest".
>>>
>>> Brian
>>>
>>>
>>> -Original Message-
>>> From: McRaven, Brian
>>> Sent: Tuesday, July 11, 2006 1:14 PM
>>> To: users@

Re: Accessing a servlet

2006-07-12 Thread Jon Wingfield

You've deployed this in the ROOT webapp?

form action should be "/firstpack/JustALittleTest"

McRaven, Brian wrote:

OK so now I have this:

action="JustALittleTest/firstpack/JustALittleTest"

For a web.xml of file of:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


And I get requested resource not found.

Brian

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 11:05 AM

To: Tomcat Users List
Subject: Re: Accessing a servlet


check your ./WEB-INF/web.xml
 
  FooServlet
  FooServlet

 
FooServlet
/servlet/Foo
 

reference to invoke is
ServletServletNameFromWeb.xml/Url-patternFromActionMapping
e.g.
FooServlet/servlet/Foo

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: "McRaven, Brian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 10:43 AM
Subject: RE: Accessing a servlet


If the url-pattern should be /firstpack/JustALittleTest then should the
form on the JSP refer to action="firstpack.JustALittleTest" or
action="firstpack/JustALittleTest" ? 

Brian 


-Original Message-
From: McRaven, Brian 
Sent: Wednesday, July 12, 2006 9:55 AM

To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Accessing a servlet

When I use this entry I get a request resource not found error.


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


Under the previous error to this one I was using an entry of:


   JustALittleTest
   JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


With the following entry:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


I get an error of 'Error allocating a servlet instance'

Brian

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 9:46 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


   TheServletName
   package.ThisIsTheClassName


   TheServletName
   /a/path/to/theservlet


"servlet-name" is used to link the definition to the mapping.
defs are grouped together in web.xml, as are mappings.

"url-pattern" refers to the path by which you'll access the servlet.
it can any unique url on your system, and does not have to reflect the
class name.





McRaven, Brian wrote:
I made the servlet part of a package but I'm getting a Servlet not 
Found Exception.  The actions I took to make the servlet part of a 
package are the following:


1 added package line to java code, recompiled
2 placed new class file in new subdirectory of WEB-INF/classes folder 
with same name of package
3 changed entry in web.xml file to reflect package that servlet is in 
for the url-pattern

4 changed JSP so that the forms action="firstpack.JustALittleTest"

I've looked at the log files but I'm not sure what to look for.

Brian

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 7:49 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet

I would check in tomcat logs directory for reasons why the servlet is 
not available. One reason could be that classes should be in a

package:

http://tomcat.apache.org/faq/classnotfound.html

HTH,

Jon

McRaven, Brian wrote:
OK I did that and now my system is hanging which I guess could be an 
error in my code or something with the server.  I think it is my code



so I'll look that over.  Thanks for your help.  Sorry for the

confusion.

Brian

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 2:48 PM
To: Tomcat Users List
Subject: Re: Accessing a servlet

Did you reload the webapp after making the change?  All changes to 
WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
require a reload before they become active in tomcat.


--David

McRaven, Brian wrote:

I was able to refer to a book I have and so I dropped the .class 
extensions altogether.  I get an error that requested resource is 
not

available still.  Any suggestions on this?  My web.xml file has this
entry:

   
  JustALittleTest
  JustAlittleTest
   

   
  JustALittleTest
  /JustALittleTest
   

And my action attribute="JustALittleTest".

Brian


-Original Message-
From: McRaven, Brian
Sent: Tuesday, July 11, 2006 1:14 PM
To: users@tomcat.apache.org
Subject: Accessing a servlet

Well I'm ticking these newbie quest

RE: Accessing a servlet

2006-07-12 Thread McRaven, Brian
Yes, the forms are in the ROOT webapp.  The firstpack is in the
ROOT/WEB-INF/classes folder.  Where should the firstpack go?

Brian 

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 11:30 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet

You've deployed this in the ROOT webapp?

form action should be "/firstpack/JustALittleTest"

McRaven, Brian wrote:
> OK so now I have this:
> 
> action="JustALittleTest/firstpack/JustALittleTest"
> 
> For a web.xml of file of:
> 
> 
>JustALittleTest
>firstpack.JustALittleTest
> 
> 
> 
>JustALittleTest
>/firstpack/JustALittleTest
> 
> 
> And I get requested resource not found.
> 
> Brian
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 11:05 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> 
> check your ./WEB-INF/web.xml
>  
>   FooServlet
>   FooServlet
> 
>  
> FooServlet
> /servlet/Foo
>  
> 
> reference to invoke is
> ServletServletNameFromWeb.xml/Url-patternFromActionMapping
> e.g.
> FooServlet/servlet/Foo
> 
> 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: "McRaven, Brian" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Wednesday, July 12, 2006 10:43 AM
> Subject: RE: Accessing a servlet
> 
> 
> If the url-pattern should be /firstpack/JustALittleTest then should 
> the form on the JSP refer to action="firstpack.JustALittleTest" or 
> action="firstpack/JustALittleTest" ?
> 
> Brian
> 
> -Original Message-
> From: McRaven, Brian
> Sent: Wednesday, July 12, 2006 9:55 AM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Accessing a servlet
> 
> When I use this entry I get a request resource not found error.
> 
> 
>JustALittleTest
>firstpack.JustALittleTest
> 
> 
> 
>JustALittleTest
>/firstpack/JustALittleTest
> 
> 
> Under the previous error to this one I was using an entry of:
> 
> 
>JustALittleTest
>JustALittleTest
> 
> 
> 
>JustALittleTest
>/firstpack.JustALittleTest
> 
> 
> With the following entry:
> 
> 
>JustALittleTest
>firstpack.JustALittleTest
> 
> 
> 
>JustALittleTest
>/firstpack.JustALittleTest
> 
> 
> I get an error of 'Error allocating a servlet instance'
> 
> Brian
> 
> -Original Message-
> From: Pid [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 9:46 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> 
>TheServletName
>package.ThisIsTheClassName
> 
> 
>TheServletName
>/a/path/to/theservlet
> 
> 
> "servlet-name" is used to link the definition to the mapping.
> defs are grouped together in web.xml, as are mappings.
> 
> "url-pattern" refers to the path by which you'll access the servlet.
> it can any unique url on your system, and does not have to reflect the

> class name.
> 
> 
> 
> 
> 
> McRaven, Brian wrote:
>> I made the servlet part of a package but I'm getting a Servlet not 
>> Found Exception.  The actions I took to make the servlet part of a 
>> package are the following:
>>
>> 1 added package line to java code, recompiled
>> 2 placed new class file in new subdirectory of WEB-INF/classes folder

>> with same name of package
>> 3 changed entry in web.xml file to reflect package that servlet is in

>> for the url-pattern
>> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
>>
>> I've looked at the log files but I'm not sure what to look for.
>>
>> Brian
>>
>> -Original Message-
>> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 7:49 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> I would check in tomcat logs directory for reasons why the servlet is

>> not available. One reason could be that classes should be in a
> package:
>> http://tomcat.apache.org/faq/classnotfound.html
>>
>> HTH,
>>
>> Jon
>>
>> McRaven, Brian wrote:
>>> OK I did that and now my system is hanging which I guess could be an

>>> error in my code or something with the server.  I think it is my 
>>> code
> 
>>> so I'll look that over.  Thanks for your help.  Sorry for the
>> confusion.
>>> Brian
>>>
>>> -Original Message-
>>> From: David Smith [mailto:[EMAIL PROTECTED]
>>> Sent: Tuesday, July 11, 2006 2:48 PM
>>> To: Tomcat Users List
>>> Subject: Re: Accessing a servlet
>>>
>>> Did you reload the webapp after making the change?  All changes 

Re: PS Old Gen filling up...

2006-07-12 Thread Martin Gainty
Darren/Edmon-
Can you turn on trace facilities for GC in the jvm.cfg?
e.g.
  1.3.1 1.4.1 
  -Xtgc2 -Dibm.dg.trc.print=st_verify 
  -Xtgc34 -Dibm.dg.trc.print=st_compact_verbose,st_verify 

More info avilable at 
http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/Java_SDK/swg21162875.html

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: "Edmon Begoli" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 10:43 AM
Subject: Re: PS Old Gen filling up...


> Darren,
> 
> Old Gen filling up is usually an indicator of a memory leak.
> 
> Other possibility is that object creation is very fast and that
> garbage collector can not keep up.  Since you are using parallel
> collector it is also a possibility that it needs some tweaking.
> 
> The Recalcitrant Engineer ( http://www.burnthacker.com ) blog has a
> good post somewhere on tweaking the parallel connector.  Site seems to
> be too busy now so I can't find it.
> 
> Regards,
> Edmon
> 
> On 7/12/06, Darren Kukulka <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>>
>>
>> Got a situation here where PS Old Gen within the JVM heap is gradually
>> filling up and locking to a point where GC will not release any of it and
>> the application hangs.
>>
>>
>>
>> Running Tomcat 5.5.15 and SUN JDK 1.5_07.
>>
>>
>>
>> Machine is an 8GB dual Xeon processor Dell 2850.
>>
>>
>>
>> The JVM options are set as follows;
>>
>>
>>
>> -Dcatalina.home=F:\tomcat5
>>
>> -Dcatalina.base=F:\tomcat5
>>
>> -Djava.endorsed.dirs=F:\tomcat5\common\endorsed
>>
>> -Djava.io.tmpdir=F:\tomcat5\temp
>>
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>>
>> -Djava.util.logging.config.file=F:\tomcat5\conf\logging.properties
>>
>> -Duser.language=en
>>
>> -Duser.country=GB
>>
>> -Xms1330m
>>
>> -Xmx1330m
>>
>> -XX:+UseParallelGC
>>
>> -XX:ParallelGCThreads=2
>>
>> -XX:+UseParallelOldGC
>>
>> -XX:+UseAdaptiveSizePolicy
>>
>> -XX:NewSize=400m
>>
>> -XX:MaxNewSize=400m
>>
>> -XX:PermSize=128m
>>
>> -XX:MaxPermSize=128m
>>
>>
>>
>> Has anyone had similar behaviour or can you point me in the right direction?
>>
>>
>>
>> Thanks in advance.
>>
>>
>>
>> Darren Kukulka
>>
>>
>>
>>
>>
>>
>>
>> Connaught honoured AIM 'Decade of Excellence' Award
>>
>>
>>
>> Connaught awarded Partnering Contractor of the Year 2005
>>
>>
>>
>> Connaught wins AIM 'Company of the Year' award 2004
>>
>>
>>
>> West of England Business of the Year Award Winner 2003
>>
>>
>>
>> Why not visit our website http://www.connaught.plc.uk
>>
>>
>>
>> Disclaimer:
>>
>> The information transmitted is intended only for the person or entity to 
>> which it is addressed and may contain confidential and/or privileged 
>> material. Any review, retransmission, dissemination or other use of, or 
>> taking of any action in reliance upon, this information by persons or 
>> entities other than the intended recipient is prohibited. If you received 
>> this in error, please contact the sender and delete this message.
>>
>>
>>
>> Connaught plc, Head Office 01392 444546
>>
>>
> 
> 
> -- 
> Thank you,
> Edmon Begoli
> http://blogs.ittoolbox.com/eai/software
> 
> -
> 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: PS Old Gen filling up...

2006-07-12 Thread Edmon Begoli

Martin,

I think Dibm.dg.trc.print are ibm specific settings.

Since he is running 1.5.0_07 he can probably look at it in the real time using
jstat and jmap without adding any extra params to the JVM startup.

e.g. on Linux:

jmap -heap `pgrep java'

jstat -gcutil (or some other option) `pgrep java'

On Windows he will need to run jps to get the process id of the running JVM.


On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

Darren/Edmon-
Can you turn on trace facilities for GC in the jvm.cfg?
e.g.
  1.3.1 1.4.1
  -Xtgc2 -Dibm.dg.trc.print=st_verify
  -Xtgc34 -Dibm.dg.trc.print=st_compact_verbose,st_verify

More info avilable at
http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/Java_SDK/swg21162875.html

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: "Edmon Begoli" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 10:43 AM
Subject: Re: PS Old Gen filling up...


> Darren,
>
> Old Gen filling up is usually an indicator of a memory leak.
>
> Other possibility is that object creation is very fast and that
> garbage collector can not keep up.  Since you are using parallel
> collector it is also a possibility that it needs some tweaking.
>
> The Recalcitrant Engineer ( http://www.burnthacker.com ) blog has a
> good post somewhere on tweaking the parallel connector.  Site seems to
> be too busy now so I can't find it.
>
> Regards,
> Edmon
>
> On 7/12/06, Darren Kukulka <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>>
>>
>> Got a situation here where PS Old Gen within the JVM heap is gradually
>> filling up and locking to a point where GC will not release any of it and
>> the application hangs.
>>
>>
>>
>> Running Tomcat 5.5.15 and SUN JDK 1.5_07.
>>
>>
>>
>> Machine is an 8GB dual Xeon processor Dell 2850.
>>
>>
>>
>> The JVM options are set as follows;
>>
>>
>>
>> -Dcatalina.home=F:\tomcat5
>>
>> -Dcatalina.base=F:\tomcat5
>>
>> -Djava.endorsed.dirs=F:\tomcat5\common\endorsed
>>
>> -Djava.io.tmpdir=F:\tomcat5\temp
>>
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>>
>> -Djava.util.logging.config.file=F:\tomcat5\conf\logging.properties
>>
>> -Duser.language=en
>>
>> -Duser.country=GB
>>
>> -Xms1330m
>>
>> -Xmx1330m
>>
>> -XX:+UseParallelGC
>>
>> -XX:ParallelGCThreads=2
>>
>> -XX:+UseParallelOldGC
>>
>> -XX:+UseAdaptiveSizePolicy
>>
>> -XX:NewSize=400m
>>
>> -XX:MaxNewSize=400m
>>
>> -XX:PermSize=128m
>>
>> -XX:MaxPermSize=128m
>>
>>
>>
>> Has anyone had similar behaviour or can you point me in the right direction?
>>
>>
>>
>> Thanks in advance.
>>
>>
>>
>> Darren Kukulka
>>
>>
>>
>>
>>
>>
>>
>> Connaught honoured AIM 'Decade of Excellence' Award
>>
>>
>>
>> Connaught awarded Partnering Contractor of the Year 2005
>>
>>
>>
>> Connaught wins AIM 'Company of the Year' award 2004
>>
>>
>>
>> West of England Business of the Year Award Winner 2003
>>
>>
>>
>> Why not visit our website http://www.connaught.plc.uk
>>
>>
>>
>> Disclaimer:
>>
>> The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action in 
reliance upon, this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please contact the sender and 
delete this message.
>>
>>
>>
>> Connaught plc, Head Office 01392 444546
>>
>>
>
>
> --
> Thank you,
> Edmon Begoli
> http://blogs.ittoolbox.com/eai/software
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

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



HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-12 Thread simon jones
Hi, can anyone help me with this one?  Thanks!

I've installed tomcat - no probs - manager works great as does the
installation but I can't get the admin working, I know this has been
posted before but I can't find a fix so I'm also providing as much
information as possible with this post.

When I call the admin page I get the following error:

HTTP Status 503 - Servlet admin.login_jsp is currently unavailable




type Status report

message Servlet admin.login_jsp is currently unavailable

description The requested service (Servlet admin.login_jsp is currently
unavailable) is not currently available.





Apache Tomcat/5.5.9

I have my admin files installed in the following locations:

/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/admin.xm
l
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/server/webapps/admin/adm
in.xml

thanks

Simon Jones
SAQ Group

Simon Jones
SAQ Group
Tel: 0870 737 7707
VoIP: 4822813 
Fax: 0870 737 7708
[EMAIL PROTECTED]
http://www.saqnet.co.uk AS29219
SAQ Group providers of communications services for UK Business.
DSL : Domains : Email : Hosting : CoLo : Servers : Racks : Transit :
Backups : Managed Networks : Remote Support.

-
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: PS Old Gen filling up...

2006-07-12 Thread Martin Gainty
Did'nt mean to give a version specific answer-
Thanks for the clarification,

M-
*
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: "Edmon Begoli" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 11:51 AM
Subject: Re: PS Old Gen filling up...


> Martin,
> 
> I think Dibm.dg.trc.print are ibm specific settings.
> 
> Since he is running 1.5.0_07 he can probably look at it in the real time using
> jstat and jmap without adding any extra params to the JVM startup.
> 
> e.g. on Linux:
> 
> jmap -heap `pgrep java'
> 
> jstat -gcutil (or some other option) `pgrep java'
> 
> On Windows he will need to run jps to get the process id of the running JVM.
> 
> 
> On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>> Darren/Edmon-
>> Can you turn on trace facilities for GC in the jvm.cfg?
>> e.g.
>>   1.3.1 1.4.1
>>   -Xtgc2 -Dibm.dg.trc.print=st_verify
>>   -Xtgc34 -Dibm.dg.trc.print=st_compact_verbose,st_verify
>>
>> More info avilable at
>> http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/Java_SDK/swg21162875.html
>>
>> 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: "Edmon Begoli" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" 
>> Sent: Wednesday, July 12, 2006 10:43 AM
>> Subject: Re: PS Old Gen filling up...
>>
>>
>> > Darren,
>> >
>> > Old Gen filling up is usually an indicator of a memory leak.
>> >
>> > Other possibility is that object creation is very fast and that
>> > garbage collector can not keep up.  Since you are using parallel
>> > collector it is also a possibility that it needs some tweaking.
>> >
>> > The Recalcitrant Engineer ( http://www.burnthacker.com ) blog has a
>> > good post somewhere on tweaking the parallel connector.  Site seems to
>> > be too busy now so I can't find it.
>> >
>> > Regards,
>> > Edmon
>> >
>> > On 7/12/06, Darren Kukulka <[EMAIL PROTECTED]> wrote:
>> >> Hi All,
>> >>
>> >>
>> >>
>> >> Got a situation here where PS Old Gen within the JVM heap is gradually
>> >> filling up and locking to a point where GC will not release any of it and
>> >> the application hangs.
>> >>
>> >>
>> >>
>> >> Running Tomcat 5.5.15 and SUN JDK 1.5_07.
>> >>
>> >>
>> >>
>> >> Machine is an 8GB dual Xeon processor Dell 2850.
>> >>
>> >>
>> >>
>> >> The JVM options are set as follows;
>> >>
>> >>
>> >>
>> >> -Dcatalina.home=F:\tomcat5
>> >>
>> >> -Dcatalina.base=F:\tomcat5
>> >>
>> >> -Djava.endorsed.dirs=F:\tomcat5\common\endorsed
>> >>
>> >> -Djava.io.tmpdir=F:\tomcat5\temp
>> >>
>> >> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> >>
>> >> -Djava.util.logging.config.file=F:\tomcat5\conf\logging.properties
>> >>
>> >> -Duser.language=en
>> >>
>> >> -Duser.country=GB
>> >>
>> >> -Xms1330m
>> >>
>> >> -Xmx1330m
>> >>
>> >> -XX:+UseParallelGC
>> >>
>> >> -XX:ParallelGCThreads=2
>> >>
>> >> -XX:+UseParallelOldGC
>> >>
>> >> -XX:+UseAdaptiveSizePolicy
>> >>
>> >> -XX:NewSize=400m
>> >>
>> >> -XX:MaxNewSize=400m
>> >>
>> >> -XX:PermSize=128m
>> >>
>> >> -XX:MaxPermSize=128m
>> >>
>> >>
>> >>
>> >> Has anyone had similar behaviour or can you point me in the right 
>> >> direction?
>> >>
>> >>
>> >>
>> >> Thanks in advance.
>> >>
>> >>
>> >>
>> >> Darren Kukulka
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> Connaught honoured AIM 'Decade of Excellence' Award
>> >>
>> >>
>> >>
>> >> Connaught awarded Partnering Contractor of the Year 2005
>> >>
>> >>
>> >>
>> >> Connaught wins AIM 'Company of the Year' award 2004
>> >>
>> >>
>> >>
>> >> West of England Business of the Year Award Winner 2003
>> >>
>> >>
>> >>
>> >> Why not visit our website http://www.connaught.plc.uk
>> >>
>> >>
>> >>
>> >> Disclaimer:
>> >>
>> >> The information transmitted is intended only for the person or entity to 
>> >> which it is addressed and may contain confidential and/or privileged 
>> >> material. Any review, retransmission, dissemination or other use of, or 
>> >> taking of any action in reliance upon, this information by persons or 
>> >> entities other than the intended recipient is prohibited. If you received 
>> >> this in error, please contact the sender and delete this message.
>> >>
>> >>

Re: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-12 Thread David Smith
Did you store the admin webapp in server/webapps where it belongs?  Also 
check your logs.  There should be an exception trace just before the 
place where this was marked as unavailable.


--David

simon jones wrote:


Hi, can anyone help me with this one?  Thanks!

I've installed tomcat - no probs - manager works great as does the
installation but I can't get the admin working, I know this has been
posted before but I can't find a fix so I'm also providing as much
information as possible with this post.

When I call the admin page I get the following error:

HTTP Status 503 - Servlet admin.login_jsp is currently unavailable




type Status report

message Servlet admin.login_jsp is currently unavailable

description The requested service (Servlet admin.login_jsp is currently
unavailable) is not currently available.





Apache Tomcat/5.5.9

I have my admin files installed in the following locations:

/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/admin.xm
l
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/server/webapps/admin/adm
in.xml

thanks

Simon Jones
SAQ Group

Simon Jones
SAQ Group
Tel: 0870 737 7707
VoIP: 4822813 
Fax: 0870 737 7708

[EMAIL PROTECTED]
http://www.saqnet.co.uk AS29219
SAQ Group providers of communications services for UK Business.
DSL : Domains : Email : Hosting : CoLo : Servers : Racks : Transit :
Backups : Managed Networks : Remote Support.

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



Ant deploy to different timezone

2006-07-12 Thread Phill
I'm deploying an application using the ant deploy task from a server  
in one timezone to Tomcat on a server which is in a timezone one hour  
behind.
When the war gets deployed on the remote server the difference in  
timezone is not taken into account and I end up with files dated in  
the future, which causes problems for the application.


Local server:
$ jar -vtf myapp.war
   367 Wed Jul 12 18:20:28 CEST 2006 common/footer.xhtml
   336 Wed Jul 12 18:20:28 CEST 2006 common/header.xhtml
...

Remote Tomcat server:
$ date
Wed Jul 12 17:35:11 BST 2006

-rw-r--r--   1 www  wheel   367 Jul 12 18:20 footer.xhtml
-rw-r--r--   1 www  wheel   336 Jul 12 18:20 header.xhtml

Is this the expected behaviour or an issue with the Tomcat ant task  
or maybe the jar command?

Suggestions appreciated to get around the problem.
Thanks
Phill

-
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: Accessing a servlet

2006-07-12 Thread Jon Wingfield

ROOT/WEB-INF/classes/firstpack/JustALittleTest.class

and JustALittleTest.java should have a package declaration of firstpack 
prior to compilation.



McRaven, Brian wrote:

Yes, the forms are in the ROOT webapp.  The firstpack is in the
ROOT/WEB-INF/classes folder.  Where should the firstpack go?

Brian 


-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 11:30 AM

To: Tomcat Users List
Subject: Re: Accessing a servlet

You've deployed this in the ROOT webapp?

form action should be "/firstpack/JustALittleTest"

McRaven, Brian wrote:

OK so now I have this:

action="JustALittleTest/firstpack/JustALittleTest"

For a web.xml of file of:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


And I get requested resource not found.

Brian

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 11:05 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


check your ./WEB-INF/web.xml
 
  FooServlet
  FooServlet

 
FooServlet
/servlet/Foo
 

reference to invoke is
ServletServletNameFromWeb.xml/Url-patternFromActionMapping
e.g.
FooServlet/servlet/Foo

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: "McRaven, Brian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 10:43 AM
Subject: RE: Accessing a servlet


If the url-pattern should be /firstpack/JustALittleTest then should 
the form on the JSP refer to action="firstpack.JustALittleTest" or 
action="firstpack/JustALittleTest" ?


Brian

-Original Message-
From: McRaven, Brian
Sent: Wednesday, July 12, 2006 9:55 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Accessing a servlet

When I use this entry I get a request resource not found error.


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack/JustALittleTest


Under the previous error to this one I was using an entry of:


   JustALittleTest
   JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


With the following entry:


   JustALittleTest
   firstpack.JustALittleTest



   JustALittleTest
   /firstpack.JustALittleTest


I get an error of 'Error allocating a servlet instance'

Brian

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 9:46 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet


   TheServletName
   package.ThisIsTheClassName


   TheServletName
   /a/path/to/theservlet


"servlet-name" is used to link the definition to the mapping.
defs are grouped together in web.xml, as are mappings.

"url-pattern" refers to the path by which you'll access the servlet.
it can any unique url on your system, and does not have to reflect the



class name.





McRaven, Brian wrote:
I made the servlet part of a package but I'm getting a Servlet not 
Found Exception.  The actions I took to make the servlet part of a 
package are the following:


1 added package line to java code, recompiled
2 placed new class file in new subdirectory of WEB-INF/classes folder



with same name of package
3 changed entry in web.xml file to reflect package that servlet is in



for the url-pattern
4 changed JSP so that the forms action="firstpack.JustALittleTest"

I've looked at the log files but I'm not sure what to look for.

Brian

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 7:49 AM
To: Tomcat Users List
Subject: Re: Accessing a servlet

I would check in tomcat logs directory for reasons why the servlet is



not available. One reason could be that classes should be in a

package:

http://tomcat.apache.org/faq/classnotfound.html

HTH,

Jon

McRaven, Brian wrote:

OK I did that and now my system is hanging which I guess could be an


error in my code or something with the server.  I think it is my 
code

so I'll look that over.  Thanks for your help.  Sorry for the

confusion.

Brian

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 2:48 PM
To: Tomcat Users List
Subject: Re: Accessing a servlet

Did you reload the webapp after making the change?  All changes to 
WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will 
require a reload before they become active in tomcat.


--David

McRaven, Brian wrote:

I was able to refer to a book I have and so I dropped the .cl

Bug in c:url taglib

2006-07-12 Thread Martyn Hiemstra

Hi All

I am having a problem with Tomcat 5.0.28. I designed a website a few 
months ago and I started working on it again. I cant remember what 
version Tomcat I designed it in but now I'm trying Tomcat 5.0.28.


When I deploy my website everything deploys perfectly. When i view the 
page it's white as if there is no style. I then viewed the source and I 
saw this:


   
   
   type="text/css" />

   

The source code in my jsp file is this:

   " 
type="text/css" />
   />" type="text/css" />
   " type="text/css" />
   />" type="text/css" />


As you can see the c:url tag messes up the url by adding 2 forward 
slahes. This makes the browser think that it shoulod load the style 
sheets from the server displayThemeCss, displayModuleCss etc


I beleive this to be a bug in the class that formats the url. Does 
anybody know how to solve this.


Thanks in advance,
Martyn




-
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: Accessing a servlet

2006-07-12 Thread McRaven, Brian
I check out on all of that.  I'm not sure if this is important but when
I build the servlet there is an error that I get.  It underlines my
package and says that the package name was not one that it expected.
It's not a warning its an error.  I still get a class file out of the
process.  Does this sound like I need to develop the servlet in the
firstpack folder?  

Brian

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 12:59 PM
To: Tomcat Users List
Subject: Re: Accessing a servlet

ROOT/WEB-INF/classes/firstpack/JustALittleTest.class

and JustALittleTest.java should have a package declaration of firstpack
prior to compilation.


McRaven, Brian wrote:
> Yes, the forms are in the ROOT webapp.  The firstpack is in the
> ROOT/WEB-INF/classes folder.  Where should the firstpack go?
> 
> Brian 
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 12, 2006 11:30 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> You've deployed this in the ROOT webapp?
> 
> form action should be "/firstpack/JustALittleTest"
> 
> McRaven, Brian wrote:
>> OK so now I have this:
>>
>> action="JustALittleTest/firstpack/JustALittleTest"
>>
>> For a web.xml of file of:
>>
>> 
>>JustALittleTest
>>firstpack.JustALittleTest
>> 
>>
>> 
>>JustALittleTest
>>/firstpack/JustALittleTest
>> 
>>
>> And I get requested resource not found.
>>
>> Brian
>>
>> -Original Message-
>> From: Martin Gainty [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 11:05 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>>
>> check your ./WEB-INF/web.xml
>>  
>>   FooServlet
>>   FooServlet
>> 
>>  
>> FooServlet
>> /servlet/Foo
>>  
>>
>> reference to invoke is
>> ServletServletNameFromWeb.xml/Url-patternFromActionMapping
>> e.g.
>> FooServlet/servlet/Foo
>>
>> 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: "McRaven, Brian" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" 
>> Sent: Wednesday, July 12, 2006 10:43 AM
>> Subject: RE: Accessing a servlet
>>
>>
>> If the url-pattern should be /firstpack/JustALittleTest then should 
>> the form on the JSP refer to action="firstpack.JustALittleTest" or 
>> action="firstpack/JustALittleTest" ?
>>
>> Brian
>>
>> -Original Message-
>> From: McRaven, Brian
>> Sent: Wednesday, July 12, 2006 9:55 AM
>> To: Tomcat Users List; [EMAIL PROTECTED]
>> Subject: RE: Accessing a servlet
>>
>> When I use this entry I get a request resource not found error.
>>
>> 
>>JustALittleTest
>>firstpack.JustALittleTest
>> 
>>
>> 
>>JustALittleTest
>>/firstpack/JustALittleTest
>> 
>>
>> Under the previous error to this one I was using an entry of:
>>
>> 
>>JustALittleTest
>>JustALittleTest
>> 
>>
>> 
>>JustALittleTest
>>/firstpack.JustALittleTest
>> 
>>
>> With the following entry:
>>
>> 
>>JustALittleTest
>>firstpack.JustALittleTest
>> 
>>
>> 
>>JustALittleTest
>>/firstpack.JustALittleTest
>> 
>>
>> I get an error of 'Error allocating a servlet instance'
>>
>> Brian
>>
>> -Original Message-
>> From: Pid [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 9:46 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> 
>>TheServletName
>>package.ThisIsTheClassName
>> 
>> 
>>TheServletName
>>/a/path/to/theservlet
>> 
>>
>> "servlet-name" is used to link the definition to the mapping.
>> defs are grouped together in web.xml, as are mappings.
>>
>> "url-pattern" refers to the path by which you'll access the servlet.
>> it can any unique url on your system, and does not have to reflect
the
> 
>> class name.
>>
>>
>>
>>
>>
>> McRaven, Brian wrote:
>>> I made the servlet part of a package but I'm getting a Servlet not 
>>> Found Exception.  The actions I took to make the servlet part of a 
>>> package are the following:
>>>
>>> 1 added package line to java code, recompiled
>>> 2 placed new class file in new subdirectory of WEB-INF/classes
folder
> 
>>> with same name of package
>>> 3 changed entry in web.xml file to reflect package that servlet is
in
> 
>>> for the url-pattern
>>> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
>>>
>>> I've looked at the log files but I'm not sure what to look for.
>>>
>>> Brian
>>>
>>> -Original Message-
>>> From: Jon Wingfield [mailto:[EMAIL P

RE: Accessing a servlet

2006-07-12 Thread Lenandlar Singh


"McRaven, Brian" <[EMAIL PROTECTED]> wrote: I check out on all of that. I'm 
not sure if this is important but when
I build the servlet there is an error that I get. It underlines my
package and says that the package name was not one that it expected.
   
  Make sure your package declaration is correct. e.g. 
   
  package firstservlet;
   
  Your servlet should be in here...
  



-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 12:59 PM
To: Tomcat Users List
Subject: Re: Accessing a servlet

ROOT/WEB-INF/classes/firstpack/JustALittleTest.class

and JustALittleTest.java should have a package declaration of firstpack
prior to compilation.


McRaven, Brian wrote:
> Yes, the forms are in the ROOT webapp. The firstpack is in the
> ROOT/WEB-INF/classes folder. Where should the firstpack go?
> 
> Brian 
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 12, 2006 11:30 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> You've deployed this in the ROOT webapp?
> 
> form action should be "/firstpack/JustALittleTest"
> 
> McRaven, Brian wrote:
>> OK so now I have this:
>>
>> action="JustALittleTest/firstpack/JustALittleTest"
>>
>> For a web.xml of file of:
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack/JustALittleTest
>> 
>>
>> And I get requested resource not found.
>>
>> Brian
>>
>> -Original Message-
>> From: Martin Gainty [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 11:05 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>>
>> check your ./WEB-INF/web.xml
>> 
>> FooServlet
>> FooServlet
>> 
>> 
>> FooServlet
>> /servlet/Foo
>> 
>>
>> reference to invoke is
>> ServletServletNameFromWeb.xml/Url-patternFromActionMapping
>> e.g.
>> FooServlet/servlet/Foo
>>
>> 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: "McRaven, Brian" 
>> To: "Tomcat Users List" 
>> Sent: Wednesday, July 12, 2006 10:43 AM
>> Subject: RE: Accessing a servlet
>>
>>
>> If the url-pattern should be /firstpack/JustALittleTest then should 
>> the form on the JSP refer to action="firstpack.JustALittleTest" or 
>> action="firstpack/JustALittleTest" ?
>>
>> Brian
>>
>> -Original Message-
>> From: McRaven, Brian
>> Sent: Wednesday, July 12, 2006 9:55 AM
>> To: Tomcat Users List; [EMAIL PROTECTED]
>> Subject: RE: Accessing a servlet
>>
>> When I use this entry I get a request resource not found error.
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack/JustALittleTest
>> 
>>
>> Under the previous error to this one I was using an entry of:
>>
>> 
>> JustALittleTest
>> JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack.JustALittleTest
>> 
>>
>> With the following entry:
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack.JustALittleTest
>> 
>>
>> I get an error of 'Error allocating a servlet instance'
>>
>> Brian
>>
>> -Original Message-
>> From: Pid [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 9:46 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> 
>> TheServletName
>> package.ThisIsTheClassName
>> 
>> 
>> TheServletName
>> /a/path/to/theservlet
>> 
>>
>> "servlet-name" is used to link the definition to the mapping.
>> defs are grouped together in web.xml, as are mappings.
>>
>> "url-pattern" refers to the path by which you'll access the servlet.
>> it can any unique url on your system, and does not have to reflect
the
> 
>> class name.
>>
>>
>>
>>
>>
>> McRaven, Brian wrote:
>>> I made the servlet part of a package but I'm getting a Servlet not 
>>> Found Exception. The actions I took to make the servlet part of a 
>>> package are the following:
>>>
>>> 1 added package line to java code, recompiled
>>> 2 placed new class file in new subdirectory of WEB-INF/classes
folder
> 
>>> with same name of package
>>> 3 changed entry in web.xml file to reflect package that servlet is
in
> 
>>> for the url-pattern
>>> 4 changed JSP so that the forms action="firstpack.JustALittleTest"
>>>
>>> I've looked at the log files but I'm not sure what to look for.
>>>
>>> Brian
>>>
>>> -Original Message-
>>> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
>>> Sent: Wednesday, July 12, 2006 7:49 AM
>>> To: Tomcat Users List
>>> Subject: Re: Accessing a servlet
>>>
>>> I would check in tomcat logs directory for reasons why the servlet
is
> 
>>> not available. One reason 

RE: Accessing a servlet

2006-07-12 Thread McRaven, Brian
I appreciate everyone's help here.  I've been double checking my syntax.  I 
created a new project with the old code with a package inserted into the 
project.  My servlet now delivers a blank screen when it should redirect me to 
one of my other jsp's.  So I'm getting my servlet recognized but it isn't doing 
what I want.  I'm going to try a different approach in my code.  The way I have 
it now I'm using a print statement to output just a <% action tag with 
appropiate body %>.

Brian

-Original Message-
From: Lenandlar Singh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 1:17 PM
To: Tomcat Users List
Subject: RE: Accessing a servlet



"McRaven, Brian" <[EMAIL PROTECTED]> wrote: I check out on all of that. I'm 
not sure if this is important but when
I build the servlet there is an error that I get. It underlines my package and 
says that the package name was not one that it expected.
   
  Make sure your package declaration is correct. e.g. 
   
  package firstservlet;
   
  Your servlet should be in here...
  



-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 12:59 PM
To: Tomcat Users List
Subject: Re: Accessing a servlet

ROOT/WEB-INF/classes/firstpack/JustALittleTest.class

and JustALittleTest.java should have a package declaration of firstpack prior 
to compilation.


McRaven, Brian wrote:
> Yes, the forms are in the ROOT webapp. The firstpack is in the 
> ROOT/WEB-INF/classes folder. Where should the firstpack go?
> 
> Brian
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 11:30 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> You've deployed this in the ROOT webapp?
> 
> form action should be "/firstpack/JustALittleTest"
> 
> McRaven, Brian wrote:
>> OK so now I have this:
>>
>> action="JustALittleTest/firstpack/JustALittleTest"
>>
>> For a web.xml of file of:
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack/JustALittleTest
>> 
>>
>> And I get requested resource not found.
>>
>> Brian
>>
>> -Original Message-
>> From: Martin Gainty [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 11:05 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>>
>> check your ./WEB-INF/web.xml
>> 
>> FooServlet
>> FooServlet
>> 
>> 
>> FooServlet
>> /servlet/Foo
>> 
>>
>> reference to invoke is
>> ServletServletNameFromWeb.xml/Url-patternFromActionMapping
>> e.g.
>> FooServlet/servlet/Foo
>>
>> 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: "McRaven, Brian" 
>> To: "Tomcat Users List" 
>> Sent: Wednesday, July 12, 2006 10:43 AM
>> Subject: RE: Accessing a servlet
>>
>>
>> If the url-pattern should be /firstpack/JustALittleTest then should 
>> the form on the JSP refer to action="firstpack.JustALittleTest" or 
>> action="firstpack/JustALittleTest" ?
>>
>> Brian
>>
>> -Original Message-
>> From: McRaven, Brian
>> Sent: Wednesday, July 12, 2006 9:55 AM
>> To: Tomcat Users List; [EMAIL PROTECTED]
>> Subject: RE: Accessing a servlet
>>
>> When I use this entry I get a request resource not found error.
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack/JustALittleTest
>> 
>>
>> Under the previous error to this one I was using an entry of:
>>
>> 
>> JustALittleTest
>> JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack.JustALittleTest
>> 
>>
>> With the following entry:
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack.JustALittleTest
>> 
>>
>> I get an error of 'Error allocating a servlet instance'
>>
>> Brian
>>
>> -Original Message-
>> From: Pid [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 9:46 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>> 
>> TheServletName
>> package.ThisIsTheClassName
>> 
>> 
>> TheServletName
>> /a/path/to/theservlet
>> 
>>
>> "servlet-name" is used to link the definition to the mapping.
>> defs are grouped together in web.xml, as are mappings.
>>
>> "url-pattern" refers to the path by which you'll access the servlet.
>> it can any unique url on your system, and does not have to reflect
the
> 
>> class name.
>>
>>
>>
>>
>>
>> McRaven, Brian wrote:
>>> I made the servlet part of a package but I'm getting a Servlet not 
>>> Found Exception. The actions I took to make the servlet part of a 
>>> package are the following:
>>>
>>> 1 added package line to java code, recompiled
>>>

Alias' and the like

2006-07-12 Thread dhay
Bump!

Would really appreciate some help on this one...

cheers,

David

- Forwarded by David Hay/Lex/Lexmark on 12/07/2006 13:29 -
|-+>
| |   [EMAIL PROTECTED] |
| ||
| |   11/07/2006 13:03 |
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>-|
  | 
|
  |   To:   "Tomcat Users List"
|
  |   cc:   
|
  |   Subject:  Alias' and the like 
|
  
>-|



Hi,

We're running Apache in front of multiple tomcats with mod_jk.

We have an admin app that we'd like to access using a different URL from
other server connections, and I am looking for advice on the best way to do
this.  We will have the single web app, but need to access parts of it
from:

  http://myserver/admin

and the rest of it from

  http://myserver/services

I think I have several choices:

1)  add a Tomcat context for /admin and /services in the conf directory.
 When I tried this, however, it seemed to load the whole web app twice
(we're using Spring, so it loads the app Context twice ).  Is there a way
to just "point to it", rather than load it?

2)  add an Alias in Apache's httpd.conf
  what do I point it to seeing that it has to go through mod_jk and
tomcat?

3)  use mod_jk
  how would I do that?  we currently have 3 load balancers defined, so
we can balance 3 aspects of the system as follows:
  JKMount /services/admin/* adminloadbalancer
  JKMount /services/httpadaptor/* adaptorloadbalancer
  JkMount /services/* clientloadbalancer
 I'd like to do JKMount /admin/* adminloadbalancer but  need the alias
for /admin to point to /services/admin.

I would be very grateful if someone could explain the best option...

cheers,

David


-
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: Accessing a servlet

2006-07-12 Thread Martin Gainty
One more thing
the packagename you use to implement your class needs to be reflected in the 
classes folder WEB-INF/classes
so for example your class is called barServlet and your package is called foo 
the location should be
$CATALINA_HOME/webapps/barServlet/WEB-INF/classes/foo/barServlet.class

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



- Original Message - 
From: "McRaven, Brian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 1:24 PM
Subject: RE: Accessing a servlet


I appreciate everyone's help here.  I've been double checking my syntax.  I 
created a new project with the old code with a package inserted into the 
project.  My servlet now delivers a blank screen when it should redirect me to 
one of my other jsp's.  So I'm getting my servlet recognized but it isn't doing 
what I want.  I'm going to try a different approach in my code.  The way I have 
it now I'm using a print statement to output just a <% action tag with 
appropiate body %>.

Brian

-Original Message-
From: Lenandlar Singh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 1:17 PM
To: Tomcat Users List
Subject: RE: Accessing a servlet



"McRaven, Brian" <[EMAIL PROTECTED]> wrote: I check out on all of that. I'm 
not sure if this is important but when
I build the servlet there is an error that I get. It underlines my package and 
says that the package name was not one that it expected.
   
  Make sure your package declaration is correct. e.g. 
   
  package firstservlet;
   
  Your servlet should be in here...
  



-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 12:59 PM
To: Tomcat Users List
Subject: Re: Accessing a servlet

ROOT/WEB-INF/classes/firstpack/JustALittleTest.class

and JustALittleTest.java should have a package declaration of firstpack prior 
to compilation.


McRaven, Brian wrote:
> Yes, the forms are in the ROOT webapp. The firstpack is in the 
> ROOT/WEB-INF/classes folder. Where should the firstpack go?
> 
> Brian
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 11:30 AM
> To: Tomcat Users List
> Subject: Re: Accessing a servlet
> 
> You've deployed this in the ROOT webapp?
> 
> form action should be "/firstpack/JustALittleTest"
> 
> McRaven, Brian wrote:
>> OK so now I have this:
>>
>> action="JustALittleTest/firstpack/JustALittleTest"
>>
>> For a web.xml of file of:
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack/JustALittleTest
>> 
>>
>> And I get requested resource not found.
>>
>> Brian
>>
>> -Original Message-
>> From: Martin Gainty [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 11:05 AM
>> To: Tomcat Users List
>> Subject: Re: Accessing a servlet
>>
>>
>> check your ./WEB-INF/web.xml
>> 
>> FooServlet
>> FooServlet
>> 
>> 
>> FooServlet
>> /servlet/Foo
>> 
>>
>> reference to invoke is
>> ServletServletNameFromWeb.xml/Url-patternFromActionMapping
>> e.g.
>> FooServlet/servlet/Foo
>>
>> 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: "McRaven, Brian" 
>> To: "Tomcat Users List" 
>> Sent: Wednesday, July 12, 2006 10:43 AM
>> Subject: RE: Accessing a servlet
>>
>>
>> If the url-pattern should be /firstpack/JustALittleTest then should 
>> the form on the JSP refer to action="firstpack.JustALittleTest" or 
>> action="firstpack/JustALittleTest" ?
>>
>> Brian
>>
>> -Original Message-
>> From: McRaven, Brian
>> Sent: Wednesday, July 12, 2006 9:55 AM
>> To: Tomcat Users List; [EMAIL PROTECTED]
>> Subject: RE: Accessing a servlet
>>
>> When I use this entry I get a request resource not found error.
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack/JustALittleTest
>> 
>>
>> Under the previous error to this one I was using an entry of:
>>
>> 
>> JustALittleTest
>> JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack.JustALittleTest
>> 
>>
>> With the following entry:
>>
>> 
>> JustALittleTest
>> firstpack.JustALittleTest
>> 
>>
>> 
>> JustALittleTest
>> /firstpack.JustALittleTest
>> 
>>
>> I get an error of 'Error

Re: Alias' and the like

2006-07-12 Thread Martin Gainty
Hello Dave
Option #2
allows you to access seemlingly disprate sites thru Virtual Hosts check out
http://httpd.apache.org/docs/1.3/vhosts/examples.html#serverpath
HTH
Martin--
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 1:29 PM
Subject: Alias' and the like


> Bump!
> 
> Would really appreciate some help on this one...
> 
> cheers,
> 
> David
> 
> - Forwarded by David Hay/Lex/Lexmark on 12/07/2006 13:29 -
> |-+>
> | |   [EMAIL PROTECTED] |
> | ||
> | |   11/07/2006 13:03 |
> | |   Please respond to|
> | |   "Tomcat Users|
> | |   List"|
> | ||
> |-+>
>  
> >-|
>  |
>  |
>  |   To:   "Tomcat Users List"   
>  |
>  |   cc:  
>  |
>  |   Subject:  Alias' and the like
>  |
>  
> >-|
> 
> 
> 
> Hi,
> 
> We're running Apache in front of multiple tomcats with mod_jk.
> 
> We have an admin app that we'd like to access using a different URL from
> other server connections, and I am looking for advice on the best way to do
> this.  We will have the single web app, but need to access parts of it
> from:
> 
>  http://myserver/admin
> 
> and the rest of it from
> 
>  http://myserver/services
> 
> I think I have several choices:
> 
> 1)  add a Tomcat context for /admin and /services in the conf directory.
> When I tried this, however, it seemed to load the whole web app twice
> (we're using Spring, so it loads the app Context twice ).  Is there a way
> to just "point to it", rather than load it?
> 
> 2)  add an Alias in Apache's httpd.conf
>  what do I point it to seeing that it has to go through mod_jk and
> tomcat?
> 
> 3)  use mod_jk
>  how would I do that?  we currently have 3 load balancers defined, so
> we can balance 3 aspects of the system as follows:
>  JKMount /services/admin/* adminloadbalancer
>  JKMount /services/httpadaptor/* adaptorloadbalancer
>  JkMount /services/* clientloadbalancer
> I'd like to do JKMount /admin/* adminloadbalancer but  need the alias
> for /admin to point to /services/admin.
> 
> I would be very grateful if someone could explain the best option...
> 
> cheers,
> 
> David
> 
> 
> -
> 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: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-12 Thread simon jones
Hi David,

Ok looks as thought the files are in the correct place:

cp -r admin /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps

There's nothing in tail -f
/usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log

When I do a tail and access the admin it doesn't do anything.

 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] redeploy
resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF/context.xm
l
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload
resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/WEB-INF/web.xml
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload
resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
redeploy resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps/manager
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
redeploy resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/manager.
xml
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
reload resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
reload resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/manager.
xml
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.loader.WebappClassLoader - modified()
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.loader.WebappClassLoader - modified() 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 17:38
To: Tomcat Users List
Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently
unavailable

Did you store the admin webapp in server/webapps where it belongs?  Also
check your logs.  There should be an exception trace just before the
place where this was marked as unavailable.

--David

simon jones wrote:

>Hi, can anyone help me with this one?  Thanks!
>
>I've installed tomcat - no probs - manager works great as does the 
>installation but I can't get the admin working, I know this has been 
>posted before but I can't find a fix so I'm also providing as much 
>information as possible with this post.
>
>When I call the admin page I get the following error:
>
>HTTP Status 503 - Servlet admin.login_jsp is currently unavailable
>
>---
>-
>
>
>type Status report
>
>message Servlet admin.login_jsp is currently unavailable
>
>description The requested service (Servlet admin.login_jsp is currently
>unavailable) is not currently available.
>
>
>---
>-
>
>
>Apache Tomcat/5.5.9
>
>I have my admin files installed in the following locations:
>
>/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/admin.x
>m
>l
>/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/server/webapps/admin/ad
>m
>in.xml
>
>thanks
>
>Simon Jones
>SAQ Group
>
>Simon Jones
>SAQ Group
>Tel: 0870 737 7707
>VoIP: 4822813
>Fax: 0870 737 7708
>[EMAIL PROTECTED]
>http://www.saqnet.co.uk AS29219
>SAQ Group providers of communications services for UK Business.
>DSL : Domains : Email : Hosting : CoLo : Servers : Racks : Transit :
>Backups : Managed Networks : Remote Support.
>
>-
>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: Alias' and the like

2006-07-12 Thread Brian Munroe

On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:



allows you to access seemlingly disprate sites thru Virtual Hosts check out
http://httpd.apache.org/docs/1.3/vhosts/examples.html#serverpath



I am pretty sure Alias will only work *if* you (Dave) don't need to
process it through Tomcat.  It is shown in the mod_jk examples as a
way to link to static content,

Just a total shot in the dark here (and probably really bad advice),
but how about a symlink in the webapps dir?

admin -> services

-- brian

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



Re: Alias' and the like

2006-07-12 Thread Mladen Turk

[EMAIL PROTECTED] wrote:

Hi,

 I'd like to do JKMount /admin/* adminloadbalancer but  need the alias
for /admin to point to /services/admin.

I would be very grateful if someone could explain the best option...



Use mod_rewrite. You need to rewrite the incoming URL
on the fly, right?

RewriteEngine  on
RewriteRule^/examples/(.*)  /servlets-examples/$1  [PT]
JkMount /servlets-examples/* myworker

In your case it should be:
RewriteRule^/admin/(.*)  /services/admin/$1  [PT]
JkMount /services/admin/* adminloadbalance

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: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-12 Thread David Smith
I also don't see even one reference to the admin webapp.  This tells me 
something fishy is going on.


Try this:

First, I see you copied the admin webapp to server/webapps instead of 
moving it.  Delete the admin webapp in 
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps.  It's just going to be 
confusing to leave a copy there (for both you and tomcat).


Second, there should be an admin.xml file in the same archive you got 
the admin webapp from.  That should be placed in 
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost right 
along side manager.xml.


Now restart tomcat and take a look for messages related to the admin webapp.

--David

simon jones wrote:


Hi David,

Ok looks as thought the files are in the correct place:

cp -r admin /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps

There's nothing in tail -f
/usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log

When I do a tail and access the admin it doesn't do anything.

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] redeploy
resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF/context.xm
l
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload
resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/WEB-INF/web.xml
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload
resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
redeploy resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps/manager
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
redeploy resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/manager.
xml
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
reload resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager]
reload resource
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/manager.
xml
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.loader.WebappClassLoader - modified()
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.loader.WebappClassLoader - modified() 


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 17:38

To: Tomcat Users List
Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently
unavailable

Did you store the admin webapp in server/webapps where it belongs?  Also
check your logs.  There should be an exception trace just before the
place where this was marked as unavailable.

--David

simon jones wrote:

 


Hi, can anyone help me with this one?  Thanks!

I've installed tomcat - no probs - manager works great as does the 
installation but I can't get the admin working, I know this has been 
posted before but I can't find a fix so I'm also providing as much 
information as possible with this post.


When I call the admin page I get the following error:

HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

---
-


type Status report

message Servlet admin.login_jsp is currently unavailable

description The requested service (Servlet admin.login_jsp is currently
unavailable) is not currently available.


---
-


Apache Tomcat/5.5.9

I have my admin files installed in the following locations:

/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost/admin.x
m
l
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/server/webapps/admin/ad
m
in.xml

thanks

Simon Jones
SAQ Group

Simon Jones
SAQ Group
Tel: 0870 737 7707
VoIP: 4822813
Fax: 0870 737 7708
[EMAIL PROTECTED]
http://www.saqnet.co.uk AS29219
SAQ Group providers of communications services for UK Business.
DSL : Domains : Email : Hosting : CoLo : Servers : Racks : Transit :
Backups : Managed Networks : Remote Support.

-
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

What are ciphers ?

2006-07-12 Thread Anandi Vyagrapuri
Hi,
Can naybody tell me what ciphers are and what i
ciphers i must use with SSL ?

Thanks
Anandi

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: What are ciphers ?

2006-07-12 Thread Mike Klein
A little googling will get you what you want.

A cipher is a security algorithm (des, rc, etc.). Ciphertext is
cleartext (plaintext) which has been encrypted using an algorithm
(cipher) and a key.

You can use ssl handshaking to see supported ciphers and java jsse has
methods for dumping this information out. Get list of providers and
start calling dump routines.


mike

> Anandi Vyagrapuri wrote:
>   
>> Hi,
>> Can naybody tell me what ciphers are and what i
>> ciphers i must use with SSL ?
>>
>> Thanks
>> Anandi
>>
>> __
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>> http://mail.yahoo.com 
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>   
>> 
>
>   

-
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: What are ciphers ?

2006-07-12 Thread Mike Klein
D:\Projects\v4kernel>openssl ciphers
DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:DES-CBC3-SHA:DES-CBC3-MD5:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA:RC2-CBC-MD5:DHE-DSS-RC4-SHA:RC4-SH
A:RC4-MD5:RC4-MD5:RC4-64-MD5:EXP1024-DHE-DSS-DES-CBC-SHA:EXP1024-DES-CBC-SHA:EXP1024-RC2-CBC-MD5:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA:DES-CBC-SHA:DES-CBC-MD5:EXP1024-DHE-DSS-RC4-SHA:EXP1024-RC4-SHA
:EXP1024-RC4-MD5:EXP-EDH-RSA-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA:EXP-DES-CBC-SHA:EXP-RC2-CBC-MD5:EXP-RC2-CBC-MD5:EXP-RC4-MD5:EXP-RC4-MD5

Clarification...cipher is "cryptographic" algorithm.

Ciphersuite is a list of ciphers that can be used. Each entry consists
of compound string specifying choice of key exchange, encryption, and
hashing algorithms/sizes to use.


mike

Mike Klein wrote:
> A little googling will get you what you want.
>
> A cipher is a security algorithm (des, rc, etc.). Ciphertext is
> cleartext (plaintext) which has been encrypted using an algorithm
> (cipher) and a key.
>
> You can use ssl handshaking to see supported ciphers and java jsse has
> methods for dumping this information out. Get list of providers and
> start calling dump routines.
>
>
> mike
>
>   
>> Anandi Vyagrapuri wrote:
>>   
>> 
>>> Hi,
>>> Can naybody tell me what ciphers are and what i
>>> ciphers i must use with SSL ?
>>>
>>> Thanks
>>> Anandi
>>>
>>> __
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>> http://mail.yahoo.com 
>>>
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>   
>>> 
>>>   
>>   
>> 
>
> -
> 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: Alias' and the like

2006-07-12 Thread Martin Gainty
This solution works if you're front-ending with Apache-
I have seen CGI/Perl do this to specifically route incoming requests to 
CGI/Perl site 1 to their folder
(and consequent access to site2 to Tomcat)

Symlink is terminal specific setting up term access to symbols representing 
another folder ..
Symlink is agnostic to which protocol is used to access port 8080 should route 
to Apache/Tomcat in that order
with no proviso for security and 
consequent erroring by external programs that cant read a symlink (such as 
WinSCP)

Caveat Emptor-
M-
*
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: "Brian Munroe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" ; "Martin Gainty" <[EMAIL 
PROTECTED]>
Sent: Wednesday, July 12, 2006 1:59 PM
Subject: Re: Alias' and the like


> On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> 
>>
>> allows you to access seemlingly disprate sites thru Virtual Hosts check out
>> http://httpd.apache.org/docs/1.3/vhosts/examples.html#serverpath
>>
> 
> I am pretty sure Alias will only work *if* you (Dave) don't need to
> process it through Tomcat.  It is shown in the mod_jk examples as a
> way to link to static content,
> 
> Just a total shot in the dark here (and probably really bad advice),
> but how about a symlink in the webapps dir?
> 
> admin -> services
> 
> -- brian
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: Alias' and the like

2006-07-12 Thread dhay
We have to be able to run on Windows, so won't be able to use symlink.

I'm going to take a look at mod_rewrite suggested by Mladen.

cheers,

David
x54680


|-+>
| |   "Martin Gainty"  |
| |   <[EMAIL PROTECTED]|
| |   com> |
| ||
| |   12/07/2006 16:07 |
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>-|
  | 
|
  |   To:   "Tomcat Users List"
|
  |   cc:   
|
  |   Subject:  Re: Alias' and the like 
|
  
>-|



This solution works if you're front-ending with Apache-
I have seen CGI/Perl do this to specifically route incoming requests to
CGI/Perl site 1 to their folder
(and consequent access to site2 to Tomcat)

Symlink is terminal specific setting up term access to symbols representing
another folder ..
Symlink is agnostic to which protocol is used to access port 8080 should
route to Apache/Tomcat in that order
with no proviso for security and
consequent erroring by external programs that cant read a symlink (such as
WinSCP)

Caveat Emptor-
M-
*
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: "Brian Munroe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" ; "Martin Gainty"
<[EMAIL PROTECTED]>
Sent: Wednesday, July 12, 2006 1:59 PM
Subject: Re: Alias' and the like


> On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
>>
>> allows you to access seemlingly disprate sites thru Virtual Hosts check
out
>> http://httpd.apache.org/docs/1.3/vhosts/examples.html#serverpath
>>
>
> I am pretty sure Alias will only work *if* you (Dave) don't need to
> process it through Tomcat.  It is shown in the mod_jk examples as a
> way to link to static content,
>
> Just a total shot in the dark here (and probably really bad advice),
> but how about a symlink in the webapps dir?
>
> admin -> services
>
> -- brian
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> >



-
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: Alias' and the like

2006-07-12 Thread Brian Munroe

On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


This solution works if you're front-ending with Apache-
I have seen CGI/Perl do this to specifically route incoming requests to 
CGI/Perl site 1 to their folder
(and consequent access to site2 to Tomcat)


Do you have any configuration file examples?  I can't get it to work.
Here is my test

Alias /admin1 /usr/local/tomcat/dev/webapps/bmtest/admin
Alias /service /usr/local/tomcat/dev/webapps/bmtest/service
JkMount /admin1* dev
JkMount /service* dev

Inside of my bmtest/admin and bmtest/service directories I have very
basic JSP files.  I get a Tomcat level 404

I am still not convinced that JkMount respects the Alias directive.

-- brian

ps.  While we continue to beat this dead horse, I think Mladen Turk
came up with a vaild solution.

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



Adding classpaths and path mapping

2006-07-12 Thread Barrie Selack
I've been looking through the Tomcat docs (there are so many...) and I
can't find the following two things. I am wondering if they are available?

In Resin you can specify addition class paths for loading resources such as:

 
  

Is there a way to do this for a Virtual Host in Tomcat?

Also you can specify path mapping to hide the real path such as:

   
/fakepath/*
/some/real/path
   

Is there a way in Tomcat to do this?

I'm looking at switching to Tomcat from Resin, but need to find out how
I can do these conversions.

Thanks for any help.

Barrie




-
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: Alias' and the like

2006-07-12 Thread Martin Gainty
  personally I caution against OS specific constructs
  to use Apache or Tomcat specific directives
  including mod-rewrite

  e.g. httpd.conf 
 
  ServerName /usr/local/tomcat/dev/webapps/bmtest/admin
  ServerAlias admin1
  ...
  
  Good Luck

  *
  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: "Brian Munroe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 12, 2006 4:47 PM
Subject: Re: Alias' and the like


> On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> 
>> This solution works if you're front-ending with Apache-
>> I have seen CGI/Perl do this to specifically route incoming requests to 
>> CGI/Perl site 1 to their folder
>> (and consequent access to site2 to Tomcat)
> 
> Do you have any configuration file examples?  I can't get it to work.
> Here is my test
> 
> Alias /admin1 /usr/local/tomcat/dev/webapps/bmtest/admin
> Alias /service /usr/local/tomcat/dev/webapps/bmtest/service
> JkMount /admin1* dev
> JkMount /service* dev
> 
> Inside of my bmtest/admin and bmtest/service directories I have very
> basic JSP files.  I get a Tomcat level 404
> 
> I am still not convinced that JkMount respects the Alias directive.
> 
> -- brian
> 
> ps.  While we continue to beat this dead horse, I think Mladen Turk
> came up with a vaild solution.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

mod_proxy_ajp with multiple ajp ports

2006-07-12 Thread Christopher Schultz
All,

Please forgive me if this question has already been asked. With such a
high volume, searching the archives has been arduous and I haven't found
what I'm looking for.

I'm used to using mod_jk where I can just do this:

JkMount /my/path/*.whatever worker2
JkMount /my/path/*.whatever.else worker3

etc.

Note that I'm using the same path space with different path endings to
switch between two different workers.

Now that I'm using mod_proxy_ajp, I've changed my configuration to
something like this:

ProxyPass /my/path ajp://localhost:8185/my/path

It appears that I cannot do something like this:

ProxyPass /my/path/*.whatever.else ajp://localhost:8285/my/path

... and get a different URL space to map into my /second/ AJP target.

Basically, I've got a regular webapp running on ajp:8185 and Cocoon
running on ajp:8285 and I want to be able to forward/proxy requests
appropriately, regardless of the exact paths. For example, it doesn't
seem reasonable that I should have to add an additional path to my
webapp /just/ for cocoon requests, like this:

ProxyPass /my/path/cocoon-only ajp://localhost:8285/my/path

I have tried all manner of combinations of  (doesn't work
because you can't use the 2-argument ProxyPass in a ),
, and others to try to get this to work.

My most promising solution involved using mod_rewrite to introduce a
fake URL space (essentially inserting the "cocoon-only" portion into the
URL), but that does one of two things:

1) Replaces the URL in the browser with one that does not exist,
   so reloads don't work. :(
2) Goes into an infinite loop and never loads the page. :(

So, I'm open to any and all suggestions.

Thank you all /so much/ in advance,
-chris



signature.asc
Description: OpenPGP digital signature


Re: Alias' and the like

2006-07-12 Thread Brian Munroe

On 7/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

I'm about done with this thread, but I just gotta send one more


  e.g. httpd.conf
 
  ServerName /usr/local/tomcat/dev/webapps/bmtest/admin
  ServerAlias admin1
  ...
  


ServerAlias is for setting an alternative host name for name-baeed
virtual hosts.  It has nothing to do with what David (or myself at one
point in time) is trying to accomplish.

-- brian

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



Context, c:import, and request URI

2006-07-12 Thread Alessandro Vernet

I have two war deployed on Tomcat: war1 and war2. When a request comes
from /war1/path1, a JSP in war1 runs and with the JSTL c:import [1]
imports something from war2:



This works because crossContext [2] is set to true in the Tomcat
configuration. Now the problem is that in war2, a
request.getRequestURI() returns /war1/url1. I expected that method to
return /war2/url2 instead. My questions are:

a) Is this is a bug or a feature?
b) What API can I use to get /war2/url2?

I see request.getAttribute("org.apache.catalina.core.DISPATCHER_REQUEST_PATH")
would do the trick with Tomcat, but that would not be portable to
other servlet containers. Any suggestion is appreciated.

References:
[1] http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/import.html
[2] http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/

-
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: What are ciphers ?

2006-07-12 Thread Anandi Vyagrapuri
thanks for the description. That was helpful . 
I am trying to configure SSL with tomcat and get the
following error .. I do not understand what i need to
configure to get the correct ciphers to work with my
certificate. The same certificate works fine with IIS.


--
WARNING: Reinitializing ServerSocket
Jul 12, 2006 3:18:41 PM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint [SSL:
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
ignored exception: java.net.SocketException: SSL
handshake errorjavax.net.ssl.SSLException: No
available certificate or key corresponds to the SSL
cipher suites which are enabled.
java.net.SocketException: SSL handshake
errorjavax.net.ssl.SSLException: No available
certificate or key corresponds to the SSL cipher
suites which are enabled.
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:113)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:407)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Jul 12, 2006 3:18:41 PM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket
Jul 12, 2006 3:18:41 PM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint [SSL:
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
ignored exception: java.net.SocketException: SSL
handshake errorjavax.net.ssl.SSLException: No
available certificate or key corresponds to the SSL
cipher suites which are enabled.
java.net.SocketException: SSL handshake
errorjavax.net.ssl.SSLException: No available
certificate or key corresponds to the SSL cipher
suites which are enabled.
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:113)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:407)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)



--- Mike Klein <[EMAIL PROTECTED]> wrote:

> D:\Projects\v4kernel>openssl ciphers
>
DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:DES-CBC3-SHA:DES-CBC3-MD5:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA:RC2-CBC-MD5:DHE-DSS-RC4-SHA:RC4-SH
>
A:RC4-MD5:RC4-MD5:RC4-64-MD5:EXP1024-DHE-DSS-DES-CBC-SHA:EXP1024-DES-CBC-SHA:EXP1024-RC2-CBC-MD5:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA:DES-CBC-SHA:DES-CBC-MD5:EXP1024-DHE-DSS-RC4-SHA:EXP1024-RC4-SHA
>
:EXP1024-RC4-MD5:EXP-EDH-RSA-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA:EXP-DES-CBC-SHA:EXP-RC2-CBC-MD5:EXP-RC2-CBC-MD5:EXP-RC4-MD5:EXP-RC4-MD5
> 
> Clarification...cipher is "cryptographic" algorithm.
> 
> Ciphersuite is a list of ciphers that can be used.
> Each entry consists
> of compound string specifying choice of key
> exchange, encryption, and
> hashing algorithms/sizes to use.
> 
> 
> mike
> 
> Mike Klein wrote:
> > A little googling will get you what you want.
> >
> > A cipher is a security algorithm (des, rc, etc.).
> Ciphertext is
> > cleartext (plaintext) which has been encrypted
> using an algorithm
> > (cipher) and a key.
> >
> > You can use ssl handshaking to see supported
> ciphers and java jsse has
> > methods for dumping this information out. Get list
> of providers and
> > start calling dump routines.
> >
> >
> > mike
> >
> >   
> >> Anandi Vyagrapuri wrote:
> >>   
> >> 
> >>> Hi,
> >>> Can naybody tell me what ciphers are and what i
> >>> ciphers i must use with SSL ?
> >>>
> >>> Thanks
> >>> Anandi
> >>>
> >>>
> __
> >>> Do You Yahoo!?
> >>> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> >>> http://mail.yahoo.com 
> >>>
> >>>
>
-
> >>> To start a new topic, e-mail:
> users@tomcat.apache.org
> >>> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>> For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>>
> >>>
> >>>   
> >>> 
> >>>   
> >>   
> >> 
> >
> >
>
-
> > 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]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has th

Re: mod_proxy_ajp with multiple ajp ports

2006-07-12 Thread Bill Barker
I've seen some talk on [EMAIL PROTECTED] about implementing support for regexps 
in 
mod_proxy, but I don't think anything has happened yet.

What you want is something like:
  RewriteRule /my/path/.*\.whatever\.else 
ajp://localhost:8285/my/path/$1.whatever.else [P]
Check the documentation for mod_rewrite for more details.

"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
All,

Please forgive me if this question has already been asked. With such a
high volume, searching the archives has been arduous and I haven't found
what I'm looking for.

I'm used to using mod_jk where I can just do this:

JkMount /my/path/*.whatever worker2
JkMount /my/path/*.whatever.else worker3

etc.

Note that I'm using the same path space with different path endings to
switch between two different workers.

Now that I'm using mod_proxy_ajp, I've changed my configuration to
something like this:

ProxyPass /my/path ajp://localhost:8185/my/path

It appears that I cannot do something like this:

ProxyPass /my/path/*.whatever.else ajp://localhost:8285/my/path

... and get a different URL space to map into my /second/ AJP target.

Basically, I've got a regular webapp running on ajp:8185 and Cocoon
running on ajp:8285 and I want to be able to forward/proxy requests
appropriately, regardless of the exact paths. For example, it doesn't
seem reasonable that I should have to add an additional path to my
webapp /just/ for cocoon requests, like this:

ProxyPass /my/path/cocoon-only ajp://localhost:8285/my/path

I have tried all manner of combinations of  (doesn't work
because you can't use the 2-argument ProxyPass in a ),
, and others to try to get this to work.

My most promising solution involved using mod_rewrite to introduce a
fake URL space (essentially inserting the "cocoon-only" portion into the
URL), but that does one of two things:

1) Replaces the URL in the browser with one that does not exist,
   so reloads don't work. :(
2) Goes into an infinite loop and never loads the page. :(

So, I'm open to any and all suggestions.

Thank you all /so much/ in advance,
-chris





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