Re: [OT] JK Connector problem

2008-12-04 Thread André Warnier

nitingupta183 wrote:


I was using a folder name with spaces and without putting it inside a double
quote.


You are not the first, and not the last to lose time over this.

Folder/directory/file names with spaces in them are evil, and should be 
forbidden in any new OS, by unanimous decision of the UN Security 
Council, US Supreme Court and EU Commission.  The developers who first 
allowed this should be tracked down and named publically.  Their boss 
who approved this should be fired (he's probably already retired though).


The Apache group should stop installing their Windows versions by 
default in a directory containing the silly names Apache Group and/or 
Program Files in the path.  How many useless programming and debugging 
hours does it have to cost before this issue is put to rest ?




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



Re: What exactly happens when I configure a different host

2008-12-04 Thread André Warnier

Caldarale, Charles R wrote:

From: Anand HS [mailto:[EMAIL PROTECTED]
Subject: Re: What exactly happens when I configure a different host

Does that mean when we change the Host, we have to have a
handler added in logging.properties as well. ?


Have to - no; should - probably.  If you don't define one, the logging info 
ends up in the default handler.

Maybe the real question to the OP is : why do you want to change the 
name of the default Host ? what does that bring you ?
(it's not a snappy question, it's a real question; maybe if you exlain 
your reason, we might suggest another solution)




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



AW: java.io.IOException: Stream closed

2008-12-04 Thread Schuster Stefan
Hi everybody,

I still have the problem mentioned below. I just don't have any idea
where to start with problem solving?  Can it be a problem in Tomcat? I guess
not as this is a very simple use-case (read the stream in the servlet) and
it would have probably come up ealier...

Any Ideas? Please?

Thanks
Stefan

-Ursprüngliche Nachricht-
Von: Schuster Stefan [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 2. Dezember 2008 15:24
An: users@tomcat.apache.org
Betreff: java.io.IOException: Stream closed

Hi everybody,

I have the following problem with tomcat 6.0.18:
I wrote a servlet that reads the input stream with
XML Beans. An application sends requests to the servlet, but only the first 
request succeedes. Every
Second call results in the following exception:


java.io.IOException: Stream closed
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:325)
at 
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
at 
org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.fillByteBuffer(XMLStreamReader.java:209)
at 
org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.reset(XMLStreamReader.java:97)
at 
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.open(DocumentEntity.java:94)
at 
org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.reset(PiccoloLexer.java:982)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:709)
at 
org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at noNamespace.DataDocument$Factory.parse(Unknown Source)
at 
de.cirquent.nwfi.xcelsius.XMLServiceServlet.getDocument(XMLServiceServlet.java:71)02.12.2008
 14:55:19 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Servlet.service() for servlet XMLServiceServlet threw exception


I do not cache the input stream in the servlet, so I do not understand how the
subsequent transmissions are related? I am even sending a connection close 
with
the response to make shure that there is no issue with a reused connection.

Any ideas?


Best regards,
Stefan Schuster

Consultant NW FI


cirquent | softlab group

Cirquent GmbH

Königsberger Straße 29 | 60487 Frankfurt a.M.

Telefon +49 69 97261-800 | Fax +49 69 97261-899
E-Mail [EMAIL PROTECTED] | Mobil +49 151 1822 5456
Internet http://www.cirquent.de

Cirquent GmbH | Geschäftsführung: Peter Broicher (Vorsitzender), Dr. Stefan 
Aicher,
Thomas Balgheim (stellvertretender Vorsitzender), Bernd Stroppel, Said Tabet
Sitz und Amtsgericht: München HRB 51846

 


-
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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to connect to DB using DataSource

2008-12-04 Thread André Warnier

Stefan Deitmer wrote:

André Warnier schrieb:

[...]
Ok, then another probably silly suggestion, but you might as well upturn 
this stone too.
Apart from the directories you named as already compared, have you 
compared the /usr/share/tomcat5.5 ?
That is where the Debian distributions usually install the base of the 
Tomcat 5.5 software (CATALINA_HOME).  /var/lib/tomcat5.5 is 
CATALINA_BASE (where this Tomcat instance actually runs).


As many lights on this list never tire to point out, packages for 
specific OS'es put things a bit all over the place, with soft links in 
even more places, which makes it difficult sometimes to figure out where 
things really are and what points to what.  The Debian Tomcat packager 
seems to have even more imagination than most.


You could of course remove the Debian package, and install a real 
Tomcat from the Tomcat site.  You would then probably get more help from 
this list (for reasons I do not discuss nor contradict).  The 
inconvenient is that you would lose the facilities of the Debian package 
manager for configuration, updating, resolving dependencies etc..




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



Re: What exactly happens when I configure a different host

2008-12-04 Thread Anand HS
The real reason is I have 3 web apps I want to deploy in a single tomcat
instance and all 3 have to be exposed with root context and also need to be
running on port 80. Hence, I have chosen to give my machine that runs tomcat
to have 3 distinct DNS Names/Addresses and configures these names/addresses
as the Host Name.

The 3 web apps are required to be running 80 all the time and also have to
have a root context all the time too.

I basically did this as this was a simple solution.  However, I am
interested in seeing alternatives for this approach.

Thanks,
Anand

On Thu, Dec 4, 2008 at 12:13 AM, André Warnier [EMAIL PROTECTED] wrote:

 Caldarale, Charles R wrote:

 From: Anand HS [mailto:[EMAIL PROTECTED]
 Subject: Re: What exactly happens when I configure a different host

 Does that mean when we change the Host, we have to have a
 handler added in logging.properties as well. ?


 Have to - no; should - probably.  If you don't define one, the logging
 info ends up in the default handler.

  Maybe the real question to the OP is : why do you want to change the name
 of the default Host ? what does that bring you ?
 (it's not a snappy question, it's a real question; maybe if you exlain your
 reason, we might suggest another solution)




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




Re: Pointing domain to a context in tomcat

2008-12-04 Thread Kees de Kooter
On Thu, Dec 4, 2008 at 08:32, nitingupta183 [EMAIL PROTECTED] wrote:

 Hi all,

 I have recently started using Apache web server with Tomcat. I need to have
 something like this:

 www.mydomain.com maps to something like www.mydomain.com:8080/mycontext

 With the help of mod_jk i am now able to achieve www.mydomain.com/mycontext.
 I want to be able to have www.mydomain.com i.e. user should not even specify
 the context and the apache server should map to my context.

 I searched the net and was told that mod_rewrite can be used with PL flag.
 But since I am new to configuration, I could not figure out how to use that
 for my purpose. Also, If I user mod_rewrite then /mycontext will be visible
 in the address bar. I am more in the favor of a solution in which /mycontext
 is not at all visible.

 Any help will be much appreciated.


One solution would be to deploy your app as a ROOT application.

See under ROOT War files: http://www.nameonthe.net/tomcatwjvm.jsp

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



RE: [OT] JK Connector problem

2008-12-04 Thread Peter Crowther
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Folder/directory/file names with spaces in them are evil, and
 should be
 forbidden in any new OS, by unanimous decision of the UN Security
 Council, US Supreme Court and EU Commission.  The developers who first
 allowed this should be tracked down and named publically.  Their boss
 who approved this should be fired (he's probably already
 retired though).

As I've commented before, it's at least as old as UNIX, probably older.  If you 
try to stop the accounts team naming their Excel files Budgets from Margaret 
2008-2009 you may find your office surrounded by a mob of pitchfork- and 
torch-waving users chanting give us back our readable filenames.  Overall, I 
suspect more hours have been saved by humanity having readable filenames* than 
lost by developers having to work round the problems.

 The Apache group should stop installing their Windows versions by
 default in a directory containing the silly names Apache
 Group and/or
 Program Files in the path.  How many useless programming
 and debugging
 hours does it have to cost before this issue is put to rest ?

Program Files is mandated by Microsoft, lobby them.  I partially agree that 
Apache Group is a poor name for a directory; it does, at least, force 
implementors to face up to the problem early, rather than facing a surprise 
later.  This may or may not be a good thing overall.

- Peter

* 
ReadingSpeedGoesUpWhenTheSpacesAreInTheCorrectPlace.HowLongHasItTakenYouToReadThisComparedToYourUsualReadingSpeed?Andhowmuchslowerisitwhenthereisn'tevencamelcasetohelpyoudistinguishwordbreaks?
 OK, now multiply that by all filenames read by all users over all their time 
interacting with their computers.

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



Re: Unable to connect to DB using DataSource

2008-12-04 Thread Stefan Deitmer
 [...]
 Ok, then another probably silly suggestion, but you might as 
 well upturn this stone too.
 Apart from the directories you named as already compared, 
 have you compared the /usr/share/tomcat5.5 ?
 That is where the Debian distributions usually install the 
 base of the Tomcat 5.5 software (CATALINA_HOME).  
 /var/lib/tomcat5.5 is CATALINA_BASE (where this Tomcat 
 instance actually runs).

I don't have access to the machine that has the problem right now,
but I looked at the other machine (the one that works), and I strongly
suspect you discovered my problem. There is a link in 
/usr/share/tomcat5.5/common/lib pointing to the postgres JDBC jar
in /usr/share/java, and I think I put that link there back then, but forgot
to write this down, so didn't do this on the second machine.
I will try this tonight and will report back, but I'm very confident
that this is the cause of the problem.

 
 As many lights on this list never tire to point out, packages 
 for specific OS'es put things a bit all over the place, with 
 soft links in even more places, which makes it difficult 
 sometimes to figure out where things really are and what 
 points to what.  The Debian Tomcat packager seems to have 
 even more imagination than most.
 
 You could of course remove the Debian package, and install a real 
 Tomcat from the Tomcat site.  You would then probably get 
 more help from this list (for reasons I do not discuss nor 
 contradict).  The inconvenient is that you would lose the 
 facilities of the Debian package manager for configuration, 
 updating, resolving dependencies etc..

I would much prefer to use the Debian package if possible, for
the reasons you cited. However, I'm aware that using a standard
installation has advantages, too.

Anyways, you just helped me understand my Tomcat installation
a little bit better, so thanks a lot!

Regards
Stefan
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

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



Re: [OT] JK Connector problem

2008-12-04 Thread André Warnier

Peter Crowther wrote:


If you try to stop the accounts team naming their Excel files Budgets from Margaret 2008-2009 you may find your office surrounded by a mob of pitchfork- and torch-waving users 

That is a weak objection.
They can also not name it Budget 2008/2009 or Projections sales 
profits, and never have been allowed to.  Under Windows, you could
never name a file CON or LPT. Under Tomcat, you can name an
application main#menu, but it will probably give you all kinds of
trouble if you don't do it judiciously.
I have never seen pitchforks and torches waved there, yet.

But you're right, it's probably too late. Sigh.
Not for Apache Group though.

Cicero had to repeat delenda Cartago for years before they got up to
it.  Galileo once said et puor, si muove, and although he got into
some trouble at the time, he was finally rehabilitated a few years ago.
(*)

Note that, as you obliquely hint at yourself, using spaces in
directory/filenames is only bad because a space is also considered as a
separator in many other circumstances.
So one could instead disallow spaces as separators in command-lines, and
there would no longer be problems either.
How about that ?

;-)


(*) On the other hand, people in the UK still drive on the wrong side of 
the road, despite being asked many times to change their silly ways.

Go figure.




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



Re: Mini HOW-TO: Tomcat as a service on Windows Server 2003 64-bit edition

2008-12-04 Thread BabaOrum

I have followed these instructions but it does not work.
This is whet I get on the server:


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

E:\cd Program Files\Apache Software Foundation\apache-tomcat-6.0.18\bin

E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18\bintomcat6.exe
[2008-12-04 11:17:45] [427  prunsrv.c] [error]
The system cannot find the file specified.
[2008-12-04 11:17:45] [1336 prunsrv.c] [error]
Load configuration failed

E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18\binversion.bat
Using CATALINA_BASE:   E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18
Using CATALINA_HOME:   E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18
Using CATALINA_TMPDIR: E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18\temp
Using JRE_HOME:E:\Program Files\Java\jre6
Server version: Apache Tomcat/6.0.18
Server built:   Jul 22 2008 02:00:36
Server number:  6.0.18.0
OS Name:Windows 2003
OS Version: 5.2
Architecture:   amd64
JVM Version:1.6.0_11-b03
JVM Vendor: Sun Microsystems Inc.




-- 
View this message in context: 
http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20830856.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Memory pool Survivor space

2008-12-04 Thread Hubert de Heer
Andre,

Have a look at http://www.informit.com/guides/content.aspx?g=javaseqNum=253 
for more details about JVM.
A bit more difficult to read but with tons of info about JVM behaviour and 
default settings: http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp

So for the SurvivorRatio the default setting is:
-XX:SurvivorRatio=8 Ratio of eden/survivor space size [Solaris amd64: 6; 
Sparc in 1.3.1: 25; other Solaris platforms in 5.0 and earlier: 32]

Hubert

-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: 30 November 2008 15:54
To: Tomcat Users List
Subject: Memory pool Survivor space

Hi.

I am monitoring a Tomcat during startup, using jconsole.
This Tomcat's JVM is started with the switches -Xms200M -Xmx200M, and 
it starts a rather heavy webapp that just about occupies Tomcat 100% 
during 5 minutes whenever I start it. (*)

In the memory tab of jconsole, I observe that one of the display 
sections (Survivor space, the middle bar in the Heap section),
has the following behaviour :

- before the application is started, it remains constant at about 1 Mb
- as soon as I start the application, it grows to about 2 MB, then drops 
down to 0, then grows up again to 2Mb, then drops to about 1 Mb, then 
back up again, etc..
The 2 Mb seems to be some kind of hard limit, because it nevers goes 
over it.
The bottom is more variable, sometimes between 1 Mb and 0, but more 
often 0.
- when the application has finished loading (and Tomcat becomes 
responsive again), the amount of memory used by the Survivor space seems 
to stabilise again at 1.3 Mb, which is 0.3 Mb more than it was before 
the application started. Then it slowly over time drops down to 1 Mb.

If the attachment survives this post, then you can see this graphically 
in it. If not, you can get a snapshot here :
http://dev.dev.wissensbank.com/public/jconsole_survivor.png

What I would like to know is :
- what does this mean ?
- where does the JVM get this apparent hard limit of 2 Mb for this pool 
size ?
- does it matter ? I mean, assuming I could change it, would that have 
an impact in how the JVM works while starting this application, and how ?

Below are three cut and paste of the summary display at the bottom 
left of jconsole when displaying this pool.

1) at some point during app startup
Time: 
2008-11-30 15:27:24
Used: 
 0 kbytes
