Fwd: frequent Class unloading/classnotfound problem

2011-04-11 Thread S Arvind
Chris,
   Attached the screenshot of the stacktrace for additional details.

Arvind S

Many of lifes failure are people who did not realize how close they were to
success when they gave up.
-Thomas Edison


-- Forwarded message --
From: S Arvind arvindw...@gmail.com
Date: Sun, Apr 10, 2011 at 12:12 PM
Subject: Re: frequent Class unloading/classnotfound problem
To: Tomcat Users List users@tomcat.apache.org



Chris,
 So when the request comes it is sending 404 status or
class-not-found exception.
--Can you give some specifics?
Assume we have a class called Sample.class, so when trying to create the
object it is giving classnotfound exception. Then i have to again  compile
the java in the runtime itself then only it works, thou the class file are
present in the classes folder packages. seems like these classes becoming
invisible to tomcat by some means.



 So what we do is reload the context/application from the tomcat manager
and  then it will work fine.
--Do those same requests then respond the way you expect?
No until i reload the context/app in tomcat manager or compile the
corresponding java file. (isreloadable=true) . Which is the main problem in
the production time.

--What version of Tomcat are you running? Does this happen only
under certain circumstances (high load? no load? when re-deploying a
JSP, etc.) or does it happen all the time? Please post a full stack trace
of any exception you have  encountered.
tomcat 6.0.20  . Cant surely tell that its happening in high load, as we
found that independent to load of the system. There are weeks this didnt
happen and also in some week it will happen for 5days and in few days lot
too.. so we cant able to find the meaning behind its randomness. And
unfortunately i missed the stack trace which ws generated, if it occurred in
this week i will mail it instantly. And till now it didnt happen in the JSP
file, it only happened in servlet or plain java class.



Arvind S

Many of lifes failure are people who did not realize how close they were to
success when they gave up.
-Thomas Edison


On Fri, Apr 8, 2011 at 12:41 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Arvind,

 On 4/7/2011 9:32 AM, S Arvind wrote:
  Recently in our web application deployed in tomcat, some weird problem is
  raising very frequently.
  Some of the servlet http://www.coderanch.com/forums/f-7/Servlets or
 class
  in that web app http://en.wikipedia.org/wiki/Web_app are getting
 unloaded.

 Most folks on the list have heard of servlets and web apps, but thanks
 for the references.

  So when the request comes it is sending 404 status or class-not-found
  exception.

 Can you give some specifics?

  So what we do is reload the context/application from the tomcat manager
 and
  then it will work fine.

 Do those same requests then respond the way you expect?

  Searched lot but cant able to find solution to this unloading or
  classnotfound problem.
  Can anyone suggest me why this is happening.

 What version of Tomcat are you running? Does this happen only under
 certain circumstances (high load? no load? when re-deploying a JSP,
 etc.) or does it happen all the time? Please post a full stack trace of
 any exception you have encountered.

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

 iEYEARECAAYFAk2eDE0ACgkQ9CaO5/Lv0PCXtgCfdbe3a0zEkpVch2FDDKoD6P0a
 zQ8AoL9OGteRqgDWY/sWbYz1I1IrSEKh
 =oev/
 -END PGP SIGNATURE-

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



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

Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-11 Thread Jaroslav Fikker

Hello everybody.

I need help with installation of Apache Portable Runtime (APR) based Native 
library for Tomcat. I use Tomcat 6.0.32.0 on Red Hat Enterprise Linux Server 
release 5.6 (Tikanga). There is output from version.sh:

Using CATALINA_BASE:   /opt/tomcat_6_0/servers/ITCAMREP_TT01S01_CL01
Using CATALINA_HOME:   /opt/tomcat_6_0
Using CATALINA_TMPDIR: /opt/tomcat_6_0/servers/ITCAMREP_TT01S01_CL01/temp
Using JRE_HOME:/usr/lib/jvm/java-1.6.0-ibm
Using CLASSPATH:   /opt/tomcat_6_0/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.32
Server built:   February 2 2011 2003
Server number:  6.0.32.0
OS Name:Linux
OS Version: 2.6.18-238.5.1.el5
Architecture:   x86
JVM Version:pxi3260sr9fp1-20110208_03 (SR9 FP1)
JVM Vendor: IBM Corporation

I installed APR library with these commands:
./configure --with-apr=/usr --prefix=/opt/tomcat_6_0
make
make install

I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
export LD_LIBRARY_PATH

But when I start server with startup.sh script I can find next warning in 
catalina.out file (but Tomcat application server runs and works):
Apr 11, 2011 8:44:15 AM 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: 
/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
6::/opt/tomcat_6_0/lib:/usr/lib

Where could be a problem? Thank you very much for your help.

Best regards,
J. Fikker.

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



Re: Tomcat-oracle secure connection

2011-04-11 Thread ramram8

What if the webserver and the database are on the same server?



Alex Kiernan wrote:
 
 What OS each end?
 
 On 4/8/11, ramram8 ramram...@gmail.com wrote:

 Thank you Alex for the quick reply. can you provide me with some examples
 or
 documentation concerning the subject?


 Alex Kiernan wrote:

 Transport mode IPsec? Easy if you've done it before, a complete
 ballache the first time.

 On 4/7/11, ramram8 ramram...@gmail.com wrote:

 Hello,

 Does anybody have any idea how to secure a tomcat connection to oracle
 database (jdbc encryption for example) or any other idea that can be
 easily
 implemented.

 Thanks in advance,
 Ram Ram
 --
 View this message in context:
 http://old.nabble.com/Tomcat-oracle-secure-connection-tp31343690p31343690.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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



 --
 Sent from my mobile device

 Alex Kiernan

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




 --
 View this message in context:
 http://old.nabble.com/Tomcat-oracle-secure-connection-tp31343690p31349034.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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


 
 -- 
 Sent from my mobile device
 
 Alex Kiernan
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-oracle-secure-connection-tp31343690p31367727.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-11 Thread Konstantin Kolinko
2011/4/11 Jaroslav Fikker fik...@atlas.cz:

 I installed APR library with these commands:
 ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0
 make
 make install

 I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
 export LD_LIBRARY_PATH

 But when I start server with startup.sh script I can find next warning in 
 catalina.out file (but Tomcat application server runs and works):
 Apr 11, 2011 8:44:15 AM 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: /usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
 6::/opt/tomcat_6_0/lib:/usr/lib

 Where could be a problem? Thank you very much for your help.

What is the output of ls /opt/tomcat_6_0/lib ?

Best regards,
Konstantin Kolinko

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



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-11 Thread Jaroslav Fikker

Hello Konstantin,

There is output of ls command:

