Hi, That's a good starting point but it needs 2 enhancements: 1. We dont use log4j by default anymore so you have to configure the logging.properties 2. You should use tomee.xml instead of openejb.xml (same content)
- Romain Le 23 avr. 2012 11:20, "Anthony Fryer" <[email protected]> a écrit : > Not sure if this would help but here's an extract from our wiki about the > steps we use to setup tomee with eclipse... > > Configure a tomee server in eclipse > > 1. Download and install an Apache TomEE Web Profile server. > > 2. In eclipse, click on the Servers tab, right click and select > New->Server. > > 3. Select Apache->Tomcat v7.0 Server and click "Next >" > > 4. Set the "Tomcat installation directory" to the location of your > Apache TomEE Web Profile server installation. Click Next. > > 5. Add your webapp to the server. Click "Finish". > > 6. In the Servers tab, double click on your server to open up the > "Overview" page. Click on the "modules" tab > > 7. Click "Add External Web Module". In the "Add Web Module" dialog, for > document base, browse to <tomee_install_dir>/webapps/openejb. Set Path: to > "/openejb". Uncheck "Auto reloading enabled". Click OK. > > 8. Click on the <your web app> module and click the "Edit..." button. > Uncheck the "Auto reloading enabled" checkbox and click OK. Then click the > save button in eclipse so the server configuration gets saved. > > 9. Copy the openejb.xml and logging.properties files from the > <apache_tomee_install_dir>\conf folder into the folder created in eclipse > for your server configuration files (eg. > <eclipse_workdir>\Servers\apache-tomee-webprofile-1.0.0-beta-2 at > localhost-config). > > 10. Add the following to the end of logging.properties to enable openjpa > debug tracing to be written to the eclipse console... > > # openjpa logging > log4j.category.openjpa = info,C > log4j.category.openjpa.Tool = info > log4j.category.openjpa.Runtime = info > log4j.category.openjpa.Remote = info > log4j.category.openjpa.DataCache = info > log4j.category.openjpa.MetaData = info > log4j.category.openjpa.Enhance = info > log4j.category.openjpa.Query = info > log4j.category.openjpa.jdbc.SQL = trace > log4j.category.openjpa.jdbc.JDBC = trace > log4j.category.openjpa.jdbc.Schema = warn > > log4j.appender.C = > org.apache.log4j.ConsoleAppender > log4j.appender.C.layout = > org.apache.log4j.SimpleLayout > > 11. In eclipse, click on your webapp project, then select > "Project->clean". Hit OK. This will cause eclipse to clean and rebuild the > leaguemanager application. > > 12. In the Servers tab, right click on the server and select "Publish". > > 13. Start the server. > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/VOTE-OpenEJB-4-0-0-TomEE-1-0-0-staging-081-tp4577806p4579894.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com. >
