Ah, once you have the webaccess installed, you can retrieve your beans with this groovy script...
// ************************************************************************************************************** import java.util.Properties import javax.naming.Context import javax.naming.InitialContext def ctx = new InitialContext([ (Context.INITIAL_CONTEXT_FACTORY): 'org.apache.openejb.client.RemoteInitialContextFactory', (Context.PROVIDER_URL): 'http://localhost:8080/tomee/ejb', (Context.SECURITY_PRINCIPAL): 'tomee', (Context.SECURITY_CREDENTIALS): 'tomee' ] as Properties) ctx.list('java:global/jchat')?.each({ pair -> println pair.name }) // ************************************************************************************************************** Replace the credentials and 'java:global/jchat' accordingly. https://dl.dropboxusercontent.com/u/1459144/tomee-list/jndi_listing.png []s, Thiago. On Mon, Feb 10, 2014 at 7:13 AM, Thiago Veronezi <[email protected]>wrote: > Hi, > > The GUI of TomEE 1.5.2 is very buggy. Can you try the version 1.6.0? > Use TomEE JAX-RS or Plus and drop the GUI war [ > http://www.apache.org/dyn/closer.cgi/tomee/tomee-1.6.0/tomee-webaccess-1.6.0.war > ] > You should create a user with the "tomee-admin" role. > > []s, > Thiago. > > > > On Mon, Feb 10, 2014 at 5:28 AM, wlad <[email protected]> wrote: > >> I am working with some JEE web app using Apache TomEE >> (apache-tomee-plus-1.5.2 on localhost) and trying to access these services >> from links on TomEE's home page. >> >> Now, I remember that earlier when I was starting with developing JEE >> apps, I >> was deploying some simple exercises to TomEE server, apps were mostly >> about >> some simple session beans and entities communicating with database. Then, >> I >> have edited [tomee]/conf/tomcat-users.xml file, configured specific roles, >> username and password (concretely username=tomee and password=tomee), and >> I >> was able to go to localhost:8080/tomee (Tomcat GUI), sign in with these >> credentials and I could see which beans are deployed to server, or which >> web >> services are there. >> >> Now, when I go to [tomee]/conf folder, there is tomcat-users.xml file and >> there is also tomcat-users.xml.original (which is I believe automatically >> generated file by TomEE at the moment when I had edited tomcat-users.xml) >> >> In both these files, there are following lines: >> >> * <role rolename="admin-gui"/> >> <role rolename="tomee-admin"/> >> <role rolename="manager-gui"/> >> <user password="tomee" roles="tomee-admin,manager-gui,admin-gui" >> username="tomee"/> >> * >> >> In Eclipse, for server setting (Server Overview), option /Use Tomcat >> installation/ is selected. Deploy path is set to: /wtpwebapps/. >> >> I am currently working with JEE webapp, that have several session beans >> and >> entities, which I am persisting (wtih OpenJPA) to MySQL database. This app >> is deployed to server using ant tool. Application files and folders are >> included to *app.war*file, and then deployed to /[tomee]/webapps/ >> directory. >> Application is working fine, I would like to know why can't I go to >> *localhost:8080/tomee*, sign in and see deployed session beans? >> >> You can see tomee's configuration file content above. Everytime I try to >> sign in, I am getting message "Bad user or password. Please try again." >> Why am I not able to access TomEE's services ("TomEE GUI", "Server >> Status", >> "Manager App" and "Host Manager")? >> >> >> >> -- >> 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-tp4667582.html >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> > >
