2012-04-18 6 views
2

openEJB의 TomEE ++를 사용하여 엔터프라이즈 Java 응용 프로그램을 실행하고 있습니다. 이 앱은 Eclipse Helios에서 시작됩니다. Eclipse에서 Tomcat을 담당 할 수 있도록 '서버 위치'를 변경했습니다. 이클립스 내에서 응용 프로그램을 시작하면OpenEJB가 내 웹 응용 프로그램의 전후에 시작하는 경우 누군가이 로그 파일에서 알 수 있습니까?

, 나는 내가 OpenEJB를 웹 애플리케이션이, 내 웹 애플리케이션 후로드 호출되고 있다는 사실에서 올 수도 생각하고 이상한 JPA 오류를 얻을 '슬라이드'내가 가진

openejb가 0의 값을 가지는 동안 web.xml에서 webapp의 webapp의 시작시로드 값을 0으로 변경했습니다.

콘솔 출력에서 ​​openejb가 시작되기 전이나 후에 시작하는지 알 수 없습니다. 신청. 로그는 조금 모순 된 것 같습니다.

오른쪽 시작 부분에서, 나는 시작되지 않았다 OpenEJB를 제안 할 것

ERROR: OpenEJB webapp was not found 

을 볼 수 있습니다. 그러나 곧 그 후 나는 그런 내 제한된 지식 OpenEJB를에서 올 것

INFO: OpenWebBeans Container is starting... 

같은 라인을 참조하십시오.

그런 다음 광산을 비롯한 여러 앱을 시작하는 등 여러 가지 일이 발생합니다. 그 후

TomcatWebAppBuilder.start /slides 

, 나는 정확히 무슨 일이 일어나고 있는지 OpenEJB를 그래서

TomcatWebAppBuilder.start /openejb 

를 시작되었음을 시사 라인을, 발견? openejb는 신청 전후에 시작합니까?