ls -la /opt/tomcat_6_0/lib/
total 9484
drwxr-x---  3 wasadmin wasadmin4096 Apr 11 07:30 .
drwxr-x--- 11 wasadmin wasadmin4096 Apr 11 07:30 ..
-rwxr-x---  1 wasadmin wasadmin5881 Sep 11  2009 AMTomcatValve.jar
-rwxr-x---  1 wasadmin wasadmin   15239 Feb  2 20:04 annotations-api.jar
-rwxr-x---  1 wasadmin wasadmin   53756 Feb  2 20:04 catalina-ant.jar
-rwxr-x---  1 wasadmin wasadmin  129895 Feb  2 20:04 catalina-ha.jar
-rwxr-x---  1 wasadmin wasadmin 1216210 Feb  2 20:04 catalina.jar
-rwxr-x---  1 wasadmin wasadmin  237317 Feb  2 20:04 catalina-tribes.jar
-rwxr-x---  1 wasadmin wasadmin 1563059 Feb  2 20:04 ecj-3.3.1.jar
-rwxr-x---  1 wasadmin wasadmin   33410 Feb  2 20:04 el-api.jar
-rwxr-x---  1 wasadmin wasadmin  112550 Feb  2 20:04 jasper-el.jar
-rwxr-x---  1 wasadmin wasadmin  526946 Feb  2 20:04 jasper.jar
-rwxr-x---  1 wasadmin wasadmin   76692 Feb  2 20:04 jsp-api.jar
-rwxr-xr--  1 wasadmin wasadmin 156 Apr 11 07:30 libtcnative-1.a
-rwxr-xr-x  1 wasadmin wasadmin 893 Apr 11 07:30 libtcnative-1.la
lrwxrwxrwx  1 wasadmin wasadmin  23 Apr 11 07:30 libtcnative-1.so - 
libtcnative-1.so.0.1.20
lrwxrwxrwx  1 wasadmin wasadmin  23 Apr 11 07:30 libtcnative-1.so.0 - 
libtcnative-1.so.0.1.20
-rwxr-xr-x  1 wasadmin wasadmin  874046 Apr 11 07:30 libtcnative-1.so.0.1.20
-rwxr-x---  1 wasadmin wasadmin 1890499 Sep 11  2009 ojdbc5.jar
drwxr-xr-x  2 wasadmin wasadmin4096 Apr 11 07:30 pkgconfig
-rwxr-x---  1 wasadmin wasadmin   88210 Feb  2 20:04 servlet-api.jar
-rwxr-x---  1 wasadmin wasadmin  764743 Feb  2 20:04 tomcat-coyote.jar
-rwxr-x---  1 wasadmin wasadmin  253526 Feb  2 20:04 tomcat-dbcp.jar
-rwxr-x---  1 wasadmin wasadmin   70034 Feb  2 20:04 tomcat-i18n-es.jar
-rwxr-x---  1 wasadmin wasadmin   51971 Feb  2 20:04 tomcat-i18n-fr.jar
-rwxr-x---  1 wasadmin wasadmin   55036 Feb  2 20:04 tomcat-i18n-ja.jar

J. Fikker
__
 Od: Konstantin Kolinko knst.koli...@gmail.com
 Komu: Tomcat Users List users@tomcat.apache.org
 Datum: 11.04.2011 09:09
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
 for Tomcat

2011/4/11 Jaroslav Fikker fik...@atlas.cz:

 I installed APR library with these commands:
 ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0
 make
 make install

 I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
 export LD_LIBRARY_PATH

 But when I start server with startup.sh script I can find next warning in 
 catalina.out file (but Tomcat application server runs and works):
 Apr 11, 2011 8:44:15 AM 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: /usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
 6::/opt/tomcat_6_0/lib:/usr/lib

 Where could be a problem? Thank you very much for your help.

What is the output of ls /opt/tomcat_6_0/lib ?

Best regards,
Konstantin Kolinko

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



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



Re: Windows Authentication: Issue 49318 vs 47679

2011-04-11 Thread Tim Whittington
On Mon, Mar 28, 2011 at 7:26 AM, Stefan Mayr ste...@mayr-stefan.de wrote:
 Hello everybody,

 as many others before we wanted to do single-sign-on for intranet web
 applications using integrated windows authentication (negotiate because IE
 sometimes tries NTLM instead of using plain kerberos - breaking all our
 kerberos-only experiments).

 We thought that IIS would be the best choice for integrated windows
 authentication and we could pass the user via AJP (using mod_jk) to our
 tomcat instances.

 Our setup:
 - Windows 2008 R2 using IIS 7.5 (64bit)
 - mod_jk 1.2.31
 - Oracle Java 1.6 U24
 - Tomcat 6.0.32

 At first glance using tomcatAuthentication=false worked as expected. We got
 the remote user and started deploying an application. End of happiness - the
 application complained about a missing user-agent. That header was not
 passed to tomcat when authentication was enabled on IIS.

 Some research revealed Bug 47679 - Not all headers get passed to Tomcat
 server from isapi_redirect.dll
 (https://issues.apache.org/bugzilla/show_bug.cgi?id=47679)

 Today I've found Bug 49318 - add a Negotiate (Kerberos/NTLM) authenticator /
 integrate Waffle (https://issues.apache.org/bugzilla/show_bug.cgi?id=49318).
 The last comment links a new Windows Authentication How-To from Mark Thomas.
 Looks like we have already tried almost all proposed solutions:

 - IIS + mod_jk:
  tried but stuck in Bug 47679. Also tried ARR to pass the user name
  as a request header from IIS to Tomcat without success
 - Apache mod_ntlm: used it and we replaced it by the much more stable
  mod_auth_ntlm_winbind. NTLMv1 is also disabled on Windows 7 (default)
 - Apache mod_auth_ntlm: in heavy use but stuck to Apache 2.0 and 32bit
  plattform - we couldn't get stability problems solved on Apache 2.2
  and 64bit Linux. No ongoing development.
 - Apache mod_auth_sspi: till now in internal use for a very small
  project (works just fine), not sure about the future. Although
  there seems to be some new activity on 1.0.5 beta
 - Waffle: found it on thursday and it is on my our todo-list for
  testing it next week

 Any chances to get Bug 47679 solved? How can we help (we are admins, no
 devs)?
 What solutions have you deployed? Recommendations?

I've committed a fix for Bug 47679, which I hope will resolve the
issues people have been having using the ISAPI redirector in an
extension only mode.

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



Re: Which data structure (whether FIFO queue or Input stream) is used by Tomcat server

2011-04-11 Thread Pid
On 4/10/11 5:54 PM, vinod hv wrote:
 Hello everyone..
 
 What i mean in the above question is that, when we send a HTTP request to
 the apache tomcat server in which data structure does it get stored for
 further action(like processing it and serving the request)
 
 I am designing a testing http://www.javaranch.com/unit-testing.jsp tool to
 check the performance of a server . So am simulating huge number of HTTP
 requests by creating threads and sending HTTP requests.So WHERE DOES
 APACHE TOMCAT server store these request for processing.

THAT'S AN INTERESTING QUESTION, BUT I DON'T KNOW WHY YOU'RE SHOUTING.

 *Some one said there will be FIFO queue to store the requests*

That 'someone' eh?  They're always saying stuff like that.

Read the docs:

 http://tomcat.apache.org/tomcat-6.0-doc/

e.g.

 
http://tomcat.apache.org/tomcat-6.0-doc/architecture/requestProcess/requestProcess.pdf

Pay attention to the Connector component.

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

 http://tomcat.apache.org/tomcat-6.0-doc/aio.html


 But i am not sure about it.
 
 I want to change this implementation according to one IEEE paper. 

Change the implementation that you don't know is implemented?


I have
 downloaded the source code of apache tomcat server and want to know where in
 the source code i  can change this implementation (in which file???)  . ..
 .. I want to implement RED(Random Early Detection)queue instead of FIFO
 queue ... And check the performance of the apache web server.

You can find that webserver here:

 http://httpd.apache.org/


p

 
 
 PLese please help me
 
 
 Regards
 
 Vinod Kumar H V
 




signature.asc
Description: OpenPGP digital signature


Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)

 

We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, and all we get from it is:

 

Service 'tomcat7' is missing the ImageFile

 

None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 

Any ideas are appreciated.

 

Joe

 

 



v7.0.12 changelog question

2011-04-11 Thread Stefan Thurnherr

Hi

From the Tomcat v7.0.12 changelog [1] :
  Don't unpack WAR files if they are not located in the Host's 
appBase. (markt) 

Why? Couldnt find any issue or other trace relating to this fix...

Background: This fix broke our deployment of Sonatype's Nexus (OSS 
version) when upgrading to Tomcat v7.0.12: Nexus can only be run in 
unpacked mode, and the webapp was located outside appBase in our setup.


