Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-10 Thread Ognjen Blagojevic

Chirag,

On 10.10.2013 6:19, Chirag Dewan wrote:

A small update. The customers client is C++ client,which uses OpenSSL. And I 
found that client hello message is SSLv2 protocol. And the server 
response(server hello) is a TLSv1 protocol. Is there something I am missing?


There is a difference in SSLv2 protocol and SSLv2Hello pseudo-protocol. 
SSLv2 is basically broken (although a lot of badly configured servers 
still support it).


SSLv3, and TLS protocol specifications allow that handshake happens in 
SSLv2 format, and then to immediately switch to SSLv3 or TLS. This is 
also known as SSLv2Hello pseudo-protocol. It is done for compatibility 
reasons, and it is considered relatively safe. It is what you are 
observing, and is perfectly normal.


In Tomcat you may specify which exact protocols to use, by setting 
sslEnabledProtocols attribute on HTTP connector (Tomcat 7/8 and Tomcat 
6.0.38+), or undocumented protocols attribute (versions prior to 
6.0.38). Those attributes may take one or more of the following values: 
SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2, SSLv2Hello. Of course, it is 
recommended not to use SSLv2, but you may use SSLv2Hello (among 
others), to ensure compatibility.


Note that aforementioned attributes are somehow related to attribute 
sslProtocol, which, by itself selects a group of enabled protocols.


-Ognjen

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



NPE in ResultSetImpl.next() using tomcat jdbc pool

2013-10-10 Thread Henning Rohlfs
Hello,

I've been trying to figure this problem out for some time now and I'm
totally stuck. The Exception in question is the following:
Caused by: java.lang.NullPointerException
at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:7009)
at
com.server.persistence.state.connectors.jdbc.JDBCCleanupStateConnector.getUUIDsByTable(JDBCCleanupStateConnector.java:140)
... 8 more

It occurs very infrequently (and unfortunately I have not been able to
reproduce it yet). I have also checked all occurences of getConnection().
Every one of them is wrapped (like below) by try {} finally {if (con !=
null) con.close();}. Connections are not stored locally and used by other
threads later as far as I can tell either.
The last time this problem occured, the thread in question was actually
stuck for 10 minutes (as far as I reconstruct) before the NPE was thrown.
During this time, the thread was seemingly stuck on
SocketInputStream.socketRead0 (see below for stack trace), even though I
set the sockettimeout when creating the db pool.

Best regards
 Henning Rohlfs


@Override
public ListString getUUIDsByTable( final String table) throws
TableNotFoundException {
Connection connection = null;
try {
connection = stateDbIo.getConnection();
final PreparedStatement ps = connection.prepareStatement(
SELECT uuid FROM ` + table+ ` GROUP BY uuid );
final ResultSet rs = ps.executeQuery();
final ListString result = new ArrayListString();
while ( rs.next() ) { //this is where the exception is thrown
result.add( rs.getString( UUID_COLUMN ) );
}
return result;
} catch ( final Exception e ) {
throw new TableNotFoundException( table, e );
} finally {
if ( connection != null ) {
try {
connection.close();
} catch ( final SQLException e ) {
// ignore
}
}
}
}


I'm using the tomcat jdbc database pool (7.0.42) to get the connections.

stateDbIo.getConnection():
public Connection getConnection() throws SQLException {
if ( dataSource != null ) {
final Connection connection = dataSource.getConnection();
connection.setReadOnly( readOnly );
connection.setAutoCommit( true );
return connection;
}
return null;
}


Connection pool settings:
protected String initialSize = 0;
protected String maxActive = 8;
protected String maxIdle = 8;
protected String minIdle = 0;
protected String timeBetweenEvictionRunsMillis = 3;
protected String minEvictableIdleTimeMillis = 6;
protected String validationQuery = SELECT 1;
protected String validationInterval = 3;
protected String testOnBorrow = true;
protected String removeAbandoned = true;
protected String removeAbandonedTimeout = 60;
protected String logAbandoned = true;
protected String jdbcInterceptors =
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState; +
org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer; +
org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer;
protected String connectionProperties =
[connectTimeout=9;socketTimeout=9;];