Committed: 
 2.240 kbytes
Max: 
 2.240 kbytes


2) also during app startup
Time: 
2008-11-30 15:28:33
Used: 
 2.240 kbytes
Committed: 
 2.240 kbytes
Max: 
 2.240 kbytes

3) after app is started
Time: 
2008-11-30 15:34:32
Used: 
 1.306 kbytes
Committed: 
 2.240 kbytes
Max: 
 2.240 kbytes


(*) to be completely precise :

- if I use load-on-startup in the web.xml of this application (no 
matter with which value), then it seems to get started when Tomcat is 
started. Whenever that happens, Tomcat becomes unresponsive during 
approximately 5 minutes, using 95% of the machine's cpu time and not 
answering HTTP requests.
At the end of these 5 minutes, Tomcat writes server startup in  ms 
in its catalina.out file, and it becomes responsive again to HTTP requests.

- if I do not have a load-on-startup tag in web.xml, then Tomcat 
prints server startup in  ms in catalina.out, and becomes 
responsive in about 15 seconds (instead of 5 minutes).
But then, it is when I first request the application in the browser that 
Tomcat becomes irresponsive during 5 minutes and uses 95% of cpu time 
during these 5 minutes.





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



java.lang.UnsatisfiedLinkError

2008-12-04 Thread xhd634

Hi,

I am getting the below error when i try to open eMatrix web application. I
am using Tomcat 5.0.
can any one please provide me solution for this.

HTTP Status 500 -

type Exception report

message

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

exception

javax.servlet.ServletException: no eMatrix in java.library.path

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.emxLogin_jsp._jspService(emxLogin_jsp.java:703)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.matrixone.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:173)

root cause

java.lang.UnsatisfiedLinkError: no eMatrix in java.library.path
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
java.lang.Runtime.loadLibrary0(Runtime.java:788)
java.lang.System.loadLibrary(System.java:834)
com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:49)
com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:42)

com.matrixone.jdl.rmi.bosErrorObjectImpl.init(bosErrorObjectImpl.java:10)
com.matrixone.jdl.rmi.bosInterfaceImpl.init(bosInterfaceImpl.java:52)

com.matrixone.jdl.MatrixJNISession.getInterface(MatrixJNISession.java:33)

com.matrixone.jdl.MatrixRMISession.getInterface(MatrixRMISession.java:49)
matrix.db.Context.getInterface(Context.java:861)
matrix.db.Context.getContext(Context.java:922)
matrix.db.Context.setLanguage(Context.java:515)
matrix.db.Context.setLocale(Context.java:584)

com.matrixone.servlet.ServletUtil.checkAuthentication(ServletUtil.java:86)

com.matrixone.servlet.FrameworkServlet.isLoggedIn(FrameworkServlet.java:623)

com.matrixone.servlet.FrameworkServlet.isLoggedIn(FrameworkServlet.java:610)
com.matrixone.servlet.Framework.isLoggedIn(Framework.java:399)
org.apache.jsp.emxLogin_jsp._jspService(emxLogin_jsp.java:243)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.matrixone.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:173)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.27 logs.
Apache Tomcat/5.0.27
-- 
View this message in context: 
http://www.nabble.com/java.lang.UnsatisfiedLinkError-tp20832248p20832248.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Login config

2008-12-04 Thread FARNIER Christophe
Hi,
 
I installed a tomcat 5.5.27 with an application and I configure the
web.xml of the application by introducing a security constraint and a
login config with a form. My login page is not in the security
directory. So when I launch Tomcat and I access to my application  with
restriction, the login page is displaying but the URL address is not my
login page, it is the security directory.
 
What can I do for displaying the correct URL? The problem does not
appear with the Tomcat 4.
 
Thanks for your help?
 
Christophe


Re: java.lang.UnsatisfiedLinkError

2008-12-04 Thread Edward Barrow
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

the jvm can't find a native library, which will be called libeMatrix.so
on a *nix system, or eMatrix.dll on win. This library should be
somewhere in the eMatrix distribution and you must make sure that it's
on the java.library.path, which you can find out using
System.out.println(System.getProperty(java.library.path)); but /lib
and  /usr/lib usually work on nix.

xhd634 wrote:
 Hi,
 
 I am getting the below error when i try to open eMatrix web application. I
 am using Tomcat 5.0.
 can any one please provide me solution for this.
 
 HTTP Status 500 -
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that prevented it
 from fulfilling this request.
 
 exception
 
 javax.servlet.ServletException: no eMatrix in java.library.path
 
 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
   org.apache.jsp.emxLogin_jsp._jspService(emxLogin_jsp.java:703)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 com.matrixone.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:173)
 
 root cause
 
 java.lang.UnsatisfiedLinkError: no eMatrix in java.library.path
   java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
   java.lang.Runtime.loadLibrary0(Runtime.java:788)
   java.lang.System.loadLibrary(System.java:834)
   com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:49)
   com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:42)
   
 com.matrixone.jdl.rmi.bosErrorObjectImpl.init(bosErrorObjectImpl.java:10)
   com.matrixone.jdl.rmi.bosInterfaceImpl.init(bosInterfaceImpl.java:52)
   
 com.matrixone.jdl.MatrixJNISession.getInterface(MatrixJNISession.java:33)
   
 com.matrixone.jdl.MatrixRMISession.getInterface(MatrixRMISession.java:49)
   matrix.db.Context.getInterface(Context.java:861)
   matrix.db.Context.getContext(Context.java:922)
   matrix.db.Context.setLanguage(Context.java:515)
   matrix.db.Context.setLocale(Context.java:584)
   
 com.matrixone.servlet.ServletUtil.checkAuthentication(ServletUtil.java:86)
 
 com.matrixone.servlet.FrameworkServlet.isLoggedIn(FrameworkServlet.java:623)
 
 com.matrixone.servlet.FrameworkServlet.isLoggedIn(FrameworkServlet.java:610)
   com.matrixone.servlet.Framework.isLoggedIn(Framework.java:399)
   org.apache.jsp.emxLogin_jsp._jspService(emxLogin_jsp.java:243)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 com.matrixone.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:173)
 
 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.0.27 logs.
 Apache Tomcat/5.0.27
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk305AACgkQ0JfS0fIxFN19rQCeJo/2S/5vYIk/VLffKmzVVgVp
OdcAn3WBhqPG3y/70wAdbjSMrQRxEqfh
=SaSP
-END PGP SIGNATURE-

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



Servlet.jsp is not available

2008-12-04 Thread Edward Barrow
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm developing a webapp using Netbeans 6.5 and it works fine on the
development machine. On deploying it to a semi-production machine, it
immediately fails with a 404 Servlet.jsp is not available (but I'm
trying to access index.jsp).

The dev server is Netbeans bundled Tomcat 6.0.18; the semi-production
server is Debian/Tomcat 5.5, which is otherwise working (Admin, Manager
and Hello World, the latter written on the dev setup, all work as they
should).

Where does Servlet.jsp come from? a missing jar (but the obvious ones
are all where they should be)?

thanks for any pointers,

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

iEYEARECAAYFAkk32XEACgkQ0JfS0fIxFN2aygCgh97YxFfO0lQ/eQ5qRYrp+311
lkUAnjsEy2nCg2g59P7d8ZZoORhe1Loc
=Hjdg
-END PGP SIGNATURE-

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



Re: Unable to stop SimpleTcpReplicationManager

2008-12-04 Thread Pieter Temmerman
This problem is solved.
I replaced the SimpleTcpReplicationManager by the DeltaManager and
everything works as expected.


On Wed, 2008-12-03 at 23:48 +0100, Pieter Temmerman wrote:
 Hi all,
 
 I'm having two Tomcats which are placed in a cluster.
 If I stop and start a context (instead of completely stopping/restarting 
 Tomcat), then I see the following error in catalina.out:
 
 ERROR: Unable to stop SimpleTcpReplicationManager
 
 No other information is specified.
 I have been Googling, but haven't found any explanation.
 I took a look at the source code of the SimpleTcpReplicationManager, but I 
 can't derive from it what could have gone wrong.
 
 When I try to restart the context, then I see the following error:
 
 ERROR: Starting... no cluster associated with this
 context:/dist/preproduction/wasuzi
 
 I'm guessing the latter error is related to the first one.
 Unfortunately, right now I don't have access to the server.xml to post the 
 configuration info.
 In a couple of hours I will, but I thought I'd give a heads up, just in case 
 anybody has seen this error before.
 
 Before I forget, when I stop/start Tomcat completely, I don't see this error, 
 it's only happening when reloading a context.
 
 Thanks. 

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



RE: Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-04 Thread Justin Randall

Hi Chuck,

Thanks for the response.  I guess perhaps I was not clear enough in my 
configuration or description of the issue.

Each Servlet in the application has load-on-startupX/load-on-startup where 
X represents the numeric order in which I've assigned them to start.