Gruäss,
 stefan.

[1] http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

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



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)



From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 


How do you start it ?

and all we get from it is:


Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services applet 
show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation directory, and enter 
bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 






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



RE: Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
the Apache site, and installed as we normally do, from the EXE, and, as you 
presume, as a service.

We normally start it via the Tomcat monitor, but of course that isn't working.  
So, from the command line in the bin directory, we are running, simply, 
tomcat7.exe and it is from that we see the message.  Now that I take a 
closer look at the bin dir... there isn't a startup.bat. 


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 7:40 AM
To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:
 We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
 ram, 322GB free disk space)
 

 From where did you download / install it ?
How did you install it ?

  
 
 We copied the msvcr71.dll into the bin directory, and have Java
 1.6.0_23-b05 64 bit.
 
  
 
 Tomcat doesn't start, 

How do you start it ?

and all we get from it is:
 
 Service 'tomcat7' is missing the ImageFile
 
Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services 
applet 
show for this service ? (as an executable file)

If you open a command window and navigate to Tomcat's installation directory, 
and enter 
bin/starstup.bat, what do you see ?


  
 
 None of the normal Tomcat logs are written even with debug set on, so
 it's clear the basics of Tomcat can't seem to get going...
 
  
 
 Any ideas are appreciated.
 
  
 
 Joe
 
  
 
  
 
 


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


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



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Joseph Morgan wrote:

We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
the Apache site, and installed as we normally do, from the EXE, and, as you 
presume, as a service.

We normally start it via the Tomcat monitor, but of course that isn't working.  So, from the command line in the bin directory, we are running, simply, tomcat7.exe and it is from that we see the message.  Now that I take a closer look at the bin dir... there isn't a startup.bat. 



Right. Then, in short : run tomcat7w.exe, which should be there. That's a GUI which 
allows to edit parameters stored in the Registry, for the Tomcat JVM wrapper which is 
tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and that's probably what 
is wrong. Rectify it and retry tomcat7.exe.


I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 7:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)



 From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 


How do you start it ?

and all we get from it is:

Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services applet 
show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation directory, and enter 
bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 






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


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





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



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Long explanation:

1) the Windows installer, for some unfathomable reason, does not contain all the files. 
The 64-bit zip file does.


2) a standard java JVM does not have the plumbing to run well as a Windows Service (for 
example, it does not react to Windows Service Events).  That's why some smart people 
created a service wrapper which does have such plumbing, and this wrapper in turn will 
run the JVM which runs tomcat.  This wrapper is what you get as tomcat7.exe.


3) this wrapper takes its parameters from the Windows registry (for example, which JVM to 
run).  Another Windows program, distributed as tomcat7w.exe, is the GUI editor which 
allows to view/modify these parameters.


Normally, all this should be set up properly by the tomcat exe installer.  But it looks 
like in your case, something did not happen correctly.
Under Windows 7, it may be because you did not get rid of UAC, or did not run the 
installer as an administrator, or who knows what else.




André Warnier wrote:

Joseph Morgan wrote:
We downloaded and installed apache-tomcat-7.0.8.exe install for 
Windows from the Apache site, and installed as we normally do, from 
the EXE, and, as you presume, as a service.


We normally start it via the Tomcat monitor, but of course that isn't 
working.  So, from the command line in the bin directory, we are 
running, simply, tomcat7.exe and it is from that we see the 
message.  Now that I take a closer look at the bin dir... there isn't 
a startup.bat.


Right. Then, in short : run tomcat7w.exe, which should be there. 
That's a GUI which allows to edit parameters stored in the Registry, for 
the Tomcat JVM wrapper which is tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and 
that's probably what is wrong. Rectify it and retry tomcat7.exe.


I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, April 11, 
2011 7:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)



 From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 


How do you start it ?

and all we get from it is:

Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows 
Services applet show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation 
directory, and enter bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 






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


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





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





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



RE: Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
Yep.. the entirety of the Java parameters was blank 

If I run from the command line:


Tomcat7

I get Service 'tomcat7' is missing the ImageFile

If I run:

Tomcat7 //RS/Tomcat7

I get two lines of output, but still no Tomcat. They both start with the date, 
then:

Commons daemon procrun stdout initialized
Commons daemon procrun stderr initialized

And... I don't see logs anywhere...



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 8:40 AM
To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:
 We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
 the Apache site, and installed as we normally do, from the EXE, and, as you 
 presume, as a service.
 
 We normally start it via the Tomcat monitor, but of course that isn't 
 working.  So, from the command line in the bin directory, we are running, 
 simply, tomcat7.exe and it is from that we see the message.  Now that I 
 take a closer look at the bin dir... there isn't a startup.bat. 
 

Right. Then, in short : run tomcat7w.exe, which should be there. That's a GUI 
which 
allows to edit parameters stored in the Registry, for the Tomcat JVM wrapper 
which is 
tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and that's 
probably what 
is wrong. Rectify it and retry tomcat7.exe.

I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.

 
 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Monday, April 11, 2011 7:40 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 7 Startup Problems
 
 Joseph Morgan wrote:
 We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
 ram, 322GB free disk space)

 
  From where did you download / install it ?
 How did you install it ?
 
  

 We copied the msvcr71.dll into the bin directory, and have Java
 1.6.0_23-b05 64 bit.

  

 Tomcat doesn't start, 
 
 How do you start it ?
 
 and all we get from it is:
 Service 'tomcat7' is missing the ImageFile

 Where do you get that message ?
 
 Presuming it is installed as a Windows Service, what does the Windows 
 Services applet 
 show for this service ? (as an executable file)
 
 If you open a command window and navigate to Tomcat's installation directory, 
 and enter 
 bin/starstup.bat, what do you see ?
 
 
  

 None of the normal Tomcat logs are written even with debug set on, so
 it's clear the basics of Tomcat can't seem to get going...

  

 Any ideas are appreciated.

  

 Joe

  

  


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


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


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



Re: [ win xp and win server 2003 ] tomcat utf8 encoding

2011-04-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom,

On 4/9/2011 12:53 PM, Tomislav Brkljačić wrote:
 I gave the add the filter and bunch of Spring jars method a try and it
 turned out to be a success! 