props = new Properties();
props.put( url, url );
props.put( driverClassName, driverClass );
props.put( username, username );
props.put( password, password );
props.put( initialSize, initialSize );
props.put( maxActive, maxActive );
props.put( maxIdle, maxIdle );
props.put( minIdle, minIdle );
props.put( timeBetweenEvictionRunsMillis,
timeBetweenEvictionRunsMillis );
props.put( minEvictableIdleTimeMillis, minEvictableIdleTimeMillis
);
props.put( validationQuery, validationQuery );
props.put( validationInterval, validationInterval );
props.put( testOnBorrow, testOnBorrow );
props.put( removeAbandoned, removeAbandoned );
props.put( removeAbandonedTimeout, removeAbandonedTimeout ); //
seconds
props.put( logAbandoned, logAbandoned );
props.put( connectionProperties, connectionProperties );
props.put( jdbcInterceptors, jdbcInterceptors );
return new DataSourceFactory().createDataSource( props );


Stack trace of stuck thread before it threw the exception:
   java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at
com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:114)
at
com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:161)
at

Request

2013-10-10 Thread RoseHosting Admin

Please add us to the Contributors Group, so we can edit the Tomcat wiki.

Username: RoseHosting


Thanks

Admin
RoseHosting.com

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



Re: Request

2013-10-10 Thread Mark Thomas
On 10/10/2013 15:18, RoseHosting Admin wrote:
 Please add us to the Contributors Group, so we can edit the Tomcat wiki.
 
 Username: RoseHosting

Done.

Mark


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



Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
No help on this?

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:

 I am getting this exception very often even when i am using tomcat without
 eclipse. Is there a way to avoid this?

 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in)
 *


 On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

 Hi i am using tomcat-7 with eclipse kepler. I am getting the following
 exception very often. Is there a way to prevent this?

 Exception:org.apache.jasper.JasperException: Unable to compile class for
 JSP Stack trace:

 org.apache.jasper.JasperException: Unable to compile class for JSP
  at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
  at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  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.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
  at 
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
  at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
  at 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
  at 
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
  at 
 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
  at 
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
  at 
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 

Re: Why am i getting this exception often?

2013-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Muralidhar,

On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:
 No help on this?

No further details?

For instance, what does the directory look like where the file is
being (attempted to be) renamed? How about permissions?

You can't just post a stack trace and ask how can I prevent this?

- -chris

 
 *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
 http://yaragalla.blogspot.in) *
 
 
 On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla  
 java.yaraga...@gmail.com wrote:
 
 I am getting this exception very often even when i am using
 tomcat without eclipse. Is there a way to avoid this?
 
 *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
 http://yaragalla.blogspot.in) *
 
 
 On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla  
 java.yaraga...@gmail.com wrote:
 
 Hi i am using tomcat-7 with eclipse kepler. I am getting the
 following exception very often. Is there a way to prevent
 this?
 
 Exception:org.apache.jasper.JasperException: Unable to compile
 class for JSP Stack trace:
 
 org.apache.jasper.JasperException: Unable to compile class for
 JSP at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)

 
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)

 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 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.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)

 
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)

 
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
 at
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)

 
at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)

 
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
 at
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)

 
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)

 
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

 
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
 at
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)

 
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

 
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

 
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
 at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

 
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)

 
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

 
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

 
at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

 
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

 
at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
 at
 

Re: NPE in ResultSetImpl.next() using tomcat jdbc pool

2013-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Henning,

On 10/10/13 10:01 AM, Henning Rohlfs wrote:
 I've been trying to figure this problem out for some time now and
 I'm totally stuck. The Exception in question is the following: 
 Caused by: java.lang.NullPointerException at
 com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:7009) at 
 com.server.persistence.state.connectors.jdbc.JDBCCleanupStateConnector.getUUIDsByTable(JDBCCleanupStateConnector.java:140)

 