Also what I did mention previously is that init is NOT called when I browse 
to the URI, however the Servlet is loaded as my System.out.println statements 
in doGet/doPost  are being output to catalina.out and they also show that 
init was never called (by checking parameters that should have been 
initialized by init.

Lastly, the reason I say init' methods is that there IS more than one, and 
Tomcat calls both of them when initializing a Servlet.  If you think this is 
incorrect, make sure to @Override both init and init(ServletConfig config) 
and have different logging statements.  You will see both of them being 
executed when Tomcat loads the Servlet.

I hope this helps better clarify the situation.

Justin.

 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Date: Wed, 3 Dec 2008 20:46:50 -0600
 Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading
 
  From: Justin Randall [mailto:[EMAIL PROTECTED]
  Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading
 
  Basically when I restart Tomcat, it doesn't call any of the
  init methods of the Servlet
 
 Unless you have load-on-startup set for the servlet in your webapp's 
 WEB-INF/web.xml, that is correct behavior for a Tomcat restart.  The init() 
 method (there can only be one per servlet) should be called upon first 
 reference to a URL that matches a url-pattern element inside one of your 
 servlet-mapping elements.  If load-on-startup is set, the init() method 
 will be called at Tomcat restart for each such servlet.
 
  however all of the initialization which was to be
  performed by the init methods was never done.
 
 You keep using the word methods when there is only one init() method for a 
 given servlet; why is that?
 
  When I copy the existing war file from the webapps directory
  to another location, update the modify timestamp and then
  move it back into the webapps directory, the init methods
  are then called and the application works properly.
 
 This is also correct behavior for initial or re-deployment.  Although the 
 spec doesn't require it, Tomcat calls the init() methods to verify webapp 
 viability at these times.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_



RE: Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-04 Thread Caldarale, Charles R
 From: Justin Randall [mailto:[EMAIL PROTECTED]
 Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading

 Each Servlet in the application has
 load-on-startupX/load-on-startup where X represents the
 numeric order in which I've assigned them to start.

Then yes, there's a problem, since your servlets should have been initialized 
upon restart.

 Lastly, the reason I say init' methods is that there
 IS more than one, and Tomcat calls both of them when
 initializing a Servlet.

Strictly speaking, that's true, but the parameterless one is intended to be 
called by the other.  There's no need to override both methods, and I'm not 
sure what happens when you do.  The normal implementation is just to override 
init(), and let GenericServlet.init(ServletConfig) call that one.

 - Chuck


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

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



RE: Tomcat request processing gets stuck

2008-12-04 Thread Michal Singer

I checked the stuck and i got to a few conclusions:
after tomcat stops receiving messages it will receive some kinds and some
not:
1. if i use http client and write a string directly the tomcat will receive
the data
2. if i use http client and write a stream, the tomcat will not receive the
data
3. if i use wget and send a message to tomcat it will receive data

which means, that after tomcat works with a load of data it gets stuck to
streams
and not to strings (maybe related to the fact that i use nio connector??)

Does any one have any idea on this problem with tomcat
any help will be highly appreciated.

Thanks, Michal



Peter Crowther wrote:
 
 From: Christopher Schultz [mailto:[EMAIL PROTECTED]
 acceptCount=200 just means that the socket will accept 200
 clients /in
 addition/ to those currently being served by RequestProcessor threads.
 The only way to see those waiting clients would be to query
 the socket itself (maybe only available at the C-library level?).
 
 Rarely even that - these connections are held in limbo in the kernel. 
 There are sometimes ways of examining the next request in the queue (to
 see whether you want to accept it or reject it), but I'm not aware of a
 general way of examining *all* requests in an accept queue.  I'd love to
 hear about any that exist, as in the past I've needed to monitor these!
 
 - Peter
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-request-processing-gets-stuck-tp20526036p20835816.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: java.lang.Exception: Socket bind failed: [730048]

2008-12-04 Thread Toby Kurien
Hi,
Here's the weirdest thing I have found now. If I restart the service
from Services in computer management, it restarts fine, but if I
click Stop and then Start after a 30 second delay, the same error as
before happens which is:

Dec 3, 2008 8:39:31 PM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port) is normally
permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
at 
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

After this, I am forced to restart the server. Again, if the service
is set as manual, I get the same error, but if I restart as automatic,
Tomcat starts fine. I am wondering if this is a genuine security
breach or trojan holding port 80 or something else and how can I find
it. Symantec and other antivirus programs haven't shown any intrusion
yet. I don't have any other server running on port 80. This server
configuration has worked for the past 1 year without such problems.


Thanks for all the help,
-Toby

On Fri, Nov 21, 2008 at 5:28 PM, Kees Jan Koster [EMAIL PROTECTED] wrote:
 Dear Toby,

 Another thing I have found is that Tomcat slows down when a lot of
 people are connected and requesting to the DB. My maxActive = '150'
 for the database and maxThreads = '300'. The task manager doesn't show
 high CPU usage and there is always atleast 2GB RAM free. Any ideas on
 why this is happening? DB server is running fine too. In the past, the
 DB server CPU would be high when this happened, but now that's Not the
 case.

 How does the I/O on the box behave?
 --
 Kees Jan

 http://java-monitor.com/forum/
 [EMAIL PROTECTED]
 06-51838192

 The secret of success lies in the stability of the goal. -- Benjamin
 Disraeli


 -
 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: java.lang.Exception: Socket bind failed: [730048]

2008-12-04 Thread Schuster Stefan
Hey Toby,

it might have something to do with a timeout, I remember that some
operating systems hold a port reserved for a while after it was
bound as a listening port.

Hope this is a pointer in the right direction.

Best regards
Stefan

-Ursprüngliche Nachricht-
Von: Toby Kurien [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 4. Dezember 2008 16:38
An: Tomcat Users List
Betreff: Re: java.lang.Exception: Socket bind failed: [730048]

Hi,
Here's the weirdest thing I have found now. If I restart the service
from Services in computer management, it restarts fine, but if I
click Stop and then Start after a 30 second delay, the same error as
before happens which is:

Dec 3, 2008 8:39:31 PM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port) is normally
permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
at 
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

After this, I am forced to restart the server. Again, if the service
is set as manual, I get the same error, but if I restart as automatic,
Tomcat starts fine. I am wondering if this is a genuine security
breach or trojan holding port 80 or something else and how can I find
it. Symantec and other antivirus programs haven't shown any intrusion
yet. I don't have any other server running on port 80. This server
configuration has worked for the past 1 year without such problems.


Thanks for all the help,
-Toby

On Fri, Nov 21, 2008 at 5:28 PM, Kees Jan Koster [EMAIL PROTECTED] wrote:
 Dear Toby,

 Another thing I have found is that Tomcat slows down when a lot of
 people are connected and requesting to the DB. My maxActive = '150'
 for the database and maxThreads = '300'. The task manager doesn't show
 high CPU usage and there is always atleast 2GB RAM free. Any ideas on
 why this is happening? DB server is running fine too. In the past, the
 DB server CPU would be high when this happened, but now that's Not the
 case.

 How does the I/O on the box behave?
 --
 Kees Jan

 http://java-monitor.com/forum/
 [EMAIL PROTECTED]
 06-51838192

 The secret of success lies in the stability of the goal. -- Benjamin
 Disraeli


 -
 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



Is this list archived?

2008-12-04 Thread David.Meldrum
Is there a searchable archive of this mailing list?  I have a few 
questions that I am sure have already been answered in the past.



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



RE: Is this list archived?

2008-12-04 Thread Caldarale, Charles R
 From: David.Meldrum [mailto:[EMAIL PROTECTED]
 Subject: Is this list archived?

 Is there a searchable archive of this mailing list?

To quote from the Tomcat mailing lists description page:
http://tomcat.apache.org/lists.html#tomcat-dev

Archives: at Apache, at MARC (searchable), at MarkMail and at Nabble.

My personal preference is MARC:
http://marc.theaimsgroup.com/?l=tomcat-dev

 - Chuck


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

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



initial memory pool and maximum memory pool in Tomcat 6.x

2008-12-04 Thread Tuan Quan
Dear all;
What is the advantage of setting both values to the same number?
My application run out Permgen memory,
If I set both memory pool to 1200MB, and Permgen - 256M, Tomcat will not start.
but if memory pool to 900MB and Permgen to 256M, Tomcat start OK.

thanks.


Re: java.lang.Exception: Socket bind failed: [730048]

2008-12-04 Thread Toby Kurien
In that case, clicking restart on Tomcat service shouldn't restart service.

On Thu, Dec 4, 2008 at 11:15 AM, Schuster Stefan
[EMAIL PROTECTED] wrote:
 Hey Toby,

 it might have something to do with a timeout, I remember that some
 operating systems hold a port reserved for a while after it was
 bound as a listening port.

 Hope this is a pointer in the right direction.

 Best regards
 Stefan

 -Ursprüngliche Nachricht-
 Von: Toby Kurien [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 4. Dezember 2008 16:38
 An: Tomcat Users List
 Betreff: Re: java.lang.Exception: Socket bind failed: [730048]

 Hi,
 Here's the weirdest thing I have found now. If I restart the service
 from Services in computer management, it restarts fine, but if I
 click Stop and then Start after a 30 second delay, the same error as
 before happens which is:

 Dec 3, 2008 8:39:31 PM org.apache.coyote.http11.Http11AprProtocol init
 SEVERE: Error initializing endpoint
 java.lang.Exception: Socket bind failed: [730048] Only one usage of
 each socket address (protocol/network address/port) is normally
 permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
at 
 org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
at 
 org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at 
 org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at 
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 After this, I am forced to restart the server. Again, if the service
 is set as manual, I get the same error, but if I restart as automatic,
 Tomcat starts fine. I am wondering if this is a genuine security
 breach or trojan holding port 80 or something else and how can I find
 it. Symantec and other antivirus programs haven't shown any intrusion
 yet. I don't have any other server running on port 80. This server
 configuration has worked for the past 1 year without such problems.


 Thanks for all the help,
 -Toby

 On Fri, Nov 21, 2008 at 5:28 PM, Kees Jan Koster [EMAIL PROTECTED] wrote:
 Dear Toby,

 Another thing I have found is that Tomcat slows down when a lot of
 people are connected and requesting to the DB. My maxActive = '150'
 for the database and maxThreads = '300'. The task manager doesn't show
 high CPU usage and there is always atleast 2GB RAM free. Any ideas on
 why this is happening? DB server is running fine too. In the past, the
 DB server CPU would be high when this happened, but now that's Not the
 case.

 How does the I/O on the box behave?
 --
 Kees Jan

 http://java-monitor.com/forum/
 [EMAIL PROTECTED]
 06-51838192

 The secret of success lies in the stability of the goal. -- Benjamin
 Disraeli


 -
 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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



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



Re: Servlet.jsp is not available

2008-12-04 Thread Edward Barrow
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I still don't know what the problem was, but I have now installed a
proper Tomcat 6.0.18 on the semi-production (testing) server, and on the
whole it now seems to work.

I am sure I have used nothing more advanced that servlet2.4/jsp2.0
during development, so it should have worked on Tomcat 5.5; but maybe not.

Oh well.


Edward Barrow wrote:
 I'm developing a webapp using Netbeans 6.5 and it works fine on the
 development machine. On deploying it to a semi-production machine, it
 immediately fails with a 404 Servlet.jsp is not available (but I'm
 trying to access index.jsp).
 
 The dev server is Netbeans bundled Tomcat 6.0.18; the semi-production
 server is Debian/Tomcat 5.5, which is otherwise working (Admin, Manager
 and Hello World, the latter written on the dev setup, all work as they
 should).
 
 Where does Servlet.jsp come from? a missing jar (but the obvious ones
 are all where they should be)?
 
 thanks for any pointers,
 
 edward

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


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

iEYEARECAAYFAkk4FGQACgkQ0JfS0fIxFN3oVACeJN2jTBcmA8DMqyALG7uDZLv6
Dh8An1P0I8hj1TNvfP6urjLf+jpP41jL
=cK/a
-END PGP SIGNATURE-

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



Embedded Tomcat and global naming resources

2008-12-04 Thread Michael Borchert

Hi all,

I have an Embedded Server and try to add a Resource to the 
globalnamingresources:


ContextResource resource = new ContextResource();
resource.setName(jdbc/db);
resource.setAuth(Container);
resource.setType(javax.sql.DataSource);
resource.setScope(Sharable);
resource.setProperty(driverClassName,
org.apache.derby.jdbc.EmbeddedDriver);
resource.setProperty(url, jdbc:derby: + catalinaHome
+ File.separator + db + File.separator + db);
resource.setProperty(username, user);
resource.setProperty(password, password);
ServerFactory.getServer().getGlobalNamingResources().addResource(
resource);

Then I have a war File, which represents my context. In this war file I 
have a META-INF/context.xml File:


Context
ResourceLink name=jdbc/db global=jdbc/db 
type=javax.sql.DataSource /

/Context

I even tried to add the ResourceLink programmatically with:

ContextResourceLink contextResourceLink = new 
ContextResourceLink();

contextResourceLink.setGlobal(jdbc/db);
contextResourceLink.setName(jdbc/db);
contextResourceLink.setType(javax.sql.DataSource);
context.getNamingResources().addResourceLink(contextResourceLink);

Now I'm getting a Naming Exception when calling  the database.
When I'm adding the ContextResource directly to the Context the 
everything works fine:


Context context = createContext(, docBase.getAbsolutePath());
context.getNamingResources().addResource(resource);

So how do I get a resource link working in the context when 
programmatically adding global resources to

the Container.

Many thanks,
Michael

--
Michael Borchert

Project manager IT

CMPMedica - Medizinische Medien Informations GmbH
Am Forsthaus Gravenbruch 7
63263 Neu-Isenburg

Fon +49(0) 6102 502-201
Fax +49(0) 6102 502-243
Mob +49(0) 175 22 54 557

Geschäftsführer: Dr. Uwe A. Richter, Henry Elkington

Handelsregister beim Amtsgericht Offenbach/Main HRB 8014
Ust-IdNr. DE 113524692

**
Diese E-Mail einschließlich ihrer Anhänge ist vertraulich.
Wir bitten eine fehlgeleitete E-Mail unverzüglich und vollständig
zu löschen und uns eine Nachricht zukommen zu lassen.
Wir haben die E-Mail vor dem Versenden auf Virenfreiheit geprüft.
Eine Haftung für Virenfreiheit schließen wir aus.

This e-mail message and all attachments transmitted with it are
intended solely for the use of the addressee and may contain
legally privileged and confidential information.
If the receiver of this message is not the intended recipient,
or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any
dissemination,
distribution, copying, or other use of this message or its attachments
is strictly prohibited.
If you have received this message in error, please notify the sender
immediately by e-mail reply and please delete this message from your
computer.


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



Re: JspC processFile java.lang.NullPointerException

2008-12-04 Thread Marco Machmer

hi,

i have found a bug issue with a workaround that helps.
see here https://issues.apache.org/bugzilla/show_bug.cgi?id=37084
if i set caching to false, the precomilation works for me.

marco

-- 
View this message in context: 
http://www.nabble.com/JspC-processFile-java.lang.NullPointerException-tp20335450p20838746.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Experimental support for SRS and BATV

2008-12-04 Thread Mark Thomas
Folks,

If SRS and BATV mean nothing to you, feel free to ignore this.

Those of you who have struggled in the past with SRS or BATV may be
interested to know that experimental support for these has been added to
the Tomcat user and dev lists.

You should now be able to subscribe and post from addresses that use SRS or
BATV. If you have any difficulties please contact [EMAIL PROTECTED] or
[EMAIL PROTECTED] and one of us will see what we can do to help.

Mark


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



Re: Mini HOW-TO: Tomcat as a service on Windows Server 2003 64-bit edition

2008-12-04 Thread kareda


Hello, 

tried this guide, doesn't work for me though. used the 64-bit tomcat
binaries but when running Service.bat install I get the error: 
The program or feature \??\C:\apache-tomcat-6.0.18\bin\tomcat6.exe cannot
start or run due to incompatibility with 64-bit version of Windows. 

server info: 64-bit windows 2003 running on Quad Core Intel Xeon X3320 (4 x
2.50 GHz), 8.192 MB SDRAM

any help is greatly appreciated. 

tnx! 
Kaur 


Swapnil.Kale wrote:
 
 Hey folks,
 Finally i found the one i wanted. Did a google recently and found this: If
 you are looking for 64 bit amd exe for tomcat here is the solution.
 
 Background
 
 To install Tomcat in a 64bit architecture, download the ZIP installer from
 the Apache web site and unzipped.
 
 At this point
 • Tomcat can be started by using startup.bat or shutdown using
 shutdown.bat 
 • Tomcat can not be used as a Windows service since Tomcat6.exe and
 Tomcat6w.exe are intended for 32bit hardware
 
 Steps 
 
 1)Download from the Apache repository the corresponding version of
 Tomcat6.exe and Tomcat6w.exe for your platform
 
 If your platform is AMD64 (This will work with Intel processors based an
 AMD64)
 http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/
 
 If your platform is Itanium, use
 http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/ia64/
 
 2)Rename/save the existing Tomcat6.exe and Tomcat6w.exe from your
 %CATALINA_HOME%\bin directory 
 
 3)Move the downloaded copies to %CATALINA_HOME%\bin
 
 4)From the command prompt, install Tomcat as a service, running the
 following command
 
 Service.bat install
 
 
 5)Before Tomcat is started, make sure you have allocated enough memory to
 Tomcat
 
 Double-click Tomcat6w.exe and set the memory sizes required
 
 6)Now you can start Tomcat as a service. You could use any of the
 following methods:
 
 • From Start  Settings  Control Panel  Administrative Tools  Services
 • Use the General tab in the Apache Tomcat Properties window
 
 