You don't need a bunch of Spring jars... just use the one that comes
with Tomcat and be done with it: there's no reason to add unnecessary
libraries to your webapp.

 Fantastic!
 
 Filter code :
 filter
 filter-namecharacterEncodingFilter/filter-name
 filter-classorg.springframework.web.filter.CharacterEncodingFilter/filter-class
 init-param
 param-nameforceEncoding/param-name
 param-valuetrue/param-value

I don't think you want this: you only want to set the encoding when the
client has provided none. If the client provides an encoding and you
override it, you are probably making a bit mistake.

 Andre  Cris, a beer in your name tonight.

You should send me a Belgian beer and Andre an American one. :)

(PS there actually are decent American beers)

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

iEYEARECAAYFAk2jFTsACgkQ9CaO5/Lv0PC6egCeIBhQOJecHh1nNt5pwTRgVJ7b
GRoAoIbgwbo4w+4/JCxYGz2Dl7fam888
=ojE2
-END PGP SIGNATURE-

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



Re: Fwd: frequent Class unloading/classnotfound problem

2011-04-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Arvind,

On 4/11/2011 2:04 AM, S Arvind wrote:
 Attached the screenshot of the stacktrace for additional details.

This list strips most attachments, including screenshots. How about
copy/paste the text?

To my knowledge, Tomcat will not unload any classes other than possibly
JSPs. If you are talking about a standard POJO, then Tomcat should not
be interfering with them at all.

Are you using RMI or some other process that involves object
serialization? If you have mismatched object class versions, you can
have weird things like this happen.

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

iEYEARECAAYFAk2jFjQACgkQ9CaO5/Lv0PBQswCcCjygCcMGHa2icXbMuW/gPMrH
W5IAnjaevcBw4w1dWJqJfch5kOcIJW6Y
=3Ndh
-END PGP SIGNATURE-

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



Re: Tomcat 7 Startup Problems

2011-04-11 Thread Konstantin Kolinko
2011/4/11 Joseph Morgan joseph.mor...@ignitesales.com:
 Yep.. the entirety of the Java parameters was blank


I understand that as the service was not actually installed, i.e.
nothing was written into the registry.

You would better to uninstall it and then reinstall (and now be sure
to run the installer with run as administrator).

Though if you want to install it manually, there is service.bat in
the zip package.

BTW, the exe installer prints the commands that were used to install
the service into one of log files. Those can also be used to reinstall
it.

 apache-tomcat-7.0.8.exe

Why not 7.0.12? :/

 We copied the msvcr71.dll into the bin directory,

The above should not be needed. The service wrapper now has a
workaround for the original problem.


Best regards,
Konstantin Kolinko

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



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Joseph Morgan wrote:
Yep.. the entirety of the Java parameters was blank 


If I run from the command line:


Tomcat7

I get Service 'tomcat7' is missing the ImageFile

If I run:

Tomcat7 //RS/Tomcat7

I get two lines of output, but still no Tomcat. They both start with the date, 
then:

Commons daemon procrun stdout initialized
Commons daemon procrun stderr initialized

And... I don't see logs anywhere...


The location of these logs, as I recall, is also in a tab in tomcat7w.exe.

As a quick-and-dirty fix, you could download the zip, expand it into your tomcat 
directories (should be ok, will just add new files), and then run the service.bat script 
from the command-line to install your service properly. (You may have to de-install the 
service first, I don't remember).


To do it cleanly, it may be better to de-install tomcat, and re-install it, making sure 
that you do not have permission problems.  The Windows 7 UAC is a p.i.t.a.







-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 8:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
the Apache site, and installed as we normally do, from the EXE, and, as you 
presume, as a service.

We normally start it via the Tomcat monitor, but of course that isn't working.  So, from the command line in the bin directory, we are running, simply, tomcat7.exe and it is from that we see the message.  Now that I take a closer look at the bin dir... there isn't a startup.bat. 



Right. Then, in short : run tomcat7w.exe, which should be there. That's a GUI which 
allows to edit parameters stored in the Registry, for the Tomcat JVM wrapper which is 
tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and that's probably what 
is wrong. Rectify it and retry tomcat7.exe.


I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 7:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)


 From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 

How do you start it ?

and all we get from it is:

Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services applet 
show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation directory, and enter 
bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 





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


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





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


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





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



RE: Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
 You would better to uninstall it and then reinstall (and now be sure
 to run the installer with run as administrator).

After Andre's suggestion that we may not have properly installed as
administrator, this is exactly what we just did... and I did notice the
new version and downloaded 7.0.12.. and evidently we did not Run as
Administrator when we installed things are working just fine
now 



-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Monday, April 11, 2011 9:59 AM
To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

2011/4/11 Joseph Morgan joseph.mor...@ignitesales.com:
 Yep.. the entirety of the Java parameters was blank


I understand that as the service was not actually installed, i.e.
nothing was written into the registry.

You would better to uninstall it and then reinstall (and now be sure
to run the installer with run as administrator).

Though if you want to install it manually, there is service.bat in
the zip package.

BTW, the exe installer prints the commands that were used to install
the service into one of log files. Those can also be used to reinstall
it.

 apache-tomcat-7.0.8.exe

Why not 7.0.12? :/

 We copied the msvcr71.dll into the bin directory,

The above should not be needed. The service wrapper now has a
workaround for the original problem.


Best regards,
Konstantin Kolinko

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


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



[Cluster] context question

2011-04-11 Thread János Löbb
Hi,

/Tomcat 7.0.10, OSX 10.6.5, jk 1.2.31, and httpd 2.2.17/

 Without any explicit parameters in server.xml, just by setting the jvmRoute 
attribute in the Engine element and enabling Clustering, session failover 
worked if I shut down one or the other tomcat instance or the one httpd that 
was not the reverse proxy.  

However when I just stopped the example webapp in one tomcat, the session did 
not failover and I received a 404 http error instead of the expected session 
page from the other tomcat.

Based upon the instructions found in the book:  
http://proquest.safaribooksonline.com/9780596101060/tomcat_6_clustering_implementation?sessionid=reader=htmlimagepage=

explicitely:

nyissz
You'll also need to add distributed=true to the webapp's Context element. 
If there is no Context element declared for it anywhere, you will need to 
create one. You can create one by making a 
newCATALINA_HOME/conf/[EngineName]/[HostName]/examples.xml context XML fragment 
file or by adding one to server.xml.
nyassz

my thought was that the ReplicatedContect was not initiated.  Well, I already 
learned that I should not add any context into server.xml and there is nothing 
in the

bml0066:local administrator$ ls -l tomcat1/conf/Catalina/localhost/
bml0066:local administrator$ 

directory,  so I created a META-INF directory inside the examples directory and 
placed a context.xml there with the following content:

bml0066:local administrator$ cat tomcat1/webapps/examples/META-INF/context.xml 
?xml version=1.0 encoding=UTF-8?
Context className=org.apache.catalina.ha.context.ReplicatedContext 
distributed=true 
/Context

I did it on both tomcats and bounced them.  Now when I look the log, I see the 
following warning just after restart:

INFO: Deploying web application directory examples
Apr 11, 2011 12:00:28 PM org.apache.catalina.startup.SetContextPropertiesRule 
begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'distributed' to 
'true' did not find a matching property.
Apr 11, 2011 12:00:28 PM org.apache.catalina.tribes.tipis.AbstractReplicatedMap 
init
INFO: Initializing AbstractReplicatedMap with context name:/examples
Apr 11, 2011 12:00:28 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 11, 2011 12:00:28 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()


