Re: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread André Warnier

javier_esp...@hna.honda.com wrote:

Sorry for my previous attempt.

I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
When I attempt to start it, I get the following message

Windows could not start the Tomcat7 on Local Computer. For more
information, review the System Event Log. 


and did you review it, and what does it say ?


If this is a non-Microsoft

service, contact the service vendor, and refer to service-specific error
code 4.

If I run the STARTUP.BAT batch file, it starts OK.



See Mark's previous answer.

In a nutshell :

When you run Tomcat via STARTUP.BAT in a command window, Tomcat starts up :
- under your own logged-in user-id
- using the parameters present in the various BAT files present in Tomcat/bin

When you run Tomcat as a Service, it starts up :
- under whatever user-id the Service is configured to run under
- using parameters in the Registry (it does not use the BAT files at all)
(The Registry parameters can be edited via the GUI editor tomcat7w.exe, also in 
Tomcat/bin)





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



Tomcat and Chunked Transfer-Encoding

2014-02-05 Thread Walter . Heestermans
Hi,

Is there something we can enable on the tomcat level to have more logging 
for this issue, to be able to see if the problem is related to application 
or the tomcat?

Regards
Walter




From:   walter.heesterm...@toyota-europe.com
To: Tomcat Users List users@tomcat.apache.org, 
Date:   03/02/2014 14:12
Subject:Re: Tomcat and Chunked Transfer-Encoding



We don't have the source code
Walter




From:   Mark Thomas ma...@apache.org
To: Tomcat Users List users@tomcat.apache.org, 
Date:   03/02/2014 13:50
Subject:Re: Tomcat and Chunked Transfer-Encoding



On 03/02/2014 12:46, walter.heesterm...@toyota-europe.com wrote:
 I can't reproduce it with simple web application, it happens in one of 
our 
 applications, SDL WorldServer application which we bought for 
 translations. Even there the issue is random.

Do the affected requests pass through any filters? Do you have the
source code for those filters?

Mark


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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this 
message, you should not use, copy, disclose or take any action based on 
this e-mail. 
If you have received this e-mail in error, please inform the sender 
promptly and delete this message and any attachments immediately.




This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, 
you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly 
and delete this message and any attachments immediately.

Re: Tomcat 7 / Java 7

2014-02-05 Thread Rainer Frey (Inxmail GmbH)
On 03.02.2014, at 22:19, Singh, Ragini rsi...@central.uh.edu wrote:

 Hello,
 
 I upgraded Java 1.6.45 to Java 1.7.51 using java-1.7.0-oracle.x86_64 : Oracle 
 Java Runtime Environment on RHEL 5. Used the alternatives command to make 
 the Java 7 as Java version.
 Now in my custom startup script if I define JAVA_HOME as 
 JAVA_HOME=/usr/lib/jvm/java tomcat 7 recognizes the java as 1.6 ( the 
 previous version) and gives this message
 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-sun-1.6.0.45
 .x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-sun-1.6.0.45.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-sun-1.6.0.45.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib
 64:/lib64:/lib:/usr/lib
 
 I modified the JAVA_HOME to JAVA_HOME=/usr/lib/jvm/jre-1.7.0-oracle.x86_64. 
 Now tomcat starts and gives the message as
 INFO: The APR based Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the 
 java.library.path: 
 /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
 
 I believe it is not recognizing the correct Java version which is 1.7. Am I 
 missing anything ?

AFAICT Java 7 has removed $JAVA_HOME/jre/lib/architecture[/vmtype] and 
$JAVA_HOME/lib/architecture from the default java.library.path - this is 
independent of Tomcat. So it is very likely that Tomcat *is* using the desired 
Java now. Others have already written how to verify for sure.

 Thank you,
 -Ragini

Rainer Frey

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



Re: Tomcat and Chunked Transfer-Encoding

2014-02-05 Thread Walter . Heestermans
Added 

apache.catalina.connector.RECYCLE_FACADES=true

Let's see what this gives.

Walter




From:   Konstantin Kolinko knst.koli...@gmail.com
To: Tomcat Users List users@tomcat.apache.org, 
Date:   03/02/2014 19:58
Subject:Re: Tomcat and Chunked Transfer-Encoding



