![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||
![]() |
![]() |
![]() |
Index | News | FAQ | Download | Lists | Issues![]() ![]() |
||||||||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||
![]() |
OverviewGeneralConfigurationServersIntegrationsCommunityFeeds
|
Install openejb.warOnce Tomcat has been installed, the OpenEJB plugin for Tomcat can be installed. The commands in this example are executed from within the Tomcat installation directory. Unpack OpenEJB Tomcat plugin in Tomcat webapps directory
Due to the structure of war files, you must create a new directory for OpenEJB, change to the new directory and execute the unpack command from within the new directory. If you get this wrong, it is difficult to undo, so follow the steps closely. Add the OpenEJB listener to TomcatAll Tomcat listener classes must be available in the Tomcat common class loader, so the openejb-loader jar must be copied into the Tomcat lib directory. Add the following highlighted lines to your conf/server.xml file to load the OpenEJB listener: conf/server.xml <!-- Note: A "Server" is not itself a "Container", so you may not <!--APR library loader. Documentation at /docs/apr.html --> Update the Tomcat annotations-api.jar fileTomcat contains an old non-compliant version of the javax.annotation classes and these invalid classes must be updated so OpenEJB can process annotations. Simply, replace the annotations-api.jar in the Tomcat lib directory with the updated annotations-api.jar in the OpenEJB war. Add OpenEJB javaagent to Tomcat startupOpenJPA, the Java Persistence implementation used by OpenEJB, currently must enhanced persistence classes to function properly, and this requires the installation of a javaagent into the Tomcat startup process. First, copy the OpenEJB JavaAgent jar into the lib directory. Simply, add the following highlighted lines to the bin/catalina.bat (Windows) or bin/catalina.sh (Unix) file to enable the OpenEJB javaagent: NOTE: The example above is an excerpt from the middle of the bin/catalina.sh file. Search for "Execute" in the file to locate the correct position in the file to add the new lines. |
|||||||||||||||||
![]() |
![]() |
||||||||||||||||||
![]() |
![]() |
||||||||||||||||||
![]() |
![]() |
||||||||||||||||||
![]()
Powered by Atlassian Confluence.
|