So the first question is, should I use the distributed=true property here ?  
Is the book right ?  I think it is from 2007.  I already have the 
distributable/ tag in the webapp's web.xml.

The second question is what to do to avoid the 404 message and fail the session 
over instead of it, when I just stop the webapp on the tomcat instance?  By 
default I am using sticky sessions.

nyissz
bml0066:local administrator$ cat apache2/conf/workers.properties 
worker.list = lb,jkstatus

worker.lb.type=lb
worker.lb.balance_workers=tomcat1,tomcat3
#,tomcat2,tomcat4
worker.lb.sticky_session = True
worker.lb.sticky_session_force = False

worker.jkstatus.type=status

worker.tomcat1.type = ajp13
worker.tomcat1.host = bml0066.yalepath.org
worker.tomcat1.port = 8109
worker.tomcat1.lbfactor = 1
worker.tomcat1.redirect=tomcat3

#worker.tomcat2.type = ajp13
#worker.tomcat2.host = bml0066.yalepath.org
#worker.tomcat2.port = 8209
#worker.tomcat2.lbfactor = 1
#worker.tomcat2.redirect=tomcat4

worker.tomcat3.type = ajp13
worker.tomcat3.host = bml0065.yalepath.org
worker.tomcat3.port = 8309
worker.tomcat3.lbfactor = 1
worker.tomcat3.redirect=tomcat1

#worker.tomcat4.type = ajp13
#worker.tomcat4.host = bml0065.yalepath.org
#worker.tomcat4.port = 8409
#worker.tomcat4.lbfactor = 1
#worker.tomcat4.redirect=tomcat2

nyassz

Thanks ahead,

János





Re: [Cluster] context question

2011-04-11 Thread János Löbb

On Apr 11, 2011, at 12:45 PM, János Löbb wrote:

 Hi,
 
 /Tomcat 7.0.10, OSX 10.6.5, jk 1.2.31, and httpd 2.2.17/
 
 Without any explicit parameters in server.xml, just by setting the jvmRoute 
 attribute in the Engine element and enabling Clustering, session failover 
 worked if I shut down one or the other tomcat instance or the one httpd that 
 was not the reverse proxy.  
 
 However when I just stopped the example webapp in one tomcat, the session did 
 not failover and I received a 404 http error instead of the expected session 
 page from the other tomcat.
 
 Based upon the instructions found in the book:  
 http://proquest.safaribooksonline.com/9780596101060/tomcat_6_clustering_implementation?sessionid=reader=htmlimagepage=
 
 explicitely:
 
 nyissz
 You'll also need to add distributed=true to the webapp's Context element. 
 If there is no Context element declared for it anywhere, you will need to 
 create one. You can create one by making a 
 newCATALINA_HOME/conf/[EngineName]/[HostName]/examples.xml context XML 
 fragment file or by adding one to server.xml.
 nyassz
 
 my thought was that the ReplicatedContect was not initiated.  Well, I already 
 learned that I should not add any context into server.xml and there is 
 nothing in the
 
 bml0066:local administrator$ ls -l tomcat1/conf/Catalina/localhost/
 bml0066:local administrator$ 
 
 directory,  so I created a META-INF directory inside the examples directory 
 and placed a context.xml there with the following content:
 
 bml0066:local administrator$ cat 
 tomcat1/webapps/examples/META-INF/context.xml 
 ?xml version=1.0 encoding=UTF-8?
 Context className=org.apache.catalina.ha.context.ReplicatedContext 
 distributed=true 
 /Context
 
 I did it on both tomcats and bounced them.  Now when I look the log, I see 
 the following warning just after restart:
 
 INFO: Deploying web application directory examples
 Apr 11, 2011 12:00:28 PM org.apache.catalina.startup.SetContextPropertiesRule 
 begin
 WARNING: [SetContextPropertiesRule]{Context} Setting property 'distributed' 
 to 'true' did not find a matching property.
 Apr 11, 2011 12:00:28 PM 
 org.apache.catalina.tribes.tipis.AbstractReplicatedMap init
 INFO: Initializing AbstractReplicatedMap with context name:/examples
 Apr 11, 2011 12:00:28 PM org.apache.catalina.core.ApplicationContext log
 INFO: ContextListener: contextInitialized()
 Apr 11, 2011 12:00:28 PM org.apache.catalina.core.ApplicationContext log
 INFO: SessionListener: contextInitialized()
 
 
 So the first question is, should I use the distributed=true property here ? 
  Is the book right ?  I think it is from 2007.  I already have the 
 distributable/ tag in the webapp's web.xml.
 
 The second question is what to do to avoid the 404 message and fail the 
 session over instead of it, when I just stop the webapp on the tomcat 
 instance?  By default I am using sticky sessions.
 
 nyissz
 bml0066:local administrator$ cat apache2/conf/workers.properties 
 worker.list = lb,jkstatus
 
 worker.lb.type=lb
 worker.lb.balance_workers=tomcat1,tomcat3
 #,tomcat2,tomcat4
 worker.lb.sticky_session = True
 worker.lb.sticky_session_force = False
 
 worker.jkstatus.type=status
 
 worker.tomcat1.type = ajp13
 worker.tomcat1.host = bml0066.yalepath.org
 worker.tomcat1.port = 8109
 worker.tomcat1.lbfactor = 1
 worker.tomcat1.redirect=tomcat3
 
 #worker.tomcat2.type = ajp13
 #worker.tomcat2.host = bml0066.yalepath.org
 #worker.tomcat2.port = 8209
 #worker.tomcat2.lbfactor = 1
 #worker.tomcat2.redirect=tomcat4
 
 worker.tomcat3.type = ajp13
 worker.tomcat3.host = bml0065.yalepath.org
 worker.tomcat3.port = 8309
 worker.tomcat3.lbfactor = 1
 worker.tomcat3.redirect=tomcat1
 
 #worker.tomcat4.type = ajp13
 #worker.tomcat4.host = bml0065.yalepath.org
 #worker.tomcat4.port = 8409
 #worker.tomcat4.lbfactor = 1
 #worker.tomcat4.redirect=tomcat2
 
 nyassz
 
 Thanks ahead,
 
 János
 
 
 


Testing out he examples webapp I found this in the log of that tomcat where I 
shut down the webapp:

nyissz
INFO: Server startup in 6625 ms
Apr 11, 2011 12:43:59 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
sessionCreated('1CAEC5FA2D27A7410C819A8BBF9E7F77.tomcat1')
Apr 11, 2011 12:47:23 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
sessionCreated('69EB2E77CE0D912F8584E60B4CB828D7.tomcat3')
Apr 11, 2011 12:47:46 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
attributeAdded('69EB2E77CE0D912F8584E60B4CB828D7.tomcat3', 's1', 't3')
Apr 11, 2011 12:48:40 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 
'Catalina:type=Deployer,host=localhost'
Apr 11, 2011 12:48:40 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Apr 11, 2011 12:48:54 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Apr 11, 2011 12:49:01 PM 

Re: [Cluster] context question

2011-04-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

János,

On 4/11/2011 12:45 PM, János Löbb wrote:
 bml0066:local administrator$ ls -l tomcat1/conf/Catalina/localhost/
 bml0066:local administrator$ 
 
 directory,  so I created a META-INF directory inside the examples directory 
 and placed a context.xml there