... 8 more

Looks like a bug in Connector/J. Are you up-to-date?

 It occurs very infrequently (and unfortunately I have not been able
 to reproduce it yet). I have also checked all occurences of
 getConnection(). Every one of them is wrapped (like below) by try
 {} finally {if (con != null) con.close();}. Connections are not
 stored locally and used by other threads later as far as I can tell
 either. The last time this problem occured, the thread in question
 was actually stuck for 10 minutes (as far as I reconstruct) before
 the NPE was thrown. During this time, the thread was seemingly
 stuck on SocketInputStream.socketRead0 (see below for stack trace),
 even though I set the sockettimeout when creating the db pool.

The connection pool probably gave-up on the connection and possibly
closed it. In that case, calling ResultSet.next() might have confused
Connector/J's implementation because the ResultSet should have been
killed by then.

 @Override public ListString getUUIDsByTable( final String table)
 throws TableNotFoundException { Connection connection = null; try
 { connection = stateDbIo.getConnection(); final PreparedStatement
 ps = connection.prepareStatement( SELECT uuid FROM ` + table+ `
 GROUP BY uuid ); final ResultSet rs = ps.executeQuery(); final
 ListString result = new ArrayListString(); while ( rs.next() )
 { //this is where the exception is thrown result.add( rs.getString(
 UUID_COLUMN ) ); } return result; } catch ( final Exception e ) { 
 throw new TableNotFoundException( table, e ); } finally { if (
 connection != null ) { try { connection.close(); } catch ( final
 SQLException e ) { // ignore } } } }

Don't forget to close your PreparedStatement and ResultSet objects.
Yes, I know that the JDBC spec says that closing the Connection should
close the associated objects (i.e. statement, result set), but in a
pooled situation, sometimes the JDBC specs break down a bit and
drivers (and pools) don't always follow things to the letter.

 I'm using the tomcat jdbc database pool (7.0.42) to get the
 connections.
 
 stateDbIo.getConnection(): public Connection getConnection() throws
 SQLException { if ( dataSource != null ) { final Connection
 connection = dataSource.getConnection(); connection.setReadOnly(
 readOnly ); connection.setAutoCommit( true ); return connection; }

It would be better to set the read-only and auto-commit flags based
upon the defaultAutoCommit and defaultReadOnly attributes of the pool
you configure. Then you don't have to worry about them ;)

I would guess that this is a MySQL Connector/J bug and not your fault.
That doesn't mean it's not your problem, though ;)

It sounds like you've done enough research to determine the problem
(timeout) so maybe you can create a small test-case that reproduces
it? I don't think it's got anything to do with Tomcat or tomcat-jdbc.
You should be able to rig-up a test case with a simple Java program
that connects to MySQL, then issues a long-running query (e.g. SELECT
SLEEP(10)) while the driver's timeout time is something less than 10
seconds. That should cause a disconnect during the query execution,
and subsequently calling ResultSet.next might fail.

Let us know how it goes.

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

iQIcBAEBCAAGBQJSVt4eAAoJEBzwKT+lPKRYt3EP/2iwF06+k4PeXATa8yUaSGJy
Ip5bEzb29qxn0VW3yPO9BvEnRsH5p8GLclqEbyd/S9qJuHfCWpf7BrnzQi68zQzC
4dadOY9kx+MtAzQeuvR0thBsOOwZLZHWaCkNZrwbuYrHX72vrbsa7jWfSVycXI8O
EQ1xJiEkzTJNYgI4rQ2SLc8Z0oj+86lzM+4Lpu3zoDX1i6CQclhgqKOeaa1fHhQW
HD75qI1hhyeWpwZRTDH9vsxmDO0W0S6LmxJNfxemlMhIv/MUrk4sSlA5rLsNqpyY
I0WIOAw5nxUHqXUmnd0flRIgLIBwieddmPZxXGXQgAzncgaWF90kpd9m5Rh3ty/G
mPKx98+EKlAJxaVUCczsyqGoTHBurFC6e6wav0aHek7fwUHZRfiqWJ0tsFeneiMP
Im+Sah3G2NBMahKw3TNcugkL+3aPgeDN48mgY2qgBE1c1mbbCNhnRbtZgTnQh3MF
zj+HKy2nvjExSpKAZttgad6HgEcHNP5e5rjUrLs9Mmax52HsN3ghn1qHmBylDRTy
E0b74EFNsDDJ1XH+k0olaqHrfhGIrQLihD8Jlu/gNhbKrNkJzIubGIsf7uvtS7KF
ksSxIyndIvNnQk4+9bX7zmK2ZPWACh8efbOFH6DcXXlHf/juxJYSnp4x3fHbdxIf
apaiMEQhUI68N+zaRl4b
=3Xdw
-END PGP SIGNATURE-

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



Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ognjen,

On 10/10/13 4:11 AM, Ognjen Blagojevic wrote:
 On 10.10.2013 6:19, Chirag Dewan wrote:
 A small update. The customers client is C++ client,which uses
 OpenSSL. And I found that client hello message is SSLv2 protocol.
 And the server response(server hello) is a TLSv1 protocol. Is
 there something I am missing?
 
 There is a difference in SSLv2 protocol and SSLv2Hello
 pseudo-protocol. SSLv2 is basically broken (although a lot of badly
 configured servers still support it).

+1

Also, Chirag has the connector supporting only TLS, so SSLv2 HELLO
should indeally fail entirely.

 SSLv3, and TLS protocol specifications allow that handshake happens
 in SSLv2 format, and then to immediately switch to SSLv3 or TLS.
 This is also known as SSLv2Hello pseudo-protocol. It is done for
 compatibility reasons, and it is considered relatively safe. It is
 what you are observing, and is perfectly normal.

+1

OpenSSL (and others) are capable of making SSLv2 HELLO calls but then
not actually using SSLv2... this is the default in a lot of places
because old clients and servers still use SSLv2 HELLOs. It's a way to
get around the fact that SSLv2 has essentially been eradicated from
the planet but nobody wants connection errors just in case.

 In Tomcat you may specify which exact protocols to use, by setting 
 sslEnabledProtocols attribute on HTTP connector (Tomcat 7/8 and
 Tomcat 6.0.38+), or undocumented protocols attribute (versions
 prior to 6.0.38). Those attributes may take one or more of the
 following values: SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2,
 SSLv2Hello. Of course, it is recommended not to use SSLv2, but
 you may use SSLv2Hello (among others), to ensure compatibility.

If you really only want to use TLS but support SSLv2 HELLOs, it's not
entirely clear to me what setting you want here (sslEnabledProtocols),
with sslProtocol, etc. I suspect what you want is this:

sslProtocol=TLS sslEnabledProtocols=TLS, SSLv2Hello

Chirag, give that a try and see if your problems are solved.

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

iQIcBAEBCAAGBQJSVt+uAAoJEBzwKT+lPKRYHDgP/jjgBDAQQ2/cd6qtDVCGLC5+
/KWHpdj22KkIkkAjV05iyM+aHwU4pLfPHW0GT5j5UD8cXq4pFQdDO+nifTaZvkc3
2PgiglRum5TfEX4aldXZ7TY7Ld3XwuajqNIPd1kOoEJwqMXRmb6EWR79DPbuKy5X
ok7pYYqrmpqe0UTrLM52SIBg+3eygkfFyY0I/m6/xdxdgsOrHjNF1k1P5A8geCNL
p5rSU8PR0b9imKA4vBov4Vc6rdysEEPIZxGmiZIuY8hS1WF+k6VLiggcegXfiieV
btoybYEsCOpCeatx5Z49byBW3aZeKoqIRc0G+hW+hMpPn4UP4DLlhlVbdG1K5kRR
boKu62S+QwWz8fKF8gEtH5AK1A5Y9bhLjd6UrTV1c9MWpP+tjxiqNby+X6DAGUhZ
uQkBJGymL3S4zIACLROyowyIB70hlDZHeflXqBlzg/TeiFE+U+h8ySSz35V2JcbF
Drk7UkeHzhVSGl9mNG5tgHrT8UziXD4kucPVLIbTU2bCvyDkc2eb5uQca+tV42zH
1tcRVAnA4ULzIyzspq0SHwdVNCHZeuwLL9TbLI268PwJtjUgSeCxOhMiWFysBahK
PnwyeliIzxJHQzO6d8zOlAsF3l1cJ7iwIJKbQiFgr95e7RPd3g86ZHtNoTCQWDsR
NHnhGB6C9UuNR5RqASsm
=EpYT
-END PGP SIGNATURE-

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



Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
I am using all default settings. I am deploying the war file in webapp
folder of tomcat. just downloaded, kept the war file in webapp folder and
started the tomcat. I have not done anything else.

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:
  No help on this?

 No further details?

 For instance, what does the directory look like where the file is
 being (attempted to be) renamed? How about permissions?

 You can't just post a stack trace and ask how can I prevent this?

 - -chris

 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  I am getting this exception very often even when i am using
  tomcat without eclipse. Is there a way to avoid this?
 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  Hi i am using tomcat-7 with eclipse kepler. I am getting the
  following exception very often. Is there a way to prevent
  this?
 
  Exception:org.apache.jasper.JasperException: Unable to compile
  class for JSP Stack trace:
 
  org.apache.jasper.JasperException: Unable to compile class for
  JSP at
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
 
 
 at

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
  at
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 
 
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  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.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
  at
 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
  at
 
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
 
 
 at

 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
  at
 
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
  at
 
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
  at
 
 

Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
When ever i call a jsp in my browser this exception happens. I am not doing
anything specific.

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 11:01 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:

 I am using all default settings. I am deploying the war file in webapp
 folder of tomcat. just downloaded, kept the war file in webapp folder and
 started the tomcat. I have not done anything else.

 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in)
 *


 On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz 
 ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:
  No help on this?

 No further details?

 For instance, what does the directory look like where the file is
 being (attempted to be) renamed? How about permissions?

 You can't just post a stack trace and ask how can I prevent this?

 - -chris

 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  I am getting this exception very often even when i am using
  tomcat without eclipse. Is there a way to avoid this?
 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  Hi i am using tomcat-7 with eclipse kepler. I am getting the
  following exception very often. Is there a way to prevent
  this?
 
  Exception:org.apache.jasper.JasperException: Unable to compile
  class for JSP Stack trace:
 
  org.apache.jasper.JasperException: Unable to compile class for
  JSP at
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
 
 
 at

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
  at
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 
 
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  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.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
  at
 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
  at
 
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
 
 
 at

 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
  at
 
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
  at
 
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

Re: Why am i getting this exception often?

2013-10-10 Thread Mark Eggers

1. Please don't top-post
2. Please read: http://www.catb.org/esr/faqs/smart-questions.html


On 10/10/2013 10:31 AM, Muralidhar Yaragalla wrote:

I am using all default settings. I am deploying the war file in webapp
folder of tomcat. just downloaded, kept the war file in webapp folder and
started the tomcat. I have not done anything else.



Exact version of each please:

1. Tomcat (not just 7, but 7.0.x)
2. JVM version (not just 7, but 1.7.0_x)
3. OS, version, and bits

This particular error has been discussed before, but only on a really 
old version of Tomcat.


There are similar errors that occur that apparently have to do with 
Windows indexing the java.io.tmpdir directory. See for example:


http://www.coderanch.com/t/468010/Tomcat/Strange-behavior-Tomcat-classFile-delete

However, since I don't know if you're running on Windows, I don't know 
if this is applicable.


Google the following for other discussions:

java.io.IOException: tmpFile.renameTo(classFile) failed

Apparently BIRT has had issues with this in the past as well (and from 
your blog, I see that you use BIRT).


Again, these are pretty much random guesses since information is lacking.

On the plus side, I've never seen this problem occur in any of my 
environments with any JSP file.


. . . just my two cents
/mde/


*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Muralidhar,

On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:

No help on this?


No further details?

For instance, what does the directory look like where the file is
being (attempted to be) renamed? How about permissions?

You can't just post a stack trace and ask how can I prevent this?

- -chris



*Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
http://yaragalla.blogspot.in) *


On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:


I am getting this exception very often even when i am using
tomcat without eclipse. Is there a way to avoid this?

*Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
http://yaragalla.blogspot.in) *


On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:


Hi i am using tomcat-7 with eclipse kepler. I am getting the
following exception very often. Is there a way to prevent
this?

Exception:org.apache.jasper.JasperException: Unable to compile
class for JSP Stack trace:

org.apache.jasper.JasperException: Unable to compile class for
JSP at


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




at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)

at


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)