-- 
View this message in context: 
http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20839072.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Mini HOW-TO: Tomcat as a service on Windows Server 2003 64-bitedition

2008-12-04 Thread Caldarale, Charles R
 From: kareda [mailto:[EMAIL PROTECTED]
 Subject: Re: Mini HOW-TO: Tomcat as a service on Windows
 Server 2003 64-bitedition

 used the 64-bit tomcat binaries

Which ones?  AMD64 or IA64?  (Hint: you need the AMD64 ones.)

 server info: 64-bit windows 2003 running on Quad Core Intel
 Xeon X3320 (4 x 2.50 GHz), 8.192 MB SDRAM

That's a bit more information than your first posting, but you're still leaving 
out one critical item: what JVM do you have installed?  Is it 32-bit or 64-bit?

If it's a 32-bit JVM, you need the original 32-bit tomcat6.exe and tomcat6w.exe 
programs, not the 32-bit ones.

Note that for 32-bit JVMs, you will also need a copy of msvcr71.dll available 
to the tomcat6.exe program; put it in Tomcat's bin directory if needed.

 - Chuck


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


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



access to all sessions

2008-12-04 Thread Timothy J Schumacher

Hi,

I have TC 5.0.12 and java 1.4.1_04.  Unfortunately, I am stuck using 
these versions for now...


I am trying to figure out how to access/manipulate all the sessions for 
my web app.  I guess I want something similar to the manager 
application, but I don't want to have to run the manager application.  
Does anyone know of a good reference to learn more about how this 
works?  I looked a little bit at the docs but it was not clear to me how 
to access this data.


Thanks!
Tim



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



Re: access to all sessions

2008-12-04 Thread Leon Rosenberg
Hello Tim,

there is no easy and direct way to do it. What you can do is to create
a SessionListener
(http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSessionListener.html),
register it as listener in the web.xml and store references to the
sessions upon creation somewhere (read map).
But beware, you have to be cautious a) not to create a memory leak by
not letting tomcat to remove outdated sessions and b) synchronize
accesses to your map and sessions without creating dead locks (since
1.4 doesn't have all the fancy concurrency stuff).

regards
Leon

On Thu, Dec 4, 2008 at 7:32 PM, Timothy J Schumacher
[EMAIL PROTECTED] wrote:
 Hi,

 I have TC 5.0.12 and java 1.4.1_04.  Unfortunately, I am stuck using these
 versions for now...

 I am trying to figure out how to access/manipulate all the sessions for my
 web app.  I guess I want something similar to the manager application, but I
 don't want to have to run the manager application.  Does anyone know of a
 good reference to learn more about how this works?  I looked a little bit at
 the docs but it was not clear to me how to access this data.

 Thanks!
 Tim



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



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



RE: Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-04 Thread Chris Hut

Re: init() methods, not knowing if this is the cause of the errant
behavior but FYI just in case:

Per the API documentation:
http://java.sun.com/javaee/5/docs/api/javax/servlet/GenericServlet.html

If you override: public void init(ServletConfig config), you MUST call
super.init(config). If you don't, the config member of the base servlet
class won't get set, which could cause problems downstream.

public void init() - no parameters - is intended to be a convenience
method that you can override and not have to remember to call
super.init().  It is invoked by GenericServlet.init(ServletConfig).

Chris

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 04, 2008 7:22 AM
To: Tomcat Users List
Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading

 From: Justin Randall [mailto:[EMAIL PROTECTED]
 Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading

 Each Servlet in the application has
 load-on-startupX/load-on-startup where X represents the
 numeric order in which I've assigned them to start.

Then yes, there's a problem, since your servlets should have been
initialized upon restart.

 Lastly, the reason I say init' methods is that there
 IS more than one, and Tomcat calls both of them when
 initializing a Servlet.

Strictly speaking, that's true, but the parameterless one is intended to
be called by the other.  There's no need to override both methods, and
I'm not sure what happens when you do.  The normal implementation is
just to override init(), and let GenericServlet.init(ServletConfig) call
that one.

 - Chuck


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

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


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



Re: initial memory pool and maximum memory pool in Tomcat 6.x

2008-12-04 Thread Leon Rosenberg
Hello Tuan,

On Thu, Dec 4, 2008 at 6:05 PM, Tuan Quan [EMAIL PROTECTED] wrote:
 Dear all;
 What is the advantage of setting both values to the same number?

In case your server is short on memory it will try to increase the
amount of used memory from start to max. In case the load is really
heavy the vm can just throw an OutOfMemoryError even memory would be
available. To prevent this unneeded runtime extension we tend to set
both parameters to the same value.

 My application run out Permgen memory,
 If I set both memory pool to 1200MB, and Permgen - 256M, Tomcat will not 
 start.
 but if memory pool to 900MB and Permgen to 256M, Tomcat start OK.


What are your real limitations, jdk version, os, ram? I remember that
11xx was max on older vms under windows.

regards
Leon

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



RE: Mini HOW-TO: Tomcat as a service on Windows Server 2003 64-bitedition

2008-12-04 Thread kareda


thanks for the fast reply, Chuck! 

I'm running 64-bit jvm (1.6)
I used the amd binaries as the guide said those should do the trick for
Intel processors: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/
 
but these really don't work. those are strangely small files also - only
18KB both!?

But, I found help from another thread: 
http://www.nabble.com/DO-NOT-REPLY--Bug-35869--Can%27-t-run-as-a-service-on-Windows-Server-2003-64-Bit-Edition-td16765257.html#a16765257

these binaries here worked fine! 
https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/amd64/

tnx again, must remember this board here!

Kaur 



Caldarale, Charles R wrote:
 
 From: kareda [mailto:[EMAIL PROTECTED]
 Subject: Re: Mini HOW-TO: Tomcat as a service on Windows
 Server 2003 64-bitedition
 
 used the 64-bit tomcat binaries
 
 Which ones?  AMD64 or IA64?  (Hint: you need the AMD64 ones.)
 
 server info: 64-bit windows 2003 running on Quad Core Intel
 Xeon X3320 (4 x 2.50 GHz), 8.192 MB SDRAM
 
 That's a bit more information than your first posting, but you're still
 leaving out one critical item: what JVM do you have installed?  Is it
 32-bit or 64-bit?
 
 If it's a 32-bit JVM, you need the original 32-bit tomcat6.exe and
 tomcat6w.exe programs, not the 32-bit ones.
 
 Note that for 32-bit JVMs, you will also need a copy of msvcr71.dll
 available to the tomcat6.exe program; put it in Tomcat's bin directory if
 needed.
 
  - Chuck
 
 

-- 
View this message in context: 
http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20840110.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Mini HOW-TO: Tomcat as a service on Windows Server 200364-bitedition

2008-12-04 Thread Caldarale, Charles R
 From: kareda [mailto:[EMAIL PROTECTED]
 Subject: RE: Mini HOW-TO: Tomcat as a service on Windows
 Server 200364-bitedition

 I used the amd binaries as the guide said those should do the
 trick for Intel processors:
 http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16
 /res/procrun/amd64/
 but these really don't work. those are strangely small files
 also - only 18KB both!?

Definitely the wrong size; the AMD64 versions should be 72KB and 105KB for 6 
and 6w, respectively.

 - Chuck


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

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



Re: access to all sessions

2008-12-04 Thread Timothy J Schumacher

Hi Leon,

Thanks for the info.  So, if I simply wanted to tell TC to invalidate 
all sessions is there something easier I could do?


Tim

Leon Rosenberg wrote:

Hello Tim,

there is no easy and direct way to do it. What you can do is to create
a SessionListener
(http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSessionListener.html),
register it as listener in the web.xml and store references to the
sessions upon creation somewhere (read map).
But beware, you have to be cautious a) not to create a memory leak by
not letting tomcat to remove outdated sessions and b) synchronize
accesses to your map and sessions without creating dead locks (since
1.4 doesn't have all the fancy concurrency stuff).

regards
Leon

On Thu, Dec 4, 2008 at 7:32 PM, Timothy J Schumacher
[EMAIL PROTECTED] wrote:
  

Hi,

I have TC 5.0.12 and java 1.4.1_04.  Unfortunately, I am stuck using these
versions for now...

I am trying to figure out how to access/manipulate all the sessions for my
web app.  I guess I want something similar to the manager application, but I
don't want to have to run the manager application.  Does anyone know of a
good reference to learn more about how this works?  I looked a little bit at
the docs but it was not clear to me how to access this data.

Thanks!
Tim



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





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

  


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



Re: Is this list archived?

2008-12-04 Thread André Warnier

David.Meldrum wrote:
Is there a searchable archive of this mailing list?  I have a few 
questions that I am sure have already been answered in the past.



The one above also, I'm sure.
;-)

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



Rogue https threads

2008-12-04 Thread Robert J Morman
Good afternoon.
 
We have a problem with our production tomcat server in that the CPU will
climb after a restart from 1-2% to 100%.  The rate of climb corresponds
to the amount of traffic we receive (the more we have, the faster it
climbs).  I noticed a couple days ago (by using Lambda Probe), that we
are getting 'rogue' https threads.  These are threads that are stuck in
the Service stage for a particular request.  I notice that as these
threads become stuck persistently-serviced, the CPU seems to jump about
6% at a time (for each thread).  Once we hit 99-100% CPU, we have about
15 of these and we are required to restart tomcat (as it's not
responding with much priority).  Lmbda Probe notes that there are no
Current Busy threads, even though it shows these as being Serviced.
 
Is there a way to get these to time out?
 
Specifics:
Tomcat 6.0.16
Java 1_5_16
 
Conf connection snippets:
 
Connector port=80 protocol=HTTP/1.1 
   connectionTimeout=2 
enableLookups=false
maxThreads=100
minSpareThreads=5
maxSpareThreads=40
   redirectPort=443 /
 
 Connector protocol=org.apache.coyote.http11.Http11NioProtocol
   connectionTimeout=6
   port=443 minSpareThreads=5 maxSpareThreads=15
   enableLookups=false disableUploadTimeout=false 
   acceptCount=100  maxThreads=100
   scheme=https secure=true SSLEnabled=true
   keystoreFile=e:\apache\tomcat6\.keystore
keystorePass=changeit
   clientAuth=false sslProtocol=TLS/
 
Session timeout is set to 30 minutes in web.xml.
 
Bob Morman
EMCSA, MCSA
Enterprise Systems Manager
ASM International Headquarters
http://www.asminternational.org
blocked::http://www.asminternational.org/ 
440/338-5151 x5478
 
The No. 1 reference on metals casting is back with new ways to improve energy 
efficiency, productivity and product performance!  Read free sample articles 
from the all-new ASM Handbook, Volume 15: Casting, and take advantage of 
special pre-publication prices before Dec. 15.  For more on ASM Handbooks: 
http://asmcommunity.asminternational.org/portal/site/www/MatInformation/Handbooks/.


Re: Rogue https threads

2008-12-04 Thread Leon Rosenberg
Would you mind creating and sending us a Thread Dump?
Regards
Leon

On Thu, Dec 4, 2008 at 8:25 PM, Robert J Morman
[EMAIL PROTECTED] wrote:
 Good afternoon.

 We have a problem with our production tomcat server in that the CPU will
 climb after a restart from 1-2% to 100%.  The rate of climb corresponds
 to the amount of traffic we receive (the more we have, the faster it
 climbs).  I noticed a couple days ago (by using Lambda Probe), that we
 are getting 'rogue' https threads.  These are threads that are stuck in
 the Service stage for a particular request.  I notice that as these
 threads become stuck persistently-serviced, the CPU seems to jump about
 6% at a time (for each thread).  Once we hit 99-100% CPU, we have about
 15 of these and we are required to restart tomcat (as it's not
 responding with much priority).  Lmbda Probe notes that there are no
 Current Busy threads, even though it shows these as being Serviced.

 Is there a way to get these to time out?

 Specifics:
 Tomcat 6.0.16
 Java 1_5_16

 Conf connection snippets:

Connector port=80 protocol=HTTP/1.1
   connectionTimeout=2
enableLookups=false
maxThreads=100
minSpareThreads=5
maxSpareThreads=40
   redirectPort=443 /

  Connector protocol=org.apache.coyote.http11.Http11NioProtocol
   connectionTimeout=6
   port=443 minSpareThreads=5 maxSpareThreads=15
   enableLookups=false disableUploadTimeout=false
   acceptCount=100  maxThreads=100
   scheme=https secure=true SSLEnabled=true
   keystoreFile=e:\apache\tomcat6\.keystore
 keystorePass=changeit
   clientAuth=false sslProtocol=TLS/

 Session timeout is set to 30 minutes in web.xml.

 Bob Morman
 EMCSA, MCSA
 Enterprise Systems Manager
 ASM International Headquarters
 http://www.asminternational.org
 blocked::http://www.asminternational.org/
 440/338-5151 x5478

 The No. 1 reference on metals casting is back with new ways to improve energy 
 efficiency, productivity and product performance!  Read free sample articles 
 from the all-new ASM Handbook, Volume 15: Casting, and take advantage of 
 special pre-publication prices before Dec. 15.  For more on ASM Handbooks: 
 http://asmcommunity.asminternational.org/portal/site/www/MatInformation/Handbooks/.


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



Re: Rogue https threads

2008-12-04 Thread Mark Thomas
Robert J Morman wrote:
 Good afternoon.
  
 We have a problem with our production tomcat server in that the CPU will
 climb after a restart from 1-2% to 100%.  The rate of climb corresponds
 to the amount of traffic we receive (the more we have, the faster it
 climbs).  I noticed a couple days ago (by using Lambda Probe), that we
 are getting 'rogue' https threads.  These are threads that are stuck in
 the Service stage for a particular request.  I notice that as these
 threads become stuck persistently-serviced, the CPU seems to jump about
 6% at a time (for each thread).  Once we hit 99-100% CPU, we have about
 15 of these and we are required to restart tomcat (as it's not
 responding with much priority).  Lmbda Probe notes that there are no
 Current Busy threads, even though it shows these as being Serviced.
  
 Is there a way to get these to time out?

I suspect the threads have each entered an infinite loop. I am afraid there
is no way to stop them short of restarting Tomcat.

Before you do, take a couple of thread dumps ~5 seconds apart so you can
identify where the loops are occurring and get the code fixed.

Mark



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



mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Roy McMorran

Hello all,

I'm seeing frequent cases where requests sent via mod_jk to Tomcat will 
hang indefinitely.  The request will never return to Apache and the 
client will eventually time out.  There are no error messages.


In my test case I run wget against various URLs until the hang occurs 
(usually within 2-3 minutes).  Here are the last few entries from my 
mod_jk.log file (JkLogLevel = trace):


[Thu Dec 04 13:28:08.509 2008] [27224:1] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00c0FF 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00  - 
[Thu Dec 04 13:28:08.510 2008] [27224:1] [trace] 
ajp_connection_tcp_send_message::jk_ajp_common.c (928): exit
[Thu Dec 04 13:28:08.510 2008] [27224:1] [debug] 
ajp_send_request::jk_ajp_common.c (1325): (ajp13) request body to send 0 
- request body to resend 0
[Thu Dec 04 13:28:08.511 2008] [27224:1] [trace] 
ajp_send_request::jk_ajp_common.c (1422): exit
[Thu Dec 04 13:28:08.511 2008] [27224:1] [trace] 
ajp_get_reply::jk_ajp_common.c (1613): enter
[Thu Dec 04 13:28:08.511 2008] [27224:1] [trace] 
ajp_connection_tcp_get_message::jk_ajp_common.c (953): enter


Beyond this point there is no activity.  There are never any error 
messages generated, not in mod_jk.log, catalina.out, nor in the Apache logs.


There is a thread dump of Tomcat (after the hang begins) at:
http://www.mdibl.org/~mcmorran/tomcat_thread_dump.txt

This is a pretty simple setup, both Apache  Tomcat are running on the 
same host, so there is no firewall issue.  No load balancing, just one 
worker defined.


workers.properties file:
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.socket_timeout=120

(have tried with and without the socket_timeout parameter - makes no 
difference)


My server.xml file is at:
http://www.mdibl.org/~mcmorran/server.xml.txt

(I've tried various settings (or none) for connectionTimeout inside the 
AJP connector - makes no difference)


mod_jk related parts of my httpd.conf file are at:
http://www.mdibl.org/~mcmorran/httpd.conf.txt

Version info:
Server: Solaris 10
Apache: 2.2.6
mod_jk: 1.2.25
Tomcat: 6.0.14
libtcnative: 1.10
Java: 1.5.0_14

I'm running Tomcat under jsvc.  The JVM gets 2G of memory (there are 8G 
total on the system) - I don't think there's any memory issue.  I'm in 
test mode so I'm the only user; there's virtually no CPU load on the box.


I've reached a dead end here -I'm hoping someone on the list may have 
some ideas.  Thanks for any help you may be able to provide.


Cheers,
Roy
--

Roy McMorran
Systems Administrator
MDI Biological Laboratory
[EMAIL PROTECTED]



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



Re: access to all sessions

2008-12-04 Thread Leon Rosenberg
It depends on your definition of easier...
you could provide your own session manager with your own session
implementation, which supports such a mechanism or patch the existing
StandartSession.java. I don't know whether you'd call it easy :-)
Leon