You have confused things: META-INF/context.xml goes into your WAR file
(or exploded WAR webapp directory). If you want to use
tomcat1/conf/Catalina/localhost/, you'll want the file to be called
tomcat1/conf/Catalina/localhost/examples.xml

 with the following content:
 
 bml0066:local administrator$ cat 
 tomcat1/webapps/examples/META-INF/context.xml 
 ?xml version=1.0 encoding=UTF-8?
 Context className=org.apache.catalina.ha.context.ReplicatedContext 
 distributed=true 
 /Context

Specifying the className for the Context shouldn't be necessary.

There is no distributed attribute in the Context element.

You should be configuring distributed/ in web.xml, not in context.xml.

http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html

 So the first question is, should I use the distributed=true property here ? 
  Is the book right ?

That book was published before TC 7 was available, so some things may
have changed.

 I think it is from 2007.  I already have the distributable/ tag in the 
 webapp's web.xml.

That should be all you need, plus a Cluster configuration in
server.xml. Read the Cluster HOWTO document above.

 The second question is what to do to avoid the 404 message and fail the 
 session over instead of it, when I just stop the webapp on the tomcat 
 instance?  By default I am using sticky sessions.

distributable + clustering should result in session fail-over with our
without sticky sessions. One could argue that session session stickiness
is not necessary if you are fully replicating your sessions across the
cluster -- though you may have some transient state that needs to be
re-built on a fail-over target that might use more memory or resources
in which case stickiness is useful.

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

iEYEARECAAYFAk2jTdgACgkQ9CaO5/Lv0PAmUgCfVnrQRzku3/LzRoHNKYXYaUR1
DbYAnigFW9zo6QtGGlpC4KnIM5Nuz1Yq
=KkFg
-END PGP SIGNATURE-

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



Re: v7.0.12 changelog question

2011-04-11 Thread markt


tefan Thurnherr st.mailingli...@gmail.com wrote:

Hi

 From the Tomcat v7.0.12 changelog [1] :
   Don't unpack WAR files if they are not located in the Host's 
appBase. (markt) 
Why? Couldnt find any issue or other trace relating to this fix...

Because (as per the docs) WARs outside the appBase aren't meant to be unpacked. 
There is no bug number since I found the issue while testing something else and 
just fixed it.

Background: This fix broke our deployment of Sonatype's Nexus (OSS 
version) when upgrading to Tomcat v7.0.12: Nexus can only be run in 
unpacked mode, and the webapp was located outside appBase in our setup.

Then Nexus is badly broken. No app should require that.

As a workaround, manually unpack it or put the WAR in Tomcat's appBase and have 
Tomcat unpack it.

Mark





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



Re: Which data structure (whether FIFO queue or Input stream) is used by Tomcat server

2011-04-11 Thread Tim Whittington
Start at org.apache.tomcat.util.net.AbstractEndpoint.createExecutor()
and follow your nose from there.
If you make any progress and want to discuss implementation details,
then the dev list is the best place to discuss those.

cheers
tim

On Mon, Apr 11, 2011 at 11:34 PM, Pid p...@pidster.com wrote:
 On 4/10/11 5:54 PM, vinod hv wrote:
 Hello everyone..

 What i mean in the above question is that, when we send a HTTP request to
 the apache tomcat server in which data structure does it get stored for
 further action(like processing it and serving the request)

 I am designing a testing http://www.javaranch.com/unit-testing.jsp tool to
 check the performance of a server . So am simulating huge number of HTTP
 requests by creating threads and sending HTTP requests.So WHERE DOES
 APACHE TOMCAT server store these request for processing.

 THAT'S AN INTERESTING QUESTION, BUT I DON'T KNOW WHY YOU'RE SHOUTING.

 *Some one said there will be FIFO queue to store the requests*

 That 'someone' eh?  They're always saying stuff like that.

 Read the docs:

  http://tomcat.apache.org/tomcat-6.0-doc/

 e.g.

  http://tomcat.apache.org/tomcat-6.0-doc/architecture/requestProcess/requestProcess.pdf

 Pay attention to the Connector component.

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

  http://tomcat.apache.org/tomcat-6.0-doc/aio.html


 But i am not sure about it.

 I want to change this implementation according to one IEEE paper.

 Change the implementation that you don't know is implemented?


 I have
 downloaded the source code of apache tomcat server and want to know where in
 the source code i  can change this implementation (in which file???)  . ..
 .. I want to implement RED(Random Early Detection)queue instead of FIFO
 queue ... And check the performance of the apache web server.

 You can find that webserver here:

  http://httpd.apache.org/


 p



 PLese please help me


 Regards

 Vinod Kumar H V





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



Re: tomcat shows 404 error for existing pages

2011-04-11 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Bhagyashri,

On 04/11/2011 07:33 AM, Bhagyashri Pawar wrote:
 Currently I have purchase one domain name and virtual dedicated server(Linux
 - Red hat fedora). I am using java and tomcat 5.5 on that server.

Consider upgrading to 6.0.32 or 7.0.12, because these versions will be
support much longer by the committers! Don't use the versions shipped by
(any) Linux distributor, a tomcat installation is quite simple and you
won'nt end up with a messed directory structure.

 The problem I am facing is tomcat shows 404 error (description: The
 requested resource (/mytestpage.jsp) is not available.).
 
 Is there any settings I require to view css and all jsp and html pages,
 Because when I installed tomcat it shows prper installetion and display
 tomcat default page properly.

If you can see the the default ROOT application after installing your
basic setup is ok. Enable the access log (see the example AccessLogValve
configuration in the default server.xml). Are there any errors in the
logs? Filenames are case sensitive, double check the spelling.

 My directory structure is like
 Tomcat-5.5/webapps/ROOT/WEB-INF
 Tomcat-5.5/webapps/ROOT/extra/css
 Tomcat-5.5/webapps/ROOT/extra/images
 Tomcat-5.5/webapps/ROOT/extra/js
 
 
 
 My all JSP and html pages are inside ROOT directory
 
 My css, images, js are inside extra/css, extra/images and extra/js directory
 resp.

That looks fine. Post your server.xml and check wether appBase is
correctly set.

Regards,
- -- 
Thomas Freitag
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2jbBIACgkQGE5pHr3PKuVcnwCeIQAH1vu1sKvzS5cBPEdxaNhT
eRUAnisPIKI/xfpz1iFSvc4ghQVXIYoo
=RiP4
-END PGP SIGNATURE-

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



[Cluster] fail over is failing on application stop

2011-04-11 Thread János Löbb
Hi,

I started a new thread.  I have two machines bml0065 and bml0066.  Both have 
OSX 10.6.5, httpd 2.2.17, tomcat 7.0.10, jk 1.2.31.  The bml0065 machine acts 
as a reverse proxy.

Here is the server.xml from bml0066, without comments:

nyissz
?xml version='1.0' encoding='utf-8'?
Server port=8105 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener 
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener 
className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.core.ThreadLocalLeakPreventionListener /

  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  Service name=Catalina
  
Connector port=8180 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8143 /

Connector port=8143 protocol=org.apache.coyote.http11.Http11Protocol 
SSLEnabled=true
   maxThreads=150 scheme=https secure=true