at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)

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.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)




at

org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

at


org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)




at

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

at


org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)




at

org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)

at


com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)




at

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)

at


org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)




at

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)

at


com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)




at

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

at


com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)




at

com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)

at


org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)




at

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

at


com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)




at


Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 11:18 PM, Mark Eggers its_toas...@yahoo.com wrote:

 1. Please don't top-post
 2. Please read: 
 http://www.catb.org/esr/faqs/**smart-questions.htmlhttp://www.catb.org/esr/faqs/smart-questions.html


 On 10/10/2013 10:31 AM, Muralidhar Yaragalla wrote:

 I am using all default settings. I am deploying the war file in webapp
 folder of tomcat. just downloaded, kept the war file in webapp folder and
 started the tomcat. I have not done anything else.


 Exact version of each please:

 1. Tomcat (not just 7, but 7.0.x)
 2. JVM version (not just 7, but 1.7.0_x)
 3. OS, version, and bits

 This particular error has been discussed before, but only on a really old
 version of Tomcat.

 There are similar errors that occur that apparently have to do with
 Windows indexing the java.io.tmpdir directory. See for example:

 http://www.coderanch.com/t/**468010/Tomcat/Strange-**
 behavior-Tomcat-classFile-**deletehttp://www.coderanch.com/t/468010/Tomcat/Strange-behavior-Tomcat-classFile-delete

 However, since I don't know if you're running on Windows, I don't know if
 this is applicable.

 Google the following for other discussions:

 java.io.IOException: tmpFile.renameTo(classFile) failed

 Apparently BIRT has had issues with this in the past as well (and from
 your blog, I see that you use BIRT).

 Again, these are pretty much random guesses since information is lacking.

 On the plus side, I've never seen this problem occur in any of my
 environments with any JSP file.

 . . . just my two cents
 /mde/

  *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in**)
 *


 On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz 
 ch...@christopherschultz.net wrote:

  -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:

 No help on this?


 No further details?

 For instance, what does the directory look like where the file is
 being (attempted to be) renamed? How about permissions?

 You can't just post a stack trace and ask how can I prevent this?

 - -chris


 *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
 http://yaragalla.blogspot.in**) *


 On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  I am getting this exception very often even when i am using
 tomcat without eclipse. Is there a way to avoid this?

 *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
 http://yaragalla.blogspot.in**) *


 On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  Hi i am using tomcat-7 with eclipse kepler. I am getting the
 following exception very often. Is there a way to prevent
 this?

 Exception:org.apache.jasper.**JasperException: Unable to compile
 class for JSP Stack trace:

 org.apache.jasper.**JasperException: Unable to compile class for
 JSP at

  org.apache.jasper.**JspCompilationContext.compile(**
 JspCompilationContext.java:**661)



  at

 org.apache.jasper.servlet.**JspServletWrapper.service(**
 JspServletWrapper.java:357)

 at

  org.apache.jasper.servlet.**JspServlet.serviceJspFile(**
 JspServlet.java:390)



  at org.apache.jasper.servlet.**JspServlet.service(JspServlet.**
 java:334)

 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.core.**ApplicationDispatcher.invoke(**
 ApplicationDispatcher.java:**749)



  at

 org.apache.catalina.core.**ApplicationDispatcher.**processRequest(**
 ApplicationDispatcher.java:**487)

 at

  org.apache.catalina.core.**ApplicationDispatcher.**doForward(**
 ApplicationDispatcher.java:**412)



  at

 org.apache.catalina.core.**ApplicationDispatcher.forward(**
 ApplicationDispatcher.java:**339)

 at

  org.apache.struts2.dispatcher.**ServletDispatcherResult.**doExecute(
 **ServletDispatcherResult.java:**164)



  at

 org.apache.struts2.dispatcher.**StrutsResultSupport.execute(**
 StrutsResultSupport.java:186)

 at

  com.opensymphony.xwork2.**DefaultActionInvocation.**executeResult(**
 DefaultActionInvocation.java:**371)



  at

 com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
 DefaultActionInvocation.java:**275)

 at

  org.apache.struts2.**interceptor.debugging.**DebuggingInterceptor.**
 intercept(**DebuggingInterceptor.java:256)



  at

 com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
 DefaultActionInvocation.java:**246)

 at

  com.opensymphony.xwork2.**interceptor.**DefaultWorkflowInterceptor.*
 *doIntercept(**DefaultWorkflowInterceptor.**java:176)



  at

 com.opensymphony.xwork2.**interceptor.**MethodFilterInterceptor.**
 intercept(**MethodFilterInterceptor.java:**98)

 at