2014-02-03 Mark Thomas ma...@apache.org:
 On 03/02/2014 12:46, walter.heesterm...@toyota-europe.com wrote:
 I can't reproduce it with simple web application, it happens in one of 
our
 applications, SDL WorldServer application which we bought for
 translations. Even there the issue is random.

1. When response mixups happen, the first thing I would recommend is
to set the following system property (you can add it to
catalina.properties file):

apache.catalina.connector.RECYCLE_FACADES=true

Documentation:
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Security

That will make your configuration more secure (at price of some
performance) and will raise the chances that meddling with
requests/response objects outside of their lifecycle would not go
unnoticed.

Then look for any odd messages in the log files. E.g. attempts to write to 
a
closed stream, or an IllegalStateException, etc

A known culprit is javax.imageio.ImageIO API
http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues

So far it looks like an application issue, as Mark mentioned.

2. The convention on this mailing list is to do not top-post.
http://tomcat.apache.org/lists.html#tomcat-users
- 6.

3. What connector implementation are you using?

HTTP/AJP?
BIO/NIO/APR?

I guess that you use HTTP and are behind an HTTP proxy.

4. Do you use any Asynchronous IO, Comet, WebSockets (e.g. via
Atmosphere framework)?

5. In your traffic snippet,
does that HTML response match the request, or a previous request?

What generates those scrollTo  script fragments?

6. Note that you can configure AccessLogValve to log your thread name 
(%I),
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

Best regards,
Konstantin Kolinko

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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, 
you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly 
and delete this message and any attachments immediately.

Re: Tomcat 6.0.26 on Windows server - sessions are not expired

2014-02-05 Thread Konstantin Kolinko
2014-02-03 Daniel Mikusa dmik...@gopivotal.com:
 On Feb 3, 2014, at 9:00 AM, Maor Yosef maoryo...@gmail.com wrote:

 On Mon, Feb 3, 2014 at 2:10 PM, Daniel Mikusa dmik...@gopivotal.com wrote:

 Also, please realize that a JSP page, even one that simply prints out OK 
 will create a session.  This is by design and if you don't want it to create 
 a session you need to explicitly indicate that in your JSP.

 Ex:

   %@ page session=false %

 This is important in scenarios where you're doing load testing and using 
 custom HTTP clients, because these client's may not be handling sessions 
 correctly and thus end up creating a new session every time they access the 
 page.

 Another way to handle misbehaving clients is, what Konstantin mentioned in 
 his earlier message about web bots, the CrawlerSessionManagerValve.


I added the above text to the FAQ page here:
https://wiki.apache.org/tomcat/OutOfMemory

Best regards,
Konstantin Kolinko

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



Re: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread javier_espana
Nothing gets logged within Tomcat when I attempt to start it through the
Windows Services panel

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_esp...@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_esp...@hna.honda.com.
Please update your contact information.
Thank you.***





From:   Cédric Couralet cedric.coura...@gmail.com
To: Tomcat Users List users@tomcat.apache.org,
Date:   02/04/2014 09:31 PM
Subject:Re: unable to start Tomcat through the Windows Services panel



2014-02-04  javier_esp...@hna.honda.com:
 Thank you Mark, but it did not make a difference.  Any other idea?


Do you have anything in the log directory of your tomcat installation?
There should be log for commons-daemon (used to launch the service)
and maybe for tomcat.

-
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: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread David kerber

On 2/5/2014 1:01 PM, javier_esp...@hna.honda.com wrote:

Nothing gets logged within Tomcat when I attempt to start it through the
Windows Services panel


As Andre asked, what about Windows Event viewer?




Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_esp...@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_esp...@hna.honda.com.
Please update your contact information.
Thank you.***





From:   Cédric Couralet cedric.coura...@gmail.com
To: Tomcat Users List users@tomcat.apache.org,
Date:   02/04/2014 09:31 PM
Subject:Re: unable to start Tomcat through the Windows Services panel



2014-02-04  javier_esp...@hna.honda.com:

Thank you Mark, but it did not make a difference.  Any other idea?



Do you have anything in the log directory of your tomcat installation?
There should be log for commons-daemon (used to launch the service)
and maybe for tomcat.

-
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: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread javier_espana
I tried changing the logon setup to use my ID and password but it did not
make a difference.