keystoreFile=/Users/administrator/.keystore 
keystorePass=ITAccess
   clientAuth=false sslProtocol=TLS /


Connector port=8109 protocol=AJP/1.3 redirectPort=8143 /


Engine name=Catalina defaultHost=localhost jvmRoute=tomcat1
  
  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/
  

  Realm className=org.apache.catalina.realm.LockOutRealm
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase/
  /Realm

  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true

Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs  
   prefix=localhost_access_log. suffix=.txt
   pattern=%h %l %u %t quot;%rquot; %s %b resolveHosts=false/

  /Host
/Engine
  /Service
/Server

nyassz

Similar server.xml exists for the other machine bml0065 only the jvmRoute and 
the ports are different.

Here is a snippet showing the distributable tag in web.xml in the WEB-INF 
directory of the examples web app:

nyissz
!--Temporarily the distributable tag goes here --
!--It should be in the given webapp's web.xml  --
distributable/

/web-app

nyassz

I created an examples.xml in the $CATALINA_BASE/conf/Catalina/localhost 
directory on both machines and the content of that file is this:

nyissz
bml0066:local administrator$ cat tomcat1/conf/Catalina/localhost/examples.xml 
?xml version=1.0 encoding=UTF-8?
Context className=org.apache.catalina.ha.context.ReplicatedContext/

nyassz
Unfortunately if I have just Context 
org.apache.catalina.ha.context.ReplicatedContext/ there then I receive these 
type of messages:
Apr 11, 2011 4:13:39 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 18 column 59: Attribute name 
org.apache.catalina.ha.context.ReplicatedContext associated with an element 
type Context must be followed by the ' = ' character.

I did a little test.  I opened the URL 
http://bml0065.yalepath.org/tc/examples/servlets/servlet/SessionExample on my 
machine /bml0041/.  The reverse proxy sent the request to itself, then jk sent 
it to the tomcat3 instance on the same machine.  I can see in the log of 
bml0065:

nyissz
INFO: Server startup in 6161 ms
Apr 11, 2011 4:40:47 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
sessionCreated('CA87BED01E4A1D0FF87AED173F66E35C.tomcat3')
Apr 11, 2011 4:41:04 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
attributeAdded('CA87BED01E4A1D0FF87AED173F66E35C.tomcat3', 's1', 't3')
Apr 11, 2011 4:41:37 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 
'Catalina:type=Deployer,host=localhost'
Apr 11, 2011 4:41:37 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Apr 11, 2011 4:41:37 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
nyass

Looking at the tomcat log on the other machine - bml0066 - I can see that the 
session is replicated:

nyissz
Apr 11, 2011 4:40:47 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
sessionCreated('CA87BED01E4A1D0FF87AED173F66E35C.tomcat3')
Apr 11, 2011 4:41:04 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
attributeAdded('CA87BED01E4A1D0FF87AED173F66E35C.tomcat3', 's1', 't3')
nyassz

Then I stop the examples application on the bml0065 machine running the tomcat3 
instance.

Then I try to 

OT: Versioning in Javascript Files

2011-04-11 Thread George Sexton
I'm looking for ideas on how other people are doing versioning in Javascript
files. I'm hitting issues if I change my files in an incompatible way, or I
upgrade files.

For example, if I upgrade from DOJO 1.5 to DOJO 1.6, the user's browsers are
not always refreshing the DOJO files, and things don't work.

Similarly, if I update a javascript function to take additional arguments,
then the browser using the old version throws an error.

I've spent a lot of time in the past few days telling users to click on the
refresh button of their browser and I'm pretty sick of it.

I've thought of versioning my whole scripts directory. IOW, if my app
version is 3.4.9, make the scripts directory scripts-3.4.9 to force the
browser to get files from the new location. This is kind of a pain for
version control reasons but otherwise it's OK.

I'm really looking for ideas on how other web developers are handling this
problem.

--
George Sexton
MH Software, Inc.
303 438-9585
www.mhsoftware.com




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



Comet Problem

2011-04-11 Thread Agustin Iannicelli
Hello, i have a problem to implement a Comet Server, i use tomcat 7
and i  try to keep many connections open and for each client connected
return a string each time than other client press go() but the
return from the server only happend when the time out expired, and
execute the  event.close(); and close my connection

how can i send data to the clients without close the connection or
call event.close() ???

i hope you undertend me

thanks

Agustin

pd: my source code...

 **SERVER

@WebServlet(urlPatterns = {/Prueba})
public class Prueba extends HttpServlet implements CometProcessor {

       private static final long serialVersionUID = 1L;
       private static final Integer TIMEOUT = 20 * 1000;
       private ListHttpServletResponse responseList = new
ArrayListHttpServletResponse();
   /**
    * @see HttpServlet#HttpServlet()
    */
   public Prueba() {
       super();
   }