On Thu, Dec 4, 2008 at 8:09 PM, Timothy J Schumacher
[EMAIL PROTECTED] wrote:
 Hi Leon,

 Thanks for the info.  So, if I simply wanted to tell TC to invalidate all
 sessions is there something easier I could do?

 Tim

 Leon Rosenberg wrote:

 Hello Tim,

 there is no easy and direct way to do it. What you can do is to create
 a SessionListener

 (http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSessionListener.html),
 register it as listener in the web.xml and store references to the
 sessions upon creation somewhere (read map).
 But beware, you have to be cautious a) not to create a memory leak by
 not letting tomcat to remove outdated sessions and b) synchronize
 accesses to your map and sessions without creating dead locks (since
 1.4 doesn't have all the fancy concurrency stuff).

 regards
 Leon

 On Thu, Dec 4, 2008 at 7:32 PM, Timothy J Schumacher
 [EMAIL PROTECTED] wrote:


 Hi,

 I have TC 5.0.12 and java 1.4.1_04.  Unfortunately, I am stuck using
 these
 versions for now...

 I am trying to figure out how to access/manipulate all the sessions for
 my
 web app.  I guess I want something similar to the manager application,
 but I
 don't want to have to run the manager application.  Does anyone know of a
 good reference to learn more about how this works?  I looked a little bit
 at
 the docs but it was not clear to me how to access this data.

 Thanks!
 Tim



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




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



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



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



Re: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Mark Thomas
Roy McMorran wrote:
 Hello all,
 
 I'm seeing frequent cases where requests sent via mod_jk to Tomcat will
 hang indefinitely.  The request will never return to Apache and the
 client will eventually time out.  There are no error messages.
 
 In my test case I run wget against various URLs until the hang occurs
 (usually within 2-3 minutes).  Here are the last few entries from my
 mod_jk.log file (JkLogLevel = trace):
 
 [Thu Dec 04 13:28:08.509 2008] [27224:1] [debug]
 ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00c0FF 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00  - 
 [Thu Dec 04 13:28:08.510 2008] [27224:1] [trace]
 ajp_connection_tcp_send_message::jk_ajp_common.c (928): exit
 [Thu Dec 04 13:28:08.510 2008] [27224:1] [debug]
 ajp_send_request::jk_ajp_common.c (1325): (ajp13) request body to send 0
 - request body to resend 0
 [Thu Dec 04 13:28:08.511 2008] [27224:1] [trace]
 ajp_send_request::jk_ajp_common.c (1422): exit
 [Thu Dec 04 13:28:08.511 2008] [27224:1] [trace]
 ajp_get_reply::jk_ajp_common.c (1613): enter
 [Thu Dec 04 13:28:08.511 2008] [27224:1] [trace]
 ajp_connection_tcp_get_message::jk_ajp_common.c (953): enter
 
 Beyond this point there is no activity.  There are never any error
 messages generated, not in mod_jk.log, catalina.out, nor in the Apache
 logs.
 
 There is a thread dump of Tomcat (after the hang begins) at:
 http://www.mdibl.org/~mcmorran/tomcat_thread_dump.txt
 
 This is a pretty simple setup, both Apache  Tomcat are running on the
 same host, so there is no firewall issue.  No load balancing, just one
 worker defined.
 
 workers.properties file:
 worker.list=ajp13
 worker.ajp13.type=ajp13
 worker.ajp13.host=localhost
 worker.ajp13.port=8009
 worker.ajp13.socket_timeout=120
 
 (have tried with and without the socket_timeout parameter - makes no
 difference)
 
 My server.xml file is at:
 http://www.mdibl.org/~mcmorran/server.xml.txt
 
 (I've tried various settings (or none) for connectionTimeout inside the
 AJP connector - makes no difference)
 
 mod_jk related parts of my httpd.conf file are at:
 http://www.mdibl.org/~mcmorran/httpd.conf.txt
 
 Version info:
 Server: Solaris 10
 Apache: 2.2.6
 mod_jk: 1.2.25
 Tomcat: 6.0.14
 libtcnative: 1.10
 Java: 1.5.0_14
 
 I'm running Tomcat under jsvc.  The JVM gets 2G of memory (there are 8G
 total on the system) - I don't think there's any memory issue.  I'm in
 test mode so I'm the only user; there's virtually no CPU load on the box.
 
 I've reached a dead end here -I'm hoping someone on the list may have
 some ideas.  Thanks for any help you may be able to provide.

