actually tomee can be completely deleted it will still works Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau
2014-02-10 16:09 GMT+01:00 Thiago Veronezi <[email protected]>: > Hi, > please note that "tomee" and "webaccess" are two different applications. > > "tomee" is what makes it possible to do something like. > > Properties p = new Properties(); > p.put(Context.INITIAL_CONTEXT_FACTORY, > "org.apache.openejb.client.RemoteInitialContextFactory"); > p.put(Context.PROVIDER_URL, "http://localhost:8080/tomee/ejb"); > Context ctx = new InitialContext(p); > > See "http://localhost:8080/*tomee*/ejb" > > If you open http://localhost:8080/tomee/, you will see the tomee installer. > You don't use this guy if you use the bundled version of TomEE > [apache-tomee-1.6.0-webprofile.tar.gz, apache-tomee-1.6.0-jaxrs.tar.gz or > apache-tomee-1.6.0-plus.tar.gz] instead of the drop-in one > [tomee-webapp-1.6.0.war or tomee-plus-webapp-1.6.0.war]. > > http://tomee.apache.org/installation-drop-in-war.html > > "webaccess" is the web application that provides the console. I'll create > an installation guide for it. > Basically you run your tomee server and drop the tomee-webaccess war file [ > http://www.apache.org/dyn/closer.cgi/tomee/tomee-1.6.0/tomee-webaccess-1.6.0.war] > under the webapps folder. > Remember that the context of this app will be the name of your war file. > You can rename it if you want. > > The console is no longer part of the base distribution due to its size. We > want to keep TomEE as lightweight as possible. ~6mb of extra jars (groovy > runtime and external JS and CSS stuff) was a little bit too much. > > Please note that "webaccess" requires tomee jax-rs or tomee-plus to run. I > will remove this dependency asap. > > Ah... I have a new script for you. This will retrieve your beans and list > their methods. > > // > ****************************************************************************** > > import java.util.Properties > import javax.naming.Context > import javax.naming.InitialContext > import java.lang.reflect.Method > > def methodToString(Method method) { > def returnType = method.returnType.name > def name = method.name > def params = method.parameterTypes*.name > "${returnType} ${name} (${params.join(' ,')})" > } > > def printNames(String root, Context c) { > def beans = c.list(root)?.findAll({ > !it.name.contains('!') > }) > beans?.each({ > def bean = c.lookup("${root}/${it.name}") > if (Context.isInstance(bean)) { > println "[context] ${root}/${it.name}" > printNames("${root}/${it.name}", c) > } else { > println "[bean] ${root}/${it.name}" > bean.class.methods.each { m -> > if (m.declaringClass != Object) { > println ' ' + methodToString(m) > } > } > } > }) > } > > printNames('java:global', new InitialContext([ > (Context.INITIAL_CONTEXT_FACTORY): > 'org.apache.openejb.client.RemoteInitialContextFactory', > (Context.PROVIDER_URL): 'http://localhost:8080/tomee/ejb' > ] as Properties)) > > // > ****************************************************************************** > > > > > []s, > Thiago. > > > It's > > > > > On Mon, Feb 10, 2014 at 8:34 AM, wlad <[email protected]> wrote: > >> I tried next, but with no success: >> >> First, I have downloaded TomEE 1.6.0 version, and copied its "tomee" >> app/folder (/[tomee-1.6.0/webapps/tomee])/ to the webapps folder of >> /tomee-1.5.2/, one I am curently using. (of course, previously I have moved >> old "tomee" folder, from /tomee-1.5.2/webapps/ to safe place). >> With this, new "tomee" webapp I wasn't able not even to see that blank >> white >> page, with only black header at the top, and link to "Sign In" at the up >> right corner. And I had that page with old "tomee" webapp (1.5.2). >> >> Then, I tried with the /tomee-webaccess-1.6.0/, as you suggested, but same >> as with /tomee 1.6/. (Only this time I tried with >> *http://localhost:8080/tomee-webaccess-1.6.0* address) >> >> After all, I moved back "tomee" folder that was there (at least I get tomee >> gui's login page) >> >> Is it normal to have both /tomcat-users.xml/ and >> /tomcat-users.xml.original/ >> files in [tomee-x.y]/conf folder? >> >> It looks to me that server can't see this configuration file. Because not >> only "TomEE GUI" doesn't work, but also "Manager App", "Server Status", >> "Host Manager" doesn't log in. I am not really familiar with these things, >> may be (!) that I have set some setting, and changed server configuration. >> >> As I remember, earlier, I was using "tomee-1.6.0" and exactly because I >> couldn't see TomEE GUI, and deployed beans, I tried with 1.5.2 version >> where >> this option was working fine. But now, don't know why its not working. >> >> >> >> >> >> >> -- >> 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-tp4667582p4667599.html >> Sent from the OpenEJB User mailing list archive at Nabble.com. >>