   public synchronized void event(final CometEvent event) throws
IOException, ServletException
   {
       HttpServletRequest request = event.getHttpServletRequest();
       HttpServletResponse response = event.getHttpServletResponse();
       event.setTimeout(TIMEOUT);

       if (event.getEventType() == CometEvent.EventType.BEGIN) {

               if(!responseList.contains(response))
               {
                       responseList.add(response);
                       log( se agrego la el req de session:  +
request.getSession(true).getId());
               }


           for (HttpServletResponse res : responseList)
           {
               ServletOutputStream out = res.getOutputStream();
               //PrintWriter out = res.getWriter();
               log(Begin for session:  + request.getSession(true).getId());
               out.print(psession:  +
request.getSession(true).getId() +   cant logueados:  +
responseList.size() +  /p);
               out.flush();
               log(Sended message for session:  + request.getSession(true);
          }

       } else if (event.getEventType() == CometEvent.EventType.ERROR) {
           log(Error for session:  + request.getSession(true).getId());
           event.close();
       } else if (event.getEventType() == CometEvent.EventType.END) {
           log(End for session:  + request.getSession(true).getId());
           event.close();
       } else if (event.getEventType() == CometEvent.EventType.READ) {
           throw new UnsupportedOperationException(This servlet does
not accept data);
       }

   }



**CLIENT

javascript
var url = Prueba?msg=hola;
       var request =  new XMLHttpRequest();
       request.onreadystatechange = orsc;

       function go(){
               request.open(GET, url, true);

request.setRequestHeader(Content-Type,multipart/x-mixed-replace);
               request.send(null);
           }

       function orsc()
       {

               if (request.readyState == 4) {
                       document.getElementById(forecasts).innerHTML
+= ready 4;
                       if (request.status == 200){

document.getElementById(forecasts).innerHTML += ready 200;
                   if (request.responseText) {
                       document.getElementById(forecasts).innerHTML
+= request.responseText;
                   }
               }
           }
       }

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



Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-11 Thread Brian Braun
Hi,

I have a Linux instance, on top of which I'm running Tomcat 7.0.11. This
Tomcat installation is running two websites, using host virtualization.
These websites run both using port 80 and the SSL port.
For several reasons, I usually have to restart this Tomcat installation,
which takes 30 seconds in the best case scenario. So every time I do that,
all the apps are down while it happens.

I have a new project, for a web service that must be running all the time.
It should never be offline, and if it does, my clients will leave me, so I
can not run this app in the same Tomcat installation. I'm considering a
parallel Tomcat installation in the same Linux VPS, both running at the same
time. I perfectly know that it can be done, but how do I do with the port
conflict? How can both Tomcat installations run using the same port 80? Is
there a way to configure Linux so Tomcat A will serve some domains AND IP
addresses, and Tomcat B will server other domains AND IP addresses?

Thanks in advance!


RE: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-11 Thread Caldarale, Charles R
 From: Brian Braun [mailto:brianbr...@gmail.com] 
 Subject: Two Tomcat 7.0.11 installations in the same Linux instance, running 
 both on port 80, without conflicts?

 I'm considering a parallel Tomcat installation in the same 
 Linux VPS, both running at the same time. I perfectly know
 that it can be done, but how do I do with the port conflict?

Use different IP addresses for each Tomcat; specify the IP address chosen via 
the Connector address attribute.

 - Chuck


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


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



Re: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-11 Thread Brian Braun
Is it so easy? wow, I thought it was going to be more complex. Thanks!




On Mon, Apr 11, 2011 at 6:35 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Brian Braun [mailto:brianbr...@gmail.com]
  Subject: Two Tomcat 7.0.11 installations in the same Linux instance,
 running both on port 80, without conflicts?

  I'm considering a parallel Tomcat installation in the same
  Linux VPS, both running at the same time. I perfectly know
  that it can be done, but how do I do with the port conflict?

 Use different IP addresses for each Tomcat; specify the IP address chosen
 via the Connector address attribute.

  - Chuck


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


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




RE: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-11 Thread Caldarale, Charles R
 From: Brian Braun [mailto:brianbr...@gmail.com] 
 Subject: Re: Two Tomcat 7.0.11 installations in the same Linux instance, 
 running both on port 80, without conflicts?

 Is it so easy? wow, I thought it was going to be more complex. Thanks!

Forgot to mention that you can either install two copies of Tomcat (in separate 
directories, of course), or use the technique described in the RUNNING.txt file 
to run multiple Tomcats from one installation.

 - Chuck


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


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



RE: Tomcat Failed to start

2011-04-11 Thread JuniorDev



n828cl wrote:
 
 From: JuniorDev [mailto:gsajunior...@gmail.com] 
 Subject: Tomcat Failed to start
 
 I install Tomcat 7.0
 
 Tomcat 7.0.what?
 
 and JDK 1.6
 
 JDK 1.6.what?
 
 in windows
 
 Which of the many flavors of Windows?
 
 After installation successful
 
 Exactly how did you install Tomcat?  Which Tomcat download did you use?
 
 Be precise; always include the exact versions, including whether they're
 32- or 64-bit.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

Tomcat 7.0.2 - 32bit,  windows XP professional, jdk1.6.0_24

install by click on exe file.. and follow the step.. after that configure
CATALINA_HOME, CLASSPATH, PATH, JAVA_HOME in environment variables.
-- 
View this message in context: 
http://old.nabble.com/Tomcat-Failed-to-start-tp31341008p31375565.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Tomcat error com.inet.tds.at: [TDS Driver]java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind Windows 2008

2011-04-11 Thread Arunkumar Janarthanan
Hi All,

I have a scheduler application was running on win 2k fine, when we moved
this application to windows 2008 there is an issue appearing the windows
socket error. Apprently this seems the process / connection /
sockets created by JVM not closed.

Any idea if this appears to be know issue ? the version details below.

Tomcat: 5.5.9

Java: 1.5.01_13

Windows 2008 X64 bit platform.

Error details:

Sandeep Singh/Consultants/IN/ReadersDigest
04/11/2011 08:38 AM
To
Arun Kumar Janarthanan/Consultants/IN/ReadersDigest@ReadersDigest,
Leonard Labuschagne/US/ReadersDigest@ReadersDigest, Irving
Murray/Consultants/US/ReadersDigest@ReadersDigest, Kshitij
Shrivastava/Consultants/IN/ReadersDigest@ReadersDigest, Abbas Ali
Khan/Consultants/IN/ReadersDigest@ReadersDigest, Vineet
Gupta/Consultants/IN/ReadersDigest@ReadersDigest
cc
webops
Subject
Re: Need emergency restart on epipe server due to too many process
initiated epipe scheduler





Is there something in new windows server's registry which is causing this?

Thanks for the update, please blog it and coordinate with Kshitij so that we
make sure all services - crypt/decrypt, paymentech, mounted trust drive,
schedular are bounced.

Thanks.


- Original Message -
From: Arun Kumar Janarthanan
Sent: 04/11/2011 08:23 AM EDT
To: Leonard Labuschagne; Irving Murray; Sandeep Singh; Kshitij
Shrivastava; Abbas Khan; Vineet Gupta
Cc: webops
Subject: Need emergency restart on epipe server due to too many process
initiated epipe scheduler

We need to restart the epipe server to clear the socket error, we noticed
the epipe scheduler initated too many connections likely to be cause of this
issue.

*epipe scheduler:*

INFO   | jvm 1| 2011/04/10 21:02:01 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:01 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:06 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:06 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:06 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:06 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:06 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:10 | DBInit starts here..
INFO   | jvm 1| 2011/04/10 21:02:10 |
DatabaseFactory.getNewConnection(jdbc:inetdae7:205.230.46.190?, app,
app_root, xpassx, conn) : CLIENTS = 127 : Failed to get connection from
DriverManager : [TDS Driver]java.net.SocketException: Unrecognized Windows
Sockets error: 0: JVM_Bind : SQL State : 08S01 : Stack Trace :
com.inet.tds.at: [TDS Driver]java.net.SocketException: Unrecognized Windows
Sockets error: 0: JVM_BindCause :java.net.SocketException: Unrecognized
Windows Sockets error: 0: JVM_Bind
INFO   | jvm 1| 2011/04/10 21:02:10 | com.inet.tds.at: [TDS
Driver]java.net.SocketException: Unrecognized Windows Sockets error: 0:
JVM_Bind
INFO   | jvm 1| 2011/04/10 21:02:10 |  at com.inet.tds.aq.a(Unknown
Source)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.inet.tds.TdsDriver.connect(Unknown Source)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
java.sql.DriverManager.getConnection(DriverManager.java:525)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
java.sql.DriverManager.getConnection(DriverManager.java:171)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.DatabaseFactory.getNewConnection(DatabaseFactory.java:154)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.DatabaseFactory.getConnection(DatabaseFactory.java:98)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.Database.dbInit(Database.java:157)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.Database.dbInit(Database.java:111)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.ScheduleLogger.write(ScheduleLogger.java:70)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.PipelineStepProcessor.writeLog(PipelineStepProcessor.java:86)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.commerce.order.processor.SQLTransactionSender.run(SQLTransactionSender.java:125)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.ChannelPipeline.runSequence(ChannelPipeline.java:206)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.ChannelPipeline.runNextSequence(ChannelPipeline.java:251)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.PipelineStepProcessor.completed(PipelineStepProcessor.java:68)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.FileExtractBuilder.run(FileExtractBuilder.java:1184)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.ChannelPipeline.runSequence(ChannelPipeline.java:206)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at
com.readersdigest.util.ChannelPipeline.runNextSequence(ChannelPipeline.java:251)
INFO   | jvm 1| 2011/04/10 21:02:10 |  at