How do I get to the System Event Log in Windows 7?

Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_esp...@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_esp...@hna.honda.com.
Please update your contact information.
Thank you.***





From:   André Warnier a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org,
Date:   02/05/2014 01:29 AM
Subject:Re: unable to start Tomcat through the Windows Services panel



javier_esp...@hna.honda.com wrote:
 Sorry for my previous attempt.

 I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
 When I attempt to start it, I get the following message

 Windows could not start the Tomcat7 on Local Computer. For more
 information, review the System Event Log.

and did you review it, and what does it say ?


If this is a non-Microsoft
 service, contact the service vendor, and refer to service-specific error
 code 4.

 If I run the STARTUP.BAT batch file, it starts OK.


See Mark's previous answer.

In a nutshell :

When you run Tomcat via STARTUP.BAT in a command window, Tomcat starts up :
- under your own logged-in user-id
- using the parameters present in the various BAT files present in
Tomcat/bin

When you run Tomcat as a Service, it starts up :
- under whatever user-id the Service is configured to run under
- using parameters in the Registry (it does not use the BAT files at all)
(The Registry parameters can be edited via the GUI editor tomcat7w.exe,
also in Tomcat/bin)





-
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: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread javier_espana
How do I get to the Windows Event Viewer in Windows 7?

Thanks

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_esp...@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_esp...@hna.honda.com.
Please update your contact information.
Thank you.***





From:   David kerber dcker...@verizon.net
To: Tomcat Users List users@tomcat.apache.org,
Date:   02/05/2014 10:07 AM
Subject:Re: unable to start Tomcat through the Windows Services panel



On 2/5/2014 1:01 PM, javier_esp...@hna.honda.com wrote:
 Nothing gets logged within Tomcat when I attempt to start it through the
 Windows Services panel

As Andre asked, what about Windows Event viewer?



 Javier España
 Sr. Technical Analyst
 Honda North American Services, LLC.
 Information Services Division
 ISD Applications
 1919 Torrance Blvd.,
 Torrance, CA 90501
 (310) 781-4514
 Email: javier_esp...@hna.honda.com
 www.honda.com

 ***Beginning April 1, 2013 my email changed to
javier_esp...@hna.honda.com.
 Please update your contact information.
 Thank you.***





 From:  Cédric Couralet cedric.coura...@gmail.com
 To:Tomcat Users List users@tomcat.apache.org,
 Date:  02/04/2014 09:31 PM
 Subject:   Re: unable to start Tomcat through the Windows Services
panel



 2014-02-04  javier_esp...@hna.honda.com:
 Thank you Mark, but it did not make a difference.  Any other idea?


 Do you have anything in the log directory of your tomcat installation?
 There should be log for commons-daemon (used to launch the service)
 and maybe for tomcat.

 -
 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: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread David kerber

On 2/5/2014 1:24 PM, javier_esp...@hna.honda.com wrote:

I tried changing the logon setup to use my ID and password but it did not
make a difference.

How do I get to the System Event Log in Windows 7?


It's in Administrative Tools | Computer Management, in the System Tools 
branch.  There are a bunch of different logs there.





Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_esp...@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_esp...@hna.honda.com.
Please update your contact information.
Thank you.***





From:   André Warnier a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org,
Date:   02/05/2014 01:29 AM
Subject:Re: unable to start Tomcat through the Windows Services panel



javier_esp...@hna.honda.com wrote:

Sorry for my previous attempt.

I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
When I attempt to start it, I get the following message

Windows could not start the Tomcat7 on Local Computer. For more
information, review the System Event Log.


and did you review it, and what does it say ?


If this is a non-Microsoft

service, contact the service vendor, and refer to service-specific error
code 4.

If I run the STARTUP.BAT batch file, it starts OK.



See Mark's previous answer.

In a nutshell :

When you run Tomcat via STARTUP.BAT in a command window, Tomcat starts up :
- under your own logged-in user-id
- using the parameters present in the various BAT files present in
Tomcat/bin

When you run Tomcat as a Service, it starts up :
- under whatever user-id the Service is configured to run under
- using parameters in the Registry (it does not use the BAT files at all)
(The Registry parameters can be edited via the GUI editor tomcat7w.exe,
also in Tomcat/bin)





