Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 899087 (JBEWS-301)

Summary: EWS - tomcat 5 solaris issues
Product: [JBoss] JBoss Enterprise Web Server 1 Reporter: Aleksandar Kostadinov <akostadinov>
Component: unspecifiedAssignee: Permaine Cheung <pcheung>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: EWS 1.0.0.GA   
Target Milestone: ---   
Target Release: EWS 1.0.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEWS-301
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-17 12:43:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
tomcat5_server.xml
none
certs.zip none

Description Aleksandar Kostadinov 2009-03-13 10:23:48 UTC
Date of First Response: 2009-03-13 08:17:58
project_key: JBEWS

catalina.out: 
WARNING: User database is not persistable - no write permissions on directory
java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk

Although the postinstall script was run.
---------

Another issue is that I can't see ssl vs tcnative working and I don't see anything in the log. Will investigate that further.

Comment 1 Permaine Cheung 2009-03-13 12:17:58 UTC
For the no write permission on directroy, can you please specify how to reproduce that warning?

The java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk  happens when the manager app is clicked, that will be fixed in the next build.

For tomcat 5, when using tcnative, you won't see the warning that the native library is not used. (This is already added to the Release Notes).

Comment 2 Aleksandar Kostadinov 2009-03-13 14:12:40 UTC
#1 you just start tomcat
#2 cool
#3 let me clarify this. I see tcnative working. But when I enable SSL it doesn't actually work and I don't see anything interesting in the log.

I'm investigatind on #3 and will update you in a comment later.

Comment 3 Permaine Cheung 2009-03-13 14:18:25 UTC
Mladen,

Can you please take a look at 1 and 3?


Thanks,
Permaine

Comment 4 Aleksandar Kostadinov 2009-03-14 06:13:37 UTC
wrt SSL. THis is an issue with RHEL and tomcat5 as well. I verified that SSL works on tomcat 6 but not tomcat 5. Both using the native library. Again, I can't see anything in the tomcat 5 log that indicates an attempt to use SSL although I've changed configuration accordingly.

Comment 5 Aleksandar Kostadinov 2009-03-14 06:56:13 UTC
Sorry, yet another clarification to the issue #3. I am able to access tomcat 5 configured for ssl on port 8443 but only through HTTP, not HTTPS.

Comment 6 Mladen Turk 2009-03-14 07:48:04 UTC
Alex,
Can you attach all the configuration you made for openssl, as well as certificates and keys
I suspect this is access problem
can you for start enable read acces to the tomcat group to
/opt/redhat/ews/etc/ssl and all child directories.

Regards

Comment 7 Aleksandar Kostadinov 2009-03-16 07:22:06 UTC
I'll attach requested files today. But it doesn't seem like anything permissions related since tomcat6 is working fine.


Comment 8 Aleksandar Kostadinov 2009-03-16 14:33:54 UTC
tomcat5_server.xml is the server.xml I'm using. I don't do any openssl configuration. It is what postinstall script leaves it. Certificate is a plain self-signed certificate in my home directory that I'm using for testing. It works with tomcat6.

Comment 9 Aleksandar Kostadinov 2009-03-16 14:33:54 UTC
Attachment: Added: tomcat5_server.xml


Comment 10 Aleksandar Kostadinov 2009-03-16 14:35:32 UTC
Attaching the certificates for completeness. 

Comment 11 Aleksandar Kostadinov 2009-03-16 14:35:32 UTC
Attachment: Added: certs.zip


Comment 12 Mladen Turk 2009-03-16 16:22:58 UTC
Seems to me you are missing the
SSLEngine="on" inside https connector.
It's a little fifferent setup for Tomcat5 and Tomcat6
Tomcat6 needs SSLEngine="on" in lifecycle listener declaration



Comment 13 Aleksandar Kostadinov 2009-03-16 16:38:05 UTC
Hmm, odd that I didn't noticed one is SSLEnabled and the other SSLEngine. Changing to SSLEngine for tomcat5 shows the following in the logs:

SEVERE: Error initializing endpoint
org.apache.tomcat.jni.Error: This function has not been implemented on this plat
form
        at org.apache.tomcat.jni.SSL.initialize(Native Method)
        at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:635)


Comment 14 Mladen Turk 2009-03-16 17:49:54 UTC
I'm not receiving this error, although I can confirm it doesn't work with Tomcat5.
I'll check if it works with stock Tomcat 5.5.


Comment 15 Mladen Turk 2009-03-16 19:21:03 UTC
This is really weired issue.
The same native works with Tomcat6 on Solaris, but doesn't work on Tomcat5
However the RHATews generic Linux build works with Tomcat5, so its probably
some initialization issue that manifest only on Solaris/Tomcat5.
Since this was never reported neither on Tomcat dev nor user lists,
I'll need to make some debugging and see what might be the problem.

However, not sure if it's realistic that this issues will be resolved in
timely fashion, so we should either consider this as a missing feature on
Solaris/Tomcat5 or leave it as a bug.


Comment 16 Mladen Turk 2009-03-17 10:44:58 UTC
The server.xml configuration was wrong
Tomcat5.5 requires
SSLEngine="on" and SSLEnabled="true" inside Connector tag.
Modified the server.xml on dev66 and it works now.



Comment 17 Aleksandar Kostadinov 2009-03-17 12:43:24 UTC
.cgi?case_id=5559 but it will be worth this to be explained in some EWS documentation as well. I will leave that to the PM team to decide if needed.

Comment 18 Mladen Turk 2009-03-17 12:50:24 UTC
Well it is explained in official Tomcat docs. The setup is different for 6.0 and 5.5.
Althought the SSLEnabled is missing from
http://tomcat.apache.org/tomcat-5.5-doc/apr.html
documentation. I'll add that to the ASF site, cause it wasn't updated
when this directive was added.
For 6.0 http://tomcat.apache.org/tomcat-6.0-doc/apr.html
everything is explained correctly.

Comment 19 Aleksandar Kostadinov 2009-03-17 12:55:48 UTC
Now I see my thanks to you, Mladen, were truncated from the original comment? So thank you for your help! :)