Re: Why am i getting this exception often?

2013-10-10 Thread David kerber

On 10/10/2013 12:40 PM, Muralidhar Yaragalla wrote:

No help on this?


I guess not.  Have you asked on the Eclipse forums?




*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:


I am getting this exception very often even when i am using tomcat without
eclipse. Is there a way to avoid this?

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:


Hi i am using tomcat-7 with eclipse kepler. I am getting the following
exception very often. Is there a way to prevent this?

Exception:org.apache.jasper.JasperException: Unable to compile class for
JSP Stack trace:

 org.apache.jasper.JasperException: Unable to compile class for JSP
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
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.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at 
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
at 
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
at 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
at 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 

Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 10:19 PM, David kerber dcker...@verizon.net wrote:

 On 10/10/2013 12:40 PM, Muralidhar Yaragalla wrote:

 No help on this?


 I guess not.  Have you asked on the Eclipse forums?


This is happening without eclipse and also with eclipse.



 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in**)
 *


 On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  I am getting this exception very often even when i am using tomcat
 without
 eclipse. Is there a way to avoid this?

 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in**)
 *


 On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  Hi i am using tomcat-7 with eclipse kepler. I am getting the following
 exception very often. Is there a way to prevent this?

 Exception:org.apache.jasper.**JasperException: Unable to compile class
 for
 JSP Stack trace:

  org.apache.jasper.**JasperException: Unable to compile class
 for JSP
 at org.apache.jasper.**JspCompilationContext.compile(**
 JspCompilationContext.java:**661)
 at org.apache.jasper.servlet.**JspServletWrapper.service(**
 JspServletWrapper.java:357)
 at org.apache.jasper.servlet.**JspServlet.serviceJspFile(**
 JspServlet.java:390)
 at org.apache.jasper.servlet.**JspServlet.service(JspServlet.**
 java:334)
 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.core.**ApplicationDispatcher.invoke(**
 ApplicationDispatcher.java:**749)
 at org.apache.catalina.core.**ApplicationDispatcher.**
 processRequest(**ApplicationDispatcher.java:**487)
 at org.apache.catalina.core.**ApplicationDispatcher.**
 doForward(**ApplicationDispatcher.java:**412)
 at org.apache.catalina.core.**ApplicationDispatcher.forward(**
 ApplicationDispatcher.java:**339)
 at org.apache.struts2.dispatcher.**ServletDispatcherResult.**
 doExecute(**ServletDispatcherResult.java:**164)
 at org.apache.struts2.dispatcher.**StrutsResultSupport.execute(
 **StrutsResultSupport.java:186)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**
 executeResult(**DefaultActionInvocation.java:**371)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**275)
 at org.apache.struts2.**interceptor.debugging.**
 DebuggingInterceptor.**intercept(**DebuggingInterceptor.java:256)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 DefaultWorkflowInterceptor.**doIntercept(**DefaultWorkflowInterceptor.*
 *java:176)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**validator.**ValidationInterceptor.
 **doIntercept(**ValidationInterceptor.java:**265)
 at org.apache.struts2.**interceptor.validation.**
 AnnotationValidationIntercepto**r.doIntercept(**
 AnnotationValidationIntercepto**r.java:68)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 ConversionErrorInterceptor.**intercept(**ConversionErrorInterceptor.**
 java:138)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 ParametersInterceptor.**doIntercept(**ParametersInterceptor.java:**249)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 ParametersInterceptor.**doIntercept(**ParametersInterceptor.java:**249)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 StaticParametersInterceptor.**intercept(**StaticParametersInterceptor.*
 *java:191)
 

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-10 Thread Ognjen Blagojevic