-
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: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread chris derham
On 5 February 2014 16:34,  javier_esp...@hna.honda.com wrote:
 How do I get to the Windows Event Viewer in Windows 7?

http://lmgtfy.com/?q=How+do+I+get+to+the+Windows+Event+Viewer+in+Windows+7

 Thanks

Your welcome. Anytime you want something from google, please ask here first

Chris

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



Re: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread javier_espana
OK, this is what I see in the Event Viewer under General tab
The tomcat7 service terminated with service-specific error Incorrect
function..

Under Details tab, I see the following in XML view
- Event xmlns=http://schemas.microsoft.com/win/2004/08/events/event;
  - System
Provider Name=Service Control Manager Guid=
{555908d1-a6d7-4695-8e1e-26931d2012f4} EventSourceName=Service
Control Manager /
EventID Qualifiers=491527024/EventID
Version0/Version
Level2/Level
Task0/Task
Opcode0/Opcode
Keywords0x8080/Keywords
TimeCreated SystemTime=2014-02-05T19:04:06.253413900Z /
EventRecordID67562/EventRecordID
Correlation /
Execution ProcessID=872 ThreadID=6044 /
ChannelSystem/Channel
ComputerTORAHMLF3DTKX1.am.mds.honda.com/Computer
Security /
/System
  - EventData
Data Name=param1tomcat7/Data
Data Name=param2%%1/Data
/EventData
  /Event

  Can anyone tell me what that is trying to tell me?

  Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_esp...@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_esp...@hna.honda.com.
Please update your contact information.
Thank you.***





From:   chris derham ch...@derham.me.uk
To: Tomcat Users List users@tomcat.apache.org,
Date:   02/05/2014 10:37 AM
Subject:Re: unable to start Tomcat through the Windows Services panel
Sent by:cjder...@gmail.com



On 5 February 2014 16:34,  javier_esp...@hna.honda.com wrote:
 How do I get to the Windows Event Viewer in Windows 7?

http://lmgtfy.com/?q=How+do+I+get+to+the+Windows+Event+Viewer+in+Windows+7

 Thanks

Your welcome. Anytime you want something from google, please ask here first

Chris

-
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 and Chunked Transfer-Encoding

2014-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Walter,

On 2/5/14, 4:41 AM, walter.heesterm...@toyota-europe.com wrote:
 Is there something we can enable on the tomcat level to have more
 logging for this issue, to be able to see if the problem is related
 to application or the tomcat?

It sounds like Tomcat is not even starting. If Tomcat isn't in
control, it can't call for help.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS8purAAoJEBzwKT+lPKRYSkkP/iSud3GvJ17b2m62LazIONAv
gr9Nh5OaSA15jir28NS6ZKNvqLiDhVWejKAZICvg3utGaqSELddh8x8Penxahh/w
JmqvEyzk4ZvgS6t/9oPk5petKQkeXAKooBb9OSnk2yKskuwJI3py4tvhpOcTiB1H
4D1dIXJZ2n6u+LKBEzOHEQnd+KDv5iuXgKud0ldrgGKc8HZnRqwAOpiBOim5+hNm
sf1Vk+yksrwQn80U/f5meFXMGZu5El7wApVN3j+1uGyuMc5hHdmFyBVRHhtB3Inz
XCCfh5VrQU7Cd6zrKMQhFDJP5wM4iFcKbVhjW6ivOIQeqn8V2VGONHDP5RnxqkTw
HCsC0SQUHRk13gDYJTaQg6+hWl8TJXvk9ehWo87RMjFFIlNKOVveN554rm+SRH6C
AwnYsulSgDUUyzdBg1689RdzdiHKDmjt1sPjJEAruKjUgEEyli2ajBBvGIlOZV87
Ld1buRHp1mEeAn5za+9bXyF8tSiyZalHEAzATTnGqz4nIVOdLhDCbzHkSkr/L20i
lZhqYrXizf+T4qEhpTq5rITOxiIjx0owgKBxA0oIkeQCIZaDQ9zZjWR5nAHsBJXj
H3C1TMnif6AivxjReoOF6tU7F+u3SACwl3LwM8m8Qzos5jZvCVuV5sQINyWIYfH1
e1t2v3X1YzW3ISojJ+jp
=3aYs
-END PGP SIGNATURE-

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