Apr 18, 2012 1:04:46 PM org.apache.catalina.core.AprLifecycleListener init 
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 
Apr 18, 2012 1:04:47 PM org.apache.tomcat.util.digester.SetPropertiesRule begin 
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:slides' did not find a matching property. 
ERROR: OpenEJB webapp was not found 
Apr 18, 2012 1:04:47 PM org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["http-bio-8080"] 
Apr 18, 2012 1:04:47 PM org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["ajp-bio-8009"] 
Apr 18, 2012 1:04:48 PM org.apache.openejb.cdi.CdiBuilder initializeOWB 
INFO: Created new singletonService [email protected] 
Apr 18, 2012 1:04:48 PM org.apache.openejb.cdi.CdiBuilder initializeOWB 
INFO: succeeded in installing singleton service 
Apache OpenEJB 4.0.0-beta-2 build: 20120115-08:26 
http://openejb.apache.org/ 
Apr 18, 2012 1:04:52 PM org.apache.openejb.cdi.CdiBuilder build 
INFO: existing thread singleton service in SystemInstance() [email protected] 
Apr 18, 2012 1:04:53 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container is starting... 
Apr 18, 2012 1:04:53 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [CdiPlugin] 
Apr 18, 2012 1:04:53 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] 
Apr 18, 2012 1:04:53 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints 
INFO: All injection points were validated successfully. 
Apr 18, 2012 1:04:53 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container has started, it took [142] ms. 
Apr 18, 2012 1:04:53 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 7751 ms 
Apr 18, 2012 1:04:53 PM org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina 
Apr 18, 2012 1:04:53 PM org.apache.catalina.core.StandardEngine startInternal 
INFO: Starting Servlet Engine: Apache Tomcat/7.0.21 
TomcatWebAppBuilder.start /slides 
[severity=ERROR,message=unexpected element (uri:"", local:"global"). Expected elements are <{http://jboss.org/xml/ns/javax/validation/configuration}constraint-validator-factory>,<{http://jboss.org/xml/ns/javax/validation/configuration}property>,<{http://jboss.org/xml/ns/javax/validation/configuration}traversable-resolver>,<{http://jboss.org/xml/ns/javax/validation/configuration}constraint-mapping>,<{http://jboss.org/xml/ns/javax/validation/configuration}message-interpolator>,<{http://jboss.org/xml/ns/javax/validation/configuration}default-provider>,locator=[node=null,object=null,url=null,line=13,col=13,offset=-1]] 
[severity=ERROR,message=unexpected element (uri:"", local:"global"). Expected elements are <{http://jboss.org/xml/ns/javax/validation/configuration}constraint-validator-factory>,<{http://jboss.org/xml/ns/javax/validation/configuration}property>,<{http://jboss.org/xml/ns/javax/validation/configuration}traversable-resolver>,<{http://jboss.org/xml/ns/javax/validation/configuration}constraint-mapping>,<{http://jboss.org/xml/ns/javax/validation/configuration}message-interpolator>,<{http://jboss.org/xml/ns/javax/validation/configuration}default-provider>,locator=[node=null,object=null,url=null,line=13,col=13,offset=-1]] 
Apr 18, 2012 1:05:02 PM org.apache.openejb.cdi.CdiBuilder build 
INFO: existing thread singleton service in SystemInstance() [email protected] 
Apr 18, 2012 1:05:02 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container is starting... 
Apr 18, 2012 1:05:02 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [CdiPlugin] 
Apr 18, 2012 1:05:02 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] 
Apr 18, 2012 1:05:02 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints 
INFO: All injection points were validated successfully. 
Apr 18, 2012 1:05:02 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container has started, it took [13] ms. 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined 
Apr 18, 2012 1:05:03 PM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined 
Apr 18, 2012 1:05:05 PM org.apache.myfaces.shared.config.MyfacesConfig createAndInitializeMyFacesConfig 
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. 
Apr 18, 2012 1:05:05 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces 
WARNING: No mappings of FacesServlet found. Abort initializing MyFaces. 
Apr 18, 2012 1:05:06 PM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory manager 
TomcatWebAppBuilder.start /manager 
Apr 18, 2012 1:05:07 PM org.apache.openejb.cdi.CdiBuilder build 
INFO: existing thread singleton service in SystemInstance() [email protected] 
Apr 18, 2012 1:05:07 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container is starting... 
Apr 18, 2012 1:05:07 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [CdiPlugin] 
Apr 18, 2012 1:05:07 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] 
Apr 18, 2012 1:05:07 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints 
INFO: All injection points were validated successfully. 
Apr 18, 2012 1:05:07 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container has started, it took [9] ms. 
using context file /home/user/bin/tomcat/SlidesServer/apache-tomee-webprofile-1.0.0-beta-2/webapps/manager/META-INF/context.xml 
Apr 18, 2012 1:05:07 PM org.apache.myfaces.shared.config.MyfacesConfig createAndInitializeMyFacesConfig 
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. 
Apr 18, 2012 1:05:07 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces 
WARNING: No mappings of FacesServlet found. Abort initializing MyFaces. 
Apr 18, 2012 1:05:07 PM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory docs 
TomcatWebAppBuilder.start /docs 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.CdiBuilder build 
INFO: existing thread singleton service in SystemInstance() [email protected] 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container is starting... 
Apr 18, 2012 1:05:08 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [CdiPlugin] 
Apr 18, 2012 1:05:08 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints 
INFO: All injection points were validated successfully. 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container has started, it took [14] ms. 
Apr 18, 2012 1:05:08 PM org.apache.myfaces.shared.config.MyfacesConfig createAndInitializeMyFacesConfig 
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. 
Apr 18, 2012 1:05:08 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces 
WARNING: No mappings of FacesServlet found. Abort initializing MyFaces. 
Apr 18, 2012 1:05:08 PM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory ROOT 
TomcatWebAppBuilder.start 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.CdiBuilder build 
INFO: existing thread singleton service in SystemInstance() [email protected] 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container is starting... 
Apr 18, 2012 1:05:08 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [CdiPlugin] 
Apr 18, 2012 1:05:08 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints 
INFO: All injection points were validated successfully. 
Apr 18, 2012 1:05:08 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container has started, it took [6] ms. 
Apr 18, 2012 1:05:08 PM org.apache.myfaces.shared.config.MyfacesConfig createAndInitializeMyFacesConfig 
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. 
Apr 18, 2012 1:05:08 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces 
WARNING: No mappings of FacesServlet found. Abort initializing MyFaces. 
Apr 18, 2012 1:05:08 PM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory host-manager 
TomcatWebAppBuilder.start /host-manager 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.CdiBuilder build 
INFO: existing thread singleton service in SystemInstance() [email protected] 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container is starting... 
Apr 18, 2012 1:05:09 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [CdiPlugin] 
Apr 18, 2012 1:05:09 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints 
INFO: All injection points were validated successfully. 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container has started, it took [8] ms. 
using context file /home/user/bin/tomcat/SlidesServer/apache-tomee-webprofile-1.0.0-beta-2/webapps/host-manager/META-INF/context.xml 
Apr 18, 2012 1:05:09 PM org.apache.myfaces.shared.config.MyfacesConfig createAndInitializeMyFacesConfig 
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. 
Apr 18, 2012 1:05:09 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces 
WARNING: No mappings of FacesServlet found. Abort initializing MyFaces. 
Apr 18, 2012 1:05:09 PM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory openejb 
TomcatWebAppBuilder.start /openejb 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.CdiBuilder build 
INFO: existing thread singleton service in SystemInstance() [email protected] 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container is starting... 
Apr 18, 2012 1:05:09 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [CdiPlugin] 
Apr 18, 2012 1:05:09 PM org.apache.webbeans.plugins.PluginLoader startUp 
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints 
INFO: All injection points were validated successfully. 
Apr 18, 2012 1:05:09 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication 
INFO: OpenWebBeans Container has started, it took [9] ms. 
using context file /home/user/bin/tomcat/SlidesServer/apache-tomee-webprofile-1.0.0-beta-2/webapps/openejb/META-INF/context.xml 
Apr 18, 2012 1:05:09 PM org.apache.myfaces.shared.config.MyfacesConfig createAndInitializeMyFacesConfig 
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. 
Apr 18, 2012 1:05:09 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces 
WARNING: No mappings of FacesServlet found. Abort initializing MyFaces. 
OpenEJB Loader init-params: 
    There are no initialization parameters. 
Apr 18, 2012 1:05:10 PM org.apache.coyote.AbstractProtocol start 
INFO: Starting ProtocolHandler ["http-bio-8080"] 
Apr 18, 2012 1:05:10 PM org.apache.coyote.AbstractProtocol start 
INFO: Starting ProtocolHandler ["ajp-bio-8009"] 
Apr 18, 2012 1:05:10 PM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 16795 ms 
Apr 18, 2012 1:05:11 PM org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet [action] in context with path [/slides] threw exception [javax.ejb.EJBException: The bean encountered a non-application exception; nested exception is: 
    <openjpa-2.1.1-r422266:1148538 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: null 
FailedObject: Select s from SlideShow s [java.lang.String]] with root cause 

답변

2

톰캣/TomEE은 이클립스에서 시작될 때 JavaAgent를 사용하지 않는 이상 같은 소리 : 아래의 로그를 게시

. -javaagent vm 매개 변수를 통해 명령 행에 지정해야하는 openejb-javaagent jar 파일이 있습니다.

OpenJPA 바이트 코드 인핸서가 켜지고 모든 JPA 기능이 제대로 작동합니다. OpenJPA는 JPA 구현에 대한 하위 클래스 기반 접근 방식 (JPA 구현을위한 두 가지 방법 : 하위 클래스 화 엔티티 클래스 또는 바이트 코드 강화 엔티티 클래스)에 대한 지원이 제한되어 있으므로 vm 플래그가 -javaagent 인 경우 다소 효과가 있습니다. 예를 들어, Hibernate는 서브 클래 싱만을 사용하고 javaagent는 필요 없다.

바닐라 톰캣 시작 명령이 인수를해야합니다 :

/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java 
-Djava.util.logging.config.file=<tomcat-home>/conf/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.endorsed.dirs=<tomcat-home>/endorsed 
-classpath <tomcat-home>/bin/bootstrap.jar:<tomcat-home>/bin/tomcat-juli.jar 
-Dcatalina.base=<tomcat-home> 
-Dcatalina.home=<tomcat-home> 
-Djava.io.tmpdir=<tomcat-home>/temp 
org.apache.catalina.startup.Bootstrap 
start 

TomEE 하나 추가 -javaagent를해야합니다 설치는 OpenJPA이 그것을 필요로 (대신 최대 절전 모드를 사용하는 경우 생략 할 수 있습니다).

/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java 
-Djava.util.logging.config.file=<tomcat-home>/conf/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.endorsed.dirs=<tomcat-home>/endorsed 
-classpath <tomcat-home>/bin/bootstrap.jar:<tomcat-home>/bin/tomcat-juli.jar 
-Dcatalina.base=<tomcat-home> 
-Dcatalina.home=<tomcat-home> 
-Djava.io.tmpdir=<tomcat-home>/temp 
-javaagent:<tomcat-home>/lib/openejb-javaagent.jar 
org.apache.catalina.startup.Bootstrap 
start