Don't know if this is how it is suppose to be, but here is what I found out:

I wasn't able to log in to tomee's services/apps because I have added
"Realm" definition to [tomee]/conf/server.xml file (I need that Realm for my
application). 
Here is how that tag looks like:

/<Realm className="org.apache.catalina.realm.JDBCRealm"
connectionName="root" connectionPassword="secret"
connectionURL="jdbc:mysql://localhost:3306/myAppDB"
driverName="com.mysql.jdbc.Driver" roleNameCol="type" userCredCol="password"
userNameCol="username" userRoleTable="role" userTable="user"/>/

In application I am working on, I use form based declarative autentication
and authorization, and thats why I need this Realm be there.

With added Realm tag in server.xml, my application works fine, I am
communicating with database. But TomEE's services are not working then. If I
remove this line from server.xml, I can log in to TomEE's services (TomEE
GUI, Server Status, Manager App, Host Manager), but then my application
cannot access database.
And its same situation with both tomee-plus-1.5.2 and tomee-plus-1.6.0. 
I tried adding this same Realm definition to server.xml.original also so
both files are same, but again same scenario. I can access tomee's
apps/sevices only if there aren't any Realm tags added in these files.



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Apache-TomEE-unable-to-access-TomEE-GUI-Server-Status-Manager-App-and-Host-Manager-services-tp4667582p4667628.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to