Re: unable to start Tomcat through the Windows Services panel

2014-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Chris,

On 2/5/14, 1:36 PM, chris derham wrote:
 On 5 February 2014 16:34,  javier_esp...@hna.honda.com wrote:
 How do I get to the Windows Event Viewer in Windows 7?
 
 http://lmgtfy.com/?q=How+do+I+get+to+the+Windows+Event+Viewer+in+Windows+7

 
 Thanks
 
 Your welcome. Anytime you want something from google, please ask
 here first

Feel free to end your snarkiness after the LMGTFY response. There's no
need to be outright rude.

And you misspelled you're.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS8ptDAAoJEBzwKT+lPKRYiQoP/jVre3pcj2Cf+1DiXPHCXfkU
ZTP1Y4cTTqFEYaA0fWzEXkybQI9VsWVqPdzd9lLXznRZgsZxOCj71TCVcT0PHPz+
CKDzLE5c1cLaUG9HSGbkT8Zu7mmV+aO02AOgZgV1A0UgqrMZX3v1D8MIrnKJAw9W
a5T6CBf7z8sIMTjhYvzjq+p7xbNcw7lVcNIVXKhQly3mjaPoAZBV1CiRRlJ+mRqY
uuvnRlgTfTtWRRuL/S+EApytckvh/Aa2XFbDjdL+FWwETfKVjgl/XTxrCo7YbBMM
lGRdrS8r43fGjx/mRu3TisnezXngBk+CAUsgV5ET1Bt75LLO1xVyqQBoRVdBFwoq
ZuvYgdTa3LuAA0aoJM59qB38nV1Voq+GjcDairxj3qrhUoC4d20BDo2NfyzZw7t8
C//24yEykg+ixWtURdgjQJqFagXIS1hojQj2KeiKmGISzLkp8Aenw5mkqrgxzG7J
gfSLs0+qX/hKKAsuh0GKR05RvykwCSEbAPRsQRF/aw9JRDYW7x+fY7wvKDpH9s1m
tJbutfTnxylJQrZYstUjZR26k0Pvk+tu27pJjEWR8SOnj6WVF2zeSQ5Pqhp70tqg
L0e0L1Y+HBgZ2hR+KtfTaNKwj3jvbRRvqul3SMikTUer64l4+Zn50WK8aWCCvKoa
mmY0IUP3de/aryj/Hi0o
=JmDl
-END PGP SIGNATURE-

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



Re: Installing tomcat 6

2014-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Franz,

On 2/4/14, 9:41 PM, Franz wrote:
 On Tue, Feb 4, 2014 at 9:31 PM, Christopher Schultz  
 ch...@christopherschultz.net wrote:
 
 Dan,
 
 On 2/4/14, 3:43 PM, Daniel Mikusa wrote:
 On Feb 4, 2014, at 3:23 PM, Franz 169...@gmail.com wrote:
 
 On Tue, Feb 4, 2014 at 6:13 PM, Franz 169...@gmail.com
 wrote:
 
 
 
 
 On Tue, Feb 4, 2014 at 6:08 PM, Mark Thomas
 ma...@apache.org wrote:
 
 On 04/02/2014 20:04, Franz wrote:
 
 export JAVA_HOME=/opt/openemm/java cd tomcat 
 bin/startup.sh
 
 At this point use: bin/catalina.sh run
 
 rather than bin/startup.sh
 
 and report here what output you get.
 
 
 [root@ns3098622 tomcat]# bin/catalina.sh run
 
 Using CATALINA_BASE:   /opt/openemm/tomcat Using
 CATALINA_HOME: /opt/openemm/tomcat Using
 CATALINA_TMPDIR: /opt/openemm/tomcat/temp Using
 JRE_HOME: /opt/openemm/java Using CLASSPATH: 
 /opt/openemm/tomcat/bin/bootstrap.jar bin/catalina.sh:
 line 305:
 /opt/openemm/tomcat//opt/openemm/java/bin/java: No
 such file or directory bin/catalina.sh: line 305: exec: 
 /opt/openemm/tomcat//opt/openemm/java/bin/java: cannot 
 execute: No such file or directory
 
 thanks
 
 
 But I do not understand what this error means and what I
 should do now
 
 You're setting JAVA_HOME as /opt/openemm/java, quotes
 included. Try setting it without quotes.
 
 Quotes should be fine, as long as you are using plain-old 
 double-quotes and not smart (aka dumb) quotes.
 
 Ex:  export JAVA_HOME=/opt/openemm/java
 
 Also make sure that you can run the command 
 /opt/openemm/java/bin/java -version.  You should get the
 version info for your JVM.
 
 +1
 
 I suspect Java is not actually installed in /opt/openemm/java
 
 
 Installed? The tutorial steps that I reported in the first email
 only copy the files in directory /opt/openemm/java. Nothing was
 really installed. But it works just with this  export
 JAVA_HOME=/opt/openemm/java step. Also the test of java -version
 works. Are there any problems with the lack of an actual java
 installation?