Have you tried:
JkOptions +DisableReuse
?

Mark



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



attaching documents through webservices ?

2008-12-04 Thread Nicholas . Payne
Hello,

I am trying to attach a document throught /axis webservices in Tomcat 
5.0.19 and I am uable to do so, the actual service is up (webpage tomcat 
is up), but when I try to use a scipt (java .net) to upload documents I 
get an error 500 in the logs ?

Is there anything else that needs to be enables so that I can attach 
documents through webservices ?


Thanks.


Nicholas A. Payne


IS Application Support Server Administrator
Tel:(514)982-3613
770 rue Sherbrooke Ouest
Montréal, QC H3A 1G1
[EMAIL PROTECTED] 

Re: j_security_check

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Martin Dubuc wrote:
 I will describe the browser interactions with regards to the access logs.

Thanks, this was helpful.

 My assumption is that clicking on OK caused the client to be
 redirected to sessionTimeout.jsf.

I think you mean that the browser simply requested sessionTimeout.jsf,
rather than being redirected. The response was 200, which means that it
should have been successfully serviced. I think recent Tomcats return
200 when the login-page is shown, though, so it's tough to tell exactly
what happened.

Requests for the following resources seemed to happen simultaneously
(probably from the original page being loaded):

/a4j/s/3_2_2.SR1org/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
/a4j/s/3_2_2.SR1org/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/skinning.js.jsf
/favicon.ico HTTP/1.1

None of those should have caused the login page to be displayed, either
(which wouldn't have happened anyway, since it would have been included
in the main content, rather than being the response to the initial request).

 I do not understand why, but that
 redirection seems to cause Tomcat to ask for authentication, altough there
 is no protected resources used by sessionTimeout.jsf or any other URLs that
 are listed in the access log after 17:13:06.

Are you sure you don't have any other security-constraint sections in
your web.xml?

 So to answer some of your question more specifically,:
 
 - To get the session timeout to kick in after 1 minute, I had to disable
 some of my application code that was hard coding all sessions
 maxInactiveInterval value to 15 minutes on startup (bypassing the web.xml
 value).

That'll do it ;)

 - The sessionTimeout.jsf was triggered from JavaScript.

Okay, so this simply requests /sessionTimeout.jsf after the session
should have timed out. This should behave exactly as if you manually
typed-in /sessionTimeout.jsf into your browser. Remember to run that URL
through response.encodeURL() before putting it into your Javascript,
just in case your client isn't using cookies.

 - The login page does not access any of the protected resources (it doesn't
 use the stylesheet, nor any images).

Ok.

 - I believe that the session expired at 17:14:06, although I think the
 client only gets redirected to sessionTimeout.jsf at 17:28:04 after user
 clicks on OK.

