Re: how modify the login.config file for get 3 jaas different for 3 web different apps
https://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html#Security_Lifecycle_Listener_-_org.apache.catalina.security.SecurityListener https://tomcat.apache.org/tomcat-7.0-doc/config/realm.html#JAAS_Realm_-_org.apache.catalina.realm.JAASRealm Le 15 mai 2015 00:57, mauro2java2011 mauro2java2...@gmail.com a écrit : But please *Listener className=org.apache.catalina.security.SecurityListener / * what work it run? It is other that jass? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/how-modify-the-login-config-file-for-get-3-jaas-different-for-3-web-different-apps-tp4674820p4674825.html Sent from the TomEE Users mailing list archive at Nabble.com.
Re: TomEE Ear Logback revisit
Hi, I've been playing around some more and it's definitly a classloading issue. This is my observations: 1. skipped logback on tomee global 2. added an logback-config jar which I unpack in the ear (also added includeInApplicationXmltrue/includeInApplicationXml in jarModule to get it working) 3. I kind of pushing initialization a little bit here since having two schedulers running in two different projects (at the same time) an this generates a: SEVERE - The bean instance WebScheduler threw a system exception:java.lang.LinkageError: loader (instance of org/apache/openejb/util/classloader/URLClassLoaderFirst): attempted duplicate class definition for name: org/slf4j/LoggerFactory If one of them is startup, initialization is OK. br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-Ear-Logback-revisit-tp4674809p4674830.html Sent from the TomEE Users mailing list archive at Nabble.com.
Re: TomEE Ear Logback revisit
well this issue is maybe something else (we fixed a concurrent error for 1.7.2 IIRC, can be linked), but logback ch.qos.logback.core.util.Loader#getResource ignores classloader hierarchy so you can't have 2 concurrent configs in a tree Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-05-15 10:34 GMT+02:00 hwaastad he...@waastad.org: Hi, I've been playing around some more and it's definitly a classloading issue. This is my observations: 1. skipped logback on tomee global 2. added an logback-config jar which I unpack in the ear (also added includeInApplicationXmltrue/includeInApplicationXml in jarModule to get it working) 3. I kind of pushing initialization a little bit here since having two schedulers running in two different projects (at the same time) an this generates a: SEVERE - The bean instance WebScheduler threw a system exception:java.lang.LinkageError: loader (instance of org/apache/openejb/util/classloader/URLClassLoaderFirst): attempted duplicate class definition for name: org/slf4j/LoggerFactory If one of them is startup, initialization is OK. br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-Ear-Logback-revisit-tp4674809p4674830.html Sent from the TomEE Users mailing list archive at Nabble.com.
Re: how modify the login.config file for get 3 jaas different for 3 web different apps
You are right Feel free to edit the page Le 15 mai 2015 19:30, mauro2java2011 mauro2java2...@gmail.com a écrit : please a last thing: from the page of tomee jaas http://tomee.apache.org/tomee-jaas.html http://tomee.apache.org/tomee-jaas.html i read: Add to your CATALINA_OPTS the java.security.auth.login.config system property: -Djava.security.auth.login.config=$CATALINA_BASE/conf/login.config Configure your realm in server.xml file ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.tomee.loader.OpenEJBListener / Listener className=org.apache.catalina.security.SecurityListener / Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=quot;org.apache.catalina.realm.JAASRealmquot; appName=quot;lt;bPropertiesLoginModule* userClassNames=org.apache.openejb.core.security.AbstractSecurityService$User roleClassNames=org.apache.openejb.core.security.AbstractSecurityService$Group /Realm Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true / /Engine /Service /Server Configure your login.config file *PropertiesLogin* { org.apache.openejb.core.security.jaas.*PropertiesLoginModule* required Debug=false UsersFile=users.properties GroupsFile=groups.properties; }; i think that from that instruction it present a error: Realm className=quot;org.apache.catalina.realm.JAASRealmquot; appName=quot;lt;bPropertiesLoginModule* userClassNames=org.apache.openejb.core.security.AbstractSecurityService$User roleClassNames=org.apache.openejb.core.security.AbstractSecurityService$Group /Realm but into login.config file : *PropertiesLogin* { org.apache.openejb.core.security.jaas.*PropertiesLoginModule* required Debug=false UsersFile=users.properties GroupsFile=groups.properties; }; the appName is PropertiesLogin and not PropertiesLoginModule . the PropertiesLoginModule is the name of class org.apache.openejb.core.security.jaas.*PropertiesLoginModule its a errors typoo or is ok form the page? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/how-modify-the-login-config-file-for-get-3-jaas-different-for-3-web-different-apps-tp4674820p4674832.html Sent from the TomEE Users mailing list archive at Nabble.com.