Yes, without Java you cannot run Tomcat. Since you have set
JAVA_HOME=/opt/openmm/java, you'd better have a Java available under
/opt/openemm/java.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS8pxRAAoJEBzwKT+lPKRYAcwQAJTPGJAMlouHJYNEqfhaJ1OH
djaaCMD0ylLtxztx1B1O1uKKiUgim1E5zkSj8lIoLNWODb40pBPJOhVzm1ZMwEsY
kSEJaD/HOzbciwMzsT8j9Q/APwzI/PvN809fG7+F3gpf1tR05k/ZcZq53KRPDwKr
n0/dxTi0JmUGqMEFtCaVWCC+mredvofnbwLeC9jGqHwLLA1yiv7hzUtD9+s8F0Pj
sDJ1wojmc/Pil4i4PZitNPWC/E0vWog0cqC9C56//+kMOuv3sdkgsnBzN2OK6Rod
bkgCDYfg5whpqd8UR1bTPJlXHEacTq24yfAVWKcXIO4WQJxGD+QktrgGMi7+AOQf
xz2ZOwgzy3EwhhqVQMdhShRaWtMWUHe17NX83URM5Uy+ESxvKKFQIstxi/skLwuH
8CnKIMW31TLoEPuVnGOiAEoYAdRP+YdkJq5GjUJrqgmT5b6gw1ZCX/96M/UEjh4G
XVpTSHdOACWPRYwO6kFGrOnf4PjLME2T8M62Dw7z8ibvTs0RDoekDPfl3hoqMIuj
iU2qwqEZu9KAC1IaqEpiHgZkyHvCshBwMsJ94xdVbxEEoFGkrv3ExvXNX0Zx2xj9
ueMweRK5zAr0Jb2t2/2OGJWIb4RCkT+Z8WKR+mE7P/XOIafhKtY2QBHvb1Itq8Vn
b1Jq1bdTgfRXAPpOtrm8
=L0BE
-END PGP SIGNATURE-

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



Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext for tomcat 7.0.50

2014-02-05 Thread Kiran Badi
Hi All,

I have 3 tomcats installed in my machine, one is 7.0.27, 7.0.35 and 7.0.50

Now when I deploy my war file to 7.0.27/7.0.35 it works perfectly fine and
deployment goes through.

But on 7.0.50 it fails with below message,

FAIL - Application at context path /myapp could not be started

FAIL - Encountered exception org.apache.catalina.LifecycleException:
Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp]]

In catalina logs I see below message,

eb 05, 2014 10:22:21 PM org.apache.catalina.deploy.NamingResources cleanUp
WARNING: Failed to retrieve JNDI naming context for container
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp]]
so no cleanup was performed for that container
javax.naming.NameNotFoundException: Name [comp/env] is not bound in
this Context. Unable to find [comp].
at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
at 
org.apache.catalina.deploy.NamingResources.cleanUp(NamingResources.java:988)
at 
org.apache.catalina.deploy.NamingResources.stopInternal(NamingResources.java:970)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at 
org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5664)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:141)
at 
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1258)
at 
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:716)
at 
org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:221)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at 
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
at 
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I am not sure as why its not able to find JNDI resource when other 2
version sitting on same local host can find it.

I have JRE 7 and I am on windows vista home edition with 32 bit OS.

- Kiran