Chris,

On 10.10.2013 19:11, Christopher Schultz wrote:

Also, Chirag has the connector supporting only TLS, so SSLv2 HELLO
should indeally fail entirely.


Setting attribute sslProtocol=TLS may actually enable all protocols 
from SSLv3 to TLSv1.2, plus SSLv2Hello. Even setting something like 
sslProtocol=TLSv1.1 would enable the same group of protocols. Tomcat 
docs clearly warns about that behavior (HTTP connector):


sslProtocol - The the SSL protocol(s) to use (a single value may enable 
multiple protocols - see the JVM documentation for details).




If you really only want to use TLS but support SSLv2 HELLOs, it's not
entirely clear to me what setting you want here (sslEnabledProtocols),
with sslProtocol, etc. I suspect what you want is this:

sslProtocol=TLS sslEnabledProtocols=TLS, SSLv2Hello

Chirag, give that a try and see if your problems are solved.


That is not valid configuration. TLS is not legal value for attribute 
sslEnabledProtocols, and it will be ignored. SSLv2Hello is not legal 
without any other secure protocol so JSSE will throw an exception. 
Something like


  sslProtocol=TLS
  sslEnabledProtocols=SSLv2Hello,TLSv1,TLSv1.1,TLSv1.2

would be valid config for what you propose.

It would also help to track down the cause of the problem, if Chirag 
sends handshake logs of failing and successful handshake.


Also, a bit of a brainstorming now: could this whole thing be IP 
protocol issue? I've seen similar behavior before, albeit not in context 
of SSL handshake: client tries to connect using IPv6 address, but 
firewall doesn't allow it, so client falls back to IPv4 and successfully 
connects.


-Ognjen

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



Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-10 Thread Chirag Dewan
Hi All,

Thanks a lot for your assistance. I enabled these protocols but that dint help.

Finally after 24 hours of digging in I figured out the problem.

We found out that the clients connection timeout was close to around 
80mins(which is inexplicable) and there is a firewall in between the client and 
the server. After 60sec(server timeout) server sent a FIN to the client, but 
there is no ACK from the other side and server connection closes. So if the 
next request comes within 80mins it tries to use the connection which is in 
TIME_WAIT state,and thus fails since SSL handshaking is closed by the server. 
And second request onwards handshaking happens again.

Appreciate all of you for your help.

Chirag.

Sent from Yahoo! Mail on Android