You can easily convince yourself that your login expired because you are
asked to login again ;) Not sure why you have to, but at least you know
your session is gone.

 - I do not know why any request resulted in the login page to be shown in
 the first place. None of the a4j/*, favicon.ico should trigger the login
 page.

Ok.

Can you post more of your web.xml?

- -chris

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

iEYEARECAAYFAkk4OpIACgkQ9CaO5/Lv0PC3vgCdHtyFdztw6px/s35pmI6rzep7
2WEAniK8Oh49jZCcoitk0Z3ks79RT/Fb
=LCGJ
-END PGP SIGNATURE-

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



Re: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Roy McMorran

Mark Thomas wrote:

Roy McMorran wrote:
  

Hello all,

I'm seeing frequent cases where requests sent via mod_jk to Tomcat will
hang indefinitely.  The request will never return to Apache and the
client will eventually time out.  There are no error messages.

In my test case I run wget against various URLs until the hang occurs
(usually within 2-3 minutes).  Here are the last few entries from my
mod_jk.log file (JkLogLevel = trace):

[Thu Dec 04 13:28:08.509 2008] [27224:1] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00c0FF 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00  - 
[Thu Dec 04 13:28:08.510 2008] [27224:1] [trace]
ajp_connection_tcp_send_message::jk_ajp_common.c (928): exit
[Thu Dec 04 13:28:08.510 2008] [27224:1] [debug]
ajp_send_request::jk_ajp_common.c (1325): (ajp13) request body to send 0
- request body to resend 0
[Thu Dec 04 13:28:08.511 2008] [27224:1] [trace]
ajp_send_request::jk_ajp_common.c (1422): exit
[Thu Dec 04 13:28:08.511 2008] [27224:1] [trace]
ajp_get_reply::jk_ajp_common.c (1613): enter
[Thu Dec 04 13:28:08.511 2008] [27224:1] [trace]
ajp_connection_tcp_get_message::jk_ajp_common.c (953): enter

Beyond this point there is no activity.  There are never any error
messages generated, not in mod_jk.log, catalina.out, nor in the Apache
logs.

There is a thread dump of Tomcat (after the hang begins) at:
http://www.mdibl.org/~mcmorran/tomcat_thread_dump.txt

This is a pretty simple setup, both Apache  Tomcat are running on the
same host, so there is no firewall issue.  No load balancing, just one
worker defined.

workers.properties file:
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.socket_timeout=120

(have tried with and without the socket_timeout parameter - makes no
difference)

My server.xml file is at:
http://www.mdibl.org/~mcmorran/server.xml.txt

(I've tried various settings (or none) for connectionTimeout inside the
AJP connector - makes no difference)

mod_jk related parts of my httpd.conf file are at:
http://www.mdibl.org/~mcmorran/httpd.conf.txt

Version info:
Server: Solaris 10
Apache: 2.2.6
mod_jk: 1.2.25
Tomcat: 6.0.14
libtcnative: 1.10
Java: 1.5.0_14

I'm running Tomcat under jsvc.  The JVM gets 2G of memory (there are 8G
total on the system) - I don't think there's any memory issue.  I'm in
test mode so I'm the only user; there's virtually no CPU load on the box.

I've reached a dead end here -I'm hoping someone on the list may have
some ideas.  Thanks for any help you may be able to provide.



Have you tried:
JkOptions +DisableReuse
?

Mark

  


Hi Mark, thanks for the reply.

I hadn't tried DisableReuse - the documentation at 
http://tomcat.apache.org/connectors-doc/reference/apache.html led me to 
believe that 1) it would likely be very detrimental to performance and 
2) it probably doesn't apply my situation (no firewall, no network 
involved at all).


Nevertheless, I gave it a go just now.  Unfortunately it made no difference.

Thanks,
-r

--

Roy McMorran
Systems Administrator
MDI Biological Laboratory
[EMAIL PROTECTED]


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



Re: Anyone build Tomcat cluster on Xen

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maggie,

Maggie Shao wrote:
 Hi,
 Does anyone build Tomcat cluster on Xen?
 Is there any difference?

The steps for configuration should be identical, since each OS acts as
if it is a separate physical host. I'm not sure you get any benefit to
running a cluster on multiple VMs on a single physical machine. I would
run a single Tomcat on a single physical machine to achieve better
performance.

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

iEYEARECAAYFAkk4O/MACgkQ9CaO5/Lv0PDmygCgsbcAywPldC3akDEbbTdytwdw
I4AAoKmFLpqFhsvUiDf7imoG8wNaTnE8
=bvME
-END PGP SIGNATURE-

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



Re: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Mark Thomas
Roy McMorran wrote:
 libtcnative: 1.10

Sorry, should have seen this sooner. Try disabling it or using a newer version.

Mark



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



Re: Login config

2008-12-04 Thread Kees de Kooter
 I installed a tomcat 5.5.27 with an application and I configure the
 web.xml of the application by introducing a security constraint and a
 login config with a form. My login page is not in the security
 directory. So when I launch Tomcat and I access to my application  with
 restriction, the login page is displaying but the URL address is not my
 login page, it is the security directory.


As far as I know this is the standard behaviour. After a succesful
login the secured page is displayed.

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



Re: Unable to stop SimpleTcpReplicationManager

2008-12-04 Thread Filip Hanik - Dev Lists

If you are using Tomcat 6, you can also use BackupManager

Filip

Pieter Temmerman wrote:

This problem is solved.
I replaced the SimpleTcpReplicationManager by the DeltaManager and
everything works as expected.


On Wed, 2008-12-03 at 23:48 +0100, Pieter Temmerman wrote:
  

Hi all,

I'm having two Tomcats which are placed in a cluster.
If I stop and start a context (instead of completely stopping/restarting 
Tomcat), then I see the following error in catalina.out:

ERROR: Unable to stop SimpleTcpReplicationManager

No other information is specified.
I have been Googling, but haven't found any explanation.
I took a look at the source code of the SimpleTcpReplicationManager, but I 
can't derive from it what could have gone wrong.

When I try to restart the context, then I see the following error:

ERROR: Starting... no cluster associated with this
context:/dist/preproduction/wasuzi

I'm guessing the latter error is related to the first one.
Unfortunately, right now I don't have access to the server.xml to post the 
configuration info.
In a couple of hours I will, but I thought I'd give a heads up, just in case 
anybody has seen this error before.

Before I forget, when I stop/start Tomcat completely, I don't see this error, 
it's only happening when reloading a context.

Thanks. 



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


  



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



Re: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Roy McMorran

Mark Thomas wrote:

Roy McMorran wrote:
  

libtcnative: 1.10



Sorry, should have seen this sooner. Try disabling it or using a newer version.
  


I'll give it a try but I'm not hopeful.  You see I have two systems 
exhibiting this hang behavior.  The other one (dev) has the latest 
libtcnative (1.1.15).  And I have a third (the production box) also 
using 1.1.10 that is fine (it doesn't hang).  I admit, it's strange.


Thanks
-r

--

Roy McMorran
Systems Administrator
MDI Biological Laboratory
[EMAIL PROTECTED]


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



RE: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Doctor Khumalo

How can i be removed from this awful blog?

 Date: Thu, 4 Dec 2008 15:50:30 -0500
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: mod_jk - ajp hangs indefinitely on some requests
 
 Mark Thomas wrote:
  Roy McMorran wrote:

  libtcnative: 1.10
  
 
  Sorry, should have seen this sooner. Try disabling it or using a newer 
  version.

 
 I'll give it a try but I'm not hopeful.  You see I have two systems 
 exhibiting this hang behavior.  The other one (dev) has the latest 
 libtcnative (1.1.15).  And I have a third (the production box) also 
 using 1.1.10 that is fine (it doesn't hang).  I admit, it's strange.
 
 Thanks
 -r
 
 -- 
 
 Roy McMorran
 Systems Administrator
 MDI Biological Laboratory
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Send e-mail anywhere. No map, no compass.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008

Re: java.io.IOException: Stream closed

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stefan,

Schuster Stefan wrote:
 I have the following problem with tomcat 6.0.18:
 I wrote a servlet that reads the input stream with
 XML Beans. An application sends requests to the servlet, but only the first 
 request succeedes.

That's odd.

 Every second call results in the following exception:
 
 java.io.IOException: Stream closed
   at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:325)
   at 
 org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
   at 
 org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.fillByteBuffer(XMLStreamReader.java:209)
   at 
 org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.reset(XMLStreamReader.java:97)
   at 
 org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.open(DocumentEntity.java:94)
   at 
 org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.reset(PiccoloLexer.java:982)
   at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:709)
   at 
 org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
   at 
 org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
   at 
 org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
   at 
 org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
   at noNamespace.DataDocument$Factory.parse(Unknown Source)
   at 
 de.cirquent.nwfi.xcelsius.XMLServiceServlet.getDocument(XMLServiceServlet.java:71)02.12.2008
  14:55:19 org.apache.catalina.core.StandardWrapperValve invoke
 SCHWERWIEGEND: Servlet.service() for servlet XMLServiceServlet threw exception

Could you post as much of de.cirquent.nwfi.xcelsius.XMLServiceServlet as
you feel comfortable posting? I wonder if you're trying to read the
input stream in an odd way.

 I do not cache the input stream in the servlet, so I do not understand how the
 subsequent transmissions are related? I am even sending a connection close 
 with
 the response to make shure that there is no issue with a reused connection.

Tomcat won't re-use the connection, so you should focus your search on
the code in that servlet (or the XMLBeans parser).

- -chris

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

iEYEARECAAYFAkk4SR8ACgkQ9CaO5/Lv0PB06ACgjm8/8xsylXMjIcgNA5lFKlqF
ov0An3rQ8/9kcCHC6VaKLP7Me2WqGCQj
=Jfuu
-END PGP SIGNATURE-

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



Re: 11 recommendations for posters to this list

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

+1

13) Post a snide follow-up when someone asks if you've looked for online
documentation or done a web search for obvious key words.

Brantley Hobbs wrote:
 12)  Be sure to top post.

!!

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

iEYEARECAAYFAkk4StwACgkQ9CaO5/Lv0PBNPgCcCXf2YfSZS3m5+Vxi0X5opd87
M34AoJYPU+4DfO8MrWfLOy50XlfDF6QM
=VmQh
-END PGP SIGNATURE-

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



Re: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread André Warnier

Doctor Khumalo wrote:

How can i be removed from this awful blog?

Just scroll down the page, Doctor, there's a link to do just that on 
every one of them.


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



Re: [ANN] Apache Tomcat 4.1.39 stable is released

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

André Warnier wrote:
 Mark Thomas wrote:
 The Apache Tomcat team is proud to announce the immediate availability of
 Tomcat 4.1.39 stable. 
 
 Remembering numerous exhortations on this list to upgrade, I must say
 this announcement is somewhat surprising to me.

Really the only black sheep are 3.x and 5.0 at this point, but that
doesn't mean that nobody will make fun of you for continuing to run 4.x.
Chuck ribbed me about that one for years until I finally upgraded (to
5.5). It won't be long before he's giggling that I haven't moved up to
6.0 yet. I can't wait to hear the groans about sticking with a 1.5 JRE,
too. ;)

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

iEYEARECAAYFAkk4TyEACgkQ9CaO5/Lv0PCDtACgmRgKSnUbNwnIfAL85g9QdetJ
NTYAnicUWIVOcRbnQ3dUyw1dthSMHxBu
=7Nbo
-END PGP SIGNATURE-

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



Re: 11 recommendations for posters to this list

2008-12-04 Thread André Warnier

Christopher Schultz wrote:


13) Post a snide follow-up when someone asks if you've looked for online
documentation or done a web search for obvious key words.


Well, in truth, you didn't really ask, did you.
And he did say thank you, before wielding the scalpel.
;-)

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



Re: PostMethod call fails in Tomcat

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kpalania,

kpalania wrote:
 I am trying to access a REST service from within an application deployed in
 Tomcat but, however, this call seems to fail:
 
 PostMethod method = new PostMethod(http://...;);
 
 I am able to call the same service using PostMethod from a junit test. Any
 thoughts?

Please post a stack trace or other error message generated by the failed
call.

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

iEYEARECAAYFAkk4UEMACgkQ9CaO5/Lv0PCoRwCaA2kW4pkmha3KjNZVq+W3Gj1n
uoUAnRmMKk1mz5hTU31YgGAN0rBhR/EI
=pvUS
-END PGP SIGNATURE-

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



Re: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Roy McMorran

Roy McMorran wrote:

Mark Thomas wrote:
Roy McMorran wrote:  
libtcnative: 1.10  


Sorry, should have seen this sooner. Try disabling it or using a 
newer version.  


I'll give it a try but I'm not hopeful.  You see I have two systems 
exhibiting this hang behavior.  The other one (dev) has the latest 
libtcnative (1.1.15).  And I have a third (the production box) also 
using 1.1.10 that is fine (it doesn't hang).  I admit, it's strange.


Despite my misgivings, 1.1.5 seems to have helped.  It's run my test 
script for about 30 minutes now without problems (previously would have 
hung by minute 3). 


However!
My dev system (which was already running 1.1.15) still exhibits the 
problem.  It also has newer versions of Tomcat (6.0.18), Apache (2.2.10) 
and mod_jk (1.2.27).


Looks like I'm not done yet.

Thanks,
-r
--

Roy McMorran
Systems Administrator
MDI Biological Laboratory
[EMAIL PROTECTED]


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



Re: Rogue https threads

2008-12-04 Thread Filip Hanik - Dev Lists

a simple upgrade to 6.0.18 would most likely solve your problem

Filip
Robert J Morman wrote:

Good afternoon.
 
We have a problem with our production tomcat server in that the CPU will

climb after a restart from 1-2% to 100%.  The rate of climb corresponds
to the amount of traffic we receive (the more we have, the faster it
climbs).  I noticed a couple days ago (by using Lambda Probe), that we
are getting 'rogue' https threads.  These are threads that are stuck in
the Service stage for a particular request.  I notice that as these
threads become stuck persistently-serviced, the CPU seems to jump about
6% at a time (for each thread).  Once we hit 99-100% CPU, we have about
15 of these and we are required to restart tomcat (as it's not
responding with much priority).  Lmbda Probe notes that there are no
Current Busy threads, even though it shows these as being Serviced.
 
Is there a way to get these to time out?
 
Specifics:

Tomcat 6.0.16
Java 1_5_16
 
Conf connection snippets:
 
Connector port=80 protocol=HTTP/1.1 
   connectionTimeout=2 
enableLookups=false

maxThreads=100
minSpareThreads=5
maxSpareThreads=40
   redirectPort=443 /
 
 Connector protocol=org.apache.coyote.http11.Http11NioProtocol

   connectionTimeout=6
   port=443 minSpareThreads=5 maxSpareThreads=15
   enableLookups=false disableUploadTimeout=false 
   acceptCount=100  maxThreads=100

   scheme=https secure=true SSLEnabled=true
   keystoreFile=e:\apache\tomcat6\.keystore
keystorePass=changeit
   clientAuth=false sslProtocol=TLS/
 
Session timeout is set to 30 minutes in web.xml.
 
Bob Morman

EMCSA, MCSA
Enterprise Systems Manager
ASM International Headquarters
http://www.asminternational.org
blocked::http://www.asminternational.org/ 
440/338-5151 x5478
 
The No. 1 reference on metals casting is back with new ways to improve energy efficiency, productivity and product performance!  Read free sample articles from the all-new ASM Handbook, Volume 15: Casting, and take advantage of special pre-publication prices before Dec. 15.  For more on ASM Handbooks: http://asmcommunity.asminternational.org/portal/site/www/MatInformation/Handbooks/.


  



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



Re: Unable to connect to DB using DataSource

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stefan,

I'm no expert with Axis WebService, but I do have a question about your
use of the javax.sql.DataSource object:

Stefan Deitmer wrote:
 This is how I access the DataSource in the Axis WebService's LifeCycle
 object startup routine:
 
public void startUp(ConfigurationContext configctx, AxisService
 service) {

...

service.addParameter(new Parameter(Constants.DATASOURCE, ds));

Is it customary to push a DataSource into the service's parameters?
Since the DataSource is always available via JNDI, why not simply grab
it from the JNDI context whenever you need it?

Going through JNDI has the added benefit of always getting you the right
object. If you were to reconfigure (or replace, really) the DataSource
in the JNDI context, your updates wouldn't be available to the web service.

SQLException while trying to get connection : Cannot load JDBC driver
 class 'org.postgresql.Driver'

I suspect you are just missing the PostgreSQL driver jar file. Can you
find it in any of the (hopefully) obvious places? I would start by
looking in /usr/share/tomcat5.5 and its subdirs.

 Replacing above code with the following works without errors:
 
try
{
Class.forName(org.postgresql.Driver);
conn =
 DriverManager.getConnection(jdbc:postgresql://localhost/database,
 user, password);
}catch (Exception e) {
LOG.error(SQLException while trying to get connection: 
+ e.getMessage());
}

Sounds like the driver JAR file is packaged with your webapp (that is,
in yourapp/WEB-INF/lib/postgresql.jar). If you want to use Tomcat's
connection pooling (and you probably /do/), then you need to MOVE that
JAR file from your webapp's lib directory into Tomcat's libraries
directory. For Tomcat 5.5, you should probably put it into common/lib
under your Tomcat's real installation directory (maybe
/usr/share/tomcat5.5/common/lib).

 This is my first project with Tomcat, Axis, JDBC and PostgreSQL, and
 also the first time I'm seriously using Java in a very long time,
 so please have some patience with me if I'm missing something essential
 here.


You provided a perfect amount of information, actually. Thanks for
providing all the info you did!

 How comes Class.forName works when I call
 it directly, but not when the DataSource class calls it internally?

When using the DataSource, you are attempting to use Tomcat's connection
pool. Tomcat needs to be able to load the driver from a JAR file
/before/ consulting your webapp's libraries. When you use the
DriverManager, you are bypassing all that and loading the driver
normally through your webapp's classloader.

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

iEYEARECAAYFAkk4UwYACgkQ9CaO5/Lv0PArlQCgkDShHM1KPolqhie10rXy5T7l
ulsAn1HGPq3TL1ElwW6lWsafU4eFD409
=1tU5
-END PGP SIGNATURE-

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



Re: Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

Chris Hut wrote:
 If you override: public void init(ServletConfig config), you MUST call
 super.init(config). If you don't, the config member of the base servlet
 class won't get set, which could cause problems downstream.

It's also a good idea to call this.init() as well, since that's the
expected behavior established by GenericServlet.

- -chris

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

iEYEARECAAYFAkk4VGkACgkQ9CaO5/Lv0PBMIgCgnkfD/IRhhbadyzMBw1NwRmH9
3wUAniuuSdjf6wYeZeA/3dSS+nUJV2iZ
=4dC2
-END PGP SIGNATURE-

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



RE: Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-04 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat 6.0.18 Servlet Loading/Reloading

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 It's also a good idea to call this.init() as well, since that's the
 expected behavior established by GenericServlet.

Or just do it the preferred way, which is override only the plain init() method 
and not the one with the parameter.  The whole point of providing a convenience 
method (which is what init() is documented to be) is that it's convenient to 
use...

 - Chuck


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

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



Re: Need help : Tomcat Stuck up

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

To whom it may concern,

Kranti™ K K Parisa wrote:
 Could you please help me with the commands that i need to run to watch the
 thread dump.

Are you running Tomcat as a service, or are you starting it manually
from the command line? If you start it manually and have a terminal
open, press CTRL-\ which will cause the JVM to emit a thread dump to the
console.

If you're running Tomcat as a service, you'll need to try some other
techniques. Google for something like tomcat windows service thread
dump to find out how to get a thread dump.

 and when i run java -verbose:gc its asking for options, what
 can i select along with that ?

You need to change the options that Tomcat uses to start the JVM. If you
aren't running as a service, you can set the JAVA_OPTS environment
variable to -verbose:gc before starting Tomcat using startup.bat. If
you are running a service, I think you have to run tomcat5w.exe in the
bin directory and edit the options from the Java tab.

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

iEYEARECAAYFAkk4VlUACgkQ9CaO5/Lv0PA/QQCfQVyR0HbU43430ozjaCXL2hGJ
jAAAn0tZ5cUWe8GBeDy5ercgo6S03Y6e
=Z7lN
-END PGP SIGNATURE-

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



Re: Login config

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christophe,

FARNIER Christophe wrote:
 I installed a tomcat 5.5.27 with an application and I configure the
 web.xml of the application by introducing a security constraint and a
 login config with a form. My login page is not in the security
 directory. So when I launch Tomcat and I access to my application  with
 restriction, the login page is displaying but the URL address is not my
 login page, it is the security directory.
  
 What can I do for displaying the correct URL? The problem does not
 appear with the Tomcat 4.

Technically, this is not a problem. The behavior of Tomcat changed
between version 4 and 5: TC4 sent a redirect to the client to re-request
the login page, while TC5 does an internal forward to the login page.

You can manually send a redirect from your login page if the URL doesn't
look right to you. Is it a problem for you to display the wrong URL in
this case?

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

iEYEARECAAYFAkk4VucACgkQ9CaO5/Lv0PAM/ACgppquSYlqMhIAWxegNLtB8QvX
lXYAoKsdSL7DshhvFm1ntBxhzmAzZiAJ
=DTmD
-END PGP SIGNATURE-

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



Re: AW: java.io.IOException: Stream closed

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stafan,

Schuster Stefan wrote:
 I still have the problem mentioned below. I just don't have any idea
 where to start with problem solving?  Can it be a problem in Tomcat? I guess
 not as this is a very simple use-case (read the stream in the servlet) and
 it would have probably come up ealier...

In case you didn't see my other post, please post as much of your
de.cirquent.nwfi.xcelsius.XMLServiceServlet as you can.

- -chris

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

iEYEARECAAYFAkk4WAwACgkQ9CaO5/Lv0PDtMQCeKRYlIZ+IztOUenCtEvMO3jKI
XuwAn39eTXUhNbb7Krz2FQDNMW9rc3Oh
=jQeB
-END PGP SIGNATURE-

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



Re: mod_jk - ajp hangs indefinitely on some requests

2008-12-04 Thread Roy McMorran

Roy McMorran wrote:
Despite my misgivings, 1.1.5 seems to have helped.  It's run my test 
script for about 30 minutes now without problems (previously would 
have hung by minute 3).

However!
My dev system (which was already running 1.1.15) still exhibits the 
problem.  It also has newer versions of Tomcat (6.0.18), Apache 
(2.2.10) and mod_jk (1.2.27).


Correction.  The combination of updating libtcnative to 1.1.15 _AND_ 
setting JkOptions +DisableReuse prevents both systems from hanging.


I'm concerned about the performance implications of using this directive 
based on what I read at

http://tomcat.apache.org/connectors-doc/reference/apache.html
and I'm unclear as to why it's necessary.  Can anyone educate me on 
this?  Do I still have a problem with my configuration?


Thanks again,
-r

--

Roy McMorran
Systems Administrator
MDI Biological Laboratory
[EMAIL PROTECTED]


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



Re: Unable to connect to DB using DataSource

2008-12-04 Thread Stefan Deitmer

André Warnier schrieb:

Stefan Deitmer wrote:

André Warnier schrieb:

[...]
Ok, then another probably silly suggestion, but you might as well 
upturn this stone too.
Apart from the directories you named as already compared, have you 
compared the /usr/share/tomcat5.5 ?
That is where the Debian distributions usually install the base of the 
Tomcat 5.5 software (CATALINA_HOME).  /var/lib/tomcat5.5 is 
CATALINA_BASE (where this Tomcat instance actually runs).


André, as I suspected earlier today, you were on the right track.
I put a link to postgresql.jar into /usr/share/tomcat5.5/common/lib, and 
it works now.

Thank you so much! Life is good again :)

Cheers
Stefan

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



Re: Mini HOW-TO: Tomcat as a service on Windows Server 2003 64-bit edition

2008-12-04 Thread Swapnil.Kale

Hi, 
The article I have posted is an older one. The service exe is now available
at tomcat site. I don't have the link handy though, I will surely post it
soon. 
I won't recommend the old post now as a year before the only solution was
the posted ones. 
Thanks. 

Sent from my iPhone. 


kareda wrote:
 
 
 Hello, 
 
 tried this guide, doesn't work for me though. used the 64-bit tomcat
 binaries but when running Service.bat install I get the error: 
 The program or feature \??\C:\apache-tomcat-6.0.18\bin\tomcat6.exe
 cannot start or run due to incompatibility with 64-bit version of Windows.
 
 
 server info: 64-bit windows 2003 running on Quad Core Intel Xeon X3320 (4
 x 2.50 GHz), 8.192 MB SDRAM
 
 any help is greatly appreciated. 
 
 tnx! 
 Kaur 
 
 
 Swapnil.Kale wrote:
 
 Hey folks,
 Finally i found the one i wanted. Did a google recently and found this:
 If you are looking for 64 bit amd exe for tomcat here is the solution.
 
 Background
 
 To install Tomcat in a 64bit architecture, download the ZIP installer
 from the Apache web site and unzipped.
 
 At this point
 •Tomcat can be started by using startup.bat or shutdown using
 shutdown.bat 
 •Tomcat can not be used as a Windows service since Tomcat6.exe and
 Tomcat6w.exe are intended for 32bit hardware
 
 Steps 
 
 1)   Download from the Apache repository the corresponding version of
 Tomcat6.exe and Tomcat6w.exe for your platform
 
 If your platform is AMD64 (This will work with Intel processors based an
 AMD64)
 http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/
 
 If your platform is Itanium, use
 http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/ia64/
 
 2)   Rename/save the existing Tomcat6.exe and Tomcat6w.exe from your
 %CATALINA_HOME%\bin directory 
 
 3)   Move the downloaded copies to %CATALINA_HOME%\bin
 
 4)   From the command prompt, install Tomcat as a service, running the
 following command
 
 Service.bat install
 
 
 5)   Before Tomcat is started, make sure you have allocated enough memory
 to Tomcat
 
 Double-click Tomcat6w.exe and set the memory sizes required
 
 6)   Now you can start Tomcat as a service. You could use any of the
 following methods:
 
 •From Start  Settings  Control Panel  Administrative Tools  Services
 •Use the General tab in the Apache Tomcat Properties window
 
 
 
 


-
Swapnil Kale  Think before you print

:working:
-- 
View this message in context: 
http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20845972.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Trying to run tc from a read-only partition . . .

2008-12-04 Thread Albretch Mueller
 Hi,
~
 I am trying to run tomcat from a directory mounted as read-only and I
was under the impression all it took was, doing two or three things
namely:
~
 * If you need to edit the webapps as tomcat runs, resetting the
[Engine  Realm  Host]:appBase to the new webapps directory in the
writable area
~
 * changing the [Engine  Realm  Host]:workDir to an area in the
writable partition
~
 * setting the [Engine  Realm  Host  Valve]:directory with the full
path to where you want the logs to be sent
~
 I also changed CATALINA_TMPDIR in catalina.sh to an area in the
writable partition
~
 But, even though tomcat seemed to run, I got stack traces of
exceptions which looked all the same.
~
 I basically see that there are 5 files trying to write to
$TOMCAT_HOME/logs and all of the are suffixed with a -mm-dd.log
pattern; namely catalina, localhost, manager, admin and host-manager
~
 Well, my question is stated in the subject line, how do you do that?
~
 Thanks
 lbrtchx
~
// _ P.S. the stack traces
~
sh-3.1# sh ./catalina.sh run
Using CATALINA_BASE:   /media/hda3/tc/tc-6.0.18
Using CATALINA_HOME:   /media/hda3/tc/tc-6.0.18
Using CATALINA_TMPDIR: /media/hda2/tc/tc-6.0.18/TMPDIR
Using JRE_HOME:   /media/hda3/jdk1.6.0_07
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException:
/media/hda3/tc/tc-6.0.18/logs/catalina.2008-12-04.log (Read-only file
system)
 at java.io.FileOutputStream.openAppend(Native Method)
 at java.io.FileOutputStream.init(FileOutputStream.java:177)
 at java.io.FileOutputStream.init(FileOutputStream.java:102)
 at java.io.FileWriter.init(FileWriter.java:61)
 at org.apache.juli.FileHandler.open(FileHandler.java:259)
 at org.apache.juli.FileHandler.init(FileHandler.java:59)
 at org.apache.juli.FileHandler.init(FileHandler.java:50)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
 at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
 at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
 at java.util.logging.LogManager$2.run(LogManager.java:254)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252)
 at java.util.logging.LogManager.getLogManager(LogManager.java:235)
 at java.util.logging.Logger.init(Logger.java:201)
 at java.util.logging.LogManager$RootLogger.init(LogManager.java:969)
 at java.util.logging.LogManager$RootLogger.init(LogManager.java:966)
 at java.util.logging.LogManager$1.run(LogManager.java:179)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.clinit(LogManager.java:156)
 at java.util.logging.Logger.getLogger(Logger.java:254)
 at org.apache.juli.logging.DirectJDKLog.init(DirectJDKLog.java:71)
 at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
 at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
 at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
 at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:54)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException:
/media/hda3/tc/tc-6.0.18/logs/manager.2008-12-04.log (Read-only file
system)
 at java.io.FileOutputStream.openAppend(Native Method)
. . .
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:54)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException:
/media/hda3/tc/tc-6.0.18/logs/admin.2008-12-04.log (Read-only file
system)
 at java.io.FileOutputStream.openAppend(Native Method)
. . .
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:54)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException:
/media/hda3/tc/tc-6.0.18/logs/host-manager.2008-12-04.log (Read-only
file system)
 at java.io.FileOutputStream.openAppend(Native Method)
. . .
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:54)
Dec 4, 2008 3:27:15 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/media/hda3/jdk1.6.0_07/jre/lib/i386/client:/media/hda3/jdk1.6.0_07/jre/lib/i386:/media/hda3/jdk1.6.0_07/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Dec 4, 2008 3:27:15 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Dec 4, 2008 3:27:15 PM 

SSL/Apache and Proxy

2008-12-04 Thread Doctor Khumalo

How do I configure server.xml on Tomcat? I have
configured SSL through Apache and the proxy part works, however, I get
this error in the ssl log 


[Thu Dec 04 15:06:12 2008] [error] (111)Connection refused: proxy: HTTPS: 
attempt to connect to 165.112.28.126:8443 (localhost) failed
[Thu Dec 04 15:06:12 2008] [error] ap_proxy_connect_backend disabling worker 
for (localhost)

_
Send e-mail anywhere. No map, no compass.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008

RE: Trying to run tc from a read-only partition . . .

2008-12-04 Thread Caldarale, Charles R
 From: Albretch Mueller [mailto:[EMAIL PROTECTED]
 Subject: Trying to run tc from a read-only partition . . .

 setting the [Engine  Realm  Host  Valve]:directory with
 the full path to where you want the logs to be sent

Insufficient, since you didn't change where the vast majority of the logs are 
configured, which is in conf/logging.properties.

 But, even though tomcat seemed to run, I got stack traces of
 exceptions which looked all the same.

Not surprising, and there may be more encountered as Tomcat runs.  The 
CATALINA_BASE variable was originally intended for this kind of thing, but too 
much of Tomcat has migrated to that location to make it useful any more.

If you're using the conf/tomcat-users.xml file, that will normally also be 
updated every time Tomcat starts.

 - Chuck


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

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



RE: Login config

2008-12-04 Thread FARNIER Christophe
Yes, I know that. But in Tomcat 4, the address in browser when I try to display 
a restricted application is redirect for example to 
http://localhost:8080/welcome/login.jsp and after the correct login, the 
address is if the application is in restricted : 
http://localhost:8080/welcome/restricted/index.jsp. But in Tomcat 5.5, the 
address for the login is http://localhost:8080/welcome/restricted except that 
the login.jsp is not in restricted, it is in welcome. It makes problems for 
link in my login page. For the moment I just change the links by introducing 
request.getContextPath() in front of them, but i found how configure Tomcat 5.5 
as Tomcat 4 to resolve this problem.

Christophe
 


-Message d'origine-
De : Kees de Kooter [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 4 décembre 2008 21:33
À : Tomcat Users List
Objet : Re: Login config

 I installed a tomcat 5.5.27 with an application and I configure the 
 web.xml of the application by introducing a security constraint and a 
 login config with a form. My login page is not in the security 
 directory. So when I launch Tomcat and I access to my application  
 with restriction, the login page is displaying but the URL address is 
 not my login page, it is the security directory.


As far as I know this is the standard behaviour. After a succesful login the 
secured page is displayed.

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


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



RE: Login config

2008-12-04 Thread FARNIER Christophe
Yes it's a problem for the links in my login page. I explain this in my 
previous mail. Thanks for your explanation
 
Christophe

-Message d'origine-
De : Christopher Schultz [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 4 décembre 2008 23:17
À : Tomcat Users List
Objet : Re: Login config

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christophe,

FARNIER Christophe wrote:
 I installed a tomcat 5.5.27 with an application and I configure the 
 web.xml of the application by introducing a security constraint and a 
 login config with a form. My login page is not in the security 
 directory. So when I launch Tomcat and I access to my application  
 with restriction, the login page is displaying but the URL address is 
 not my login page, it is the security directory.
  
 What can I do for displaying the correct URL? The problem does not 
 appear with the Tomcat 4.

Technically, this is not a problem. The behavior of Tomcat changed between 
version 4 and 5: TC4 sent a redirect to the client to re-request the login 
page, while TC5 does an internal forward to the login page.

You can manually send a redirect from your login page if the URL doesn't look 
right to you. Is it a problem for you to display the wrong URL in this case?

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

iEYEARECAAYFAkk4VucACgkQ9CaO5/Lv0PAM/ACgppquSYlqMhIAWxegNLtB8QvX
lXYAoKsdSL7DshhvFm1ntBxhzmAzZiAJ
=DTmD
-END PGP SIGNATURE-

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


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