tomee

What's the difference between localhost.log, catalina.log, manager.log, host-manager.log ?

ぐ巨炮叔叔 提交于 2019-12-04 09:08:15
问题 I'm using Tomee. The logs folder contains files like this localhost_access_log.2016-12-02.txt localhost.2016-12-02.log catalina.2016-12-02.log host-manager.2016-12-02.log manager.2016-12-02.log I was looking for an explanation in the documentation but could find anything. It's my understanding that those localhost files log only the 'host computer' activity. It this right? What is the difference between these file? Do they record different types of messages? 回答1: you can find all detail in

TomEE :- Caused by: java.lang.RuntimeException at org.apache.xbean.asm5.MethodVisitor.visitTypeAnnotation(Unknown Source)

白昼怎懂夜的黑 提交于 2019-12-04 04:21:42
I have a spring mvc web application (maven). It runs on JDK 1.7 perfectly , but the error occurred when i try with 1.8. Similar question asked here . Where they moved back to 1.7. But i want to run on 1.8. How can i do that ? i also hear ASM 5 can run it (Not sure). Where do i suppose to change dispatcher servlet or web.xml or spring version ? java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/gurusahakari]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at

What's the difference between localhost.log, catalina.log, manager.log, host-manager.log ?

怎甘沉沦 提交于 2019-12-03 01:59:20
I'm using Tomee. The logs folder contains files like this localhost_access_log.2016-12-02.txt localhost.2016-12-02.log catalina.2016-12-02.log host-manager.2016-12-02.log manager.2016-12-02.log I was looking for an explanation in the documentation but could find anything. It's my understanding that those localhost files log only the 'host computer' activity. It this right? What is the difference between these file? Do they record different types of messages? Romain Manni-Bucau you can find all detail in conf/logging.properties and conf/server.xml for the access log. In short catalina is the

Random JSF error: no saved view state could be found

Deadly 提交于 2019-12-02 16:31:45
问题 I have a very strange error: No saved view state could be found for the view identifier: /mypage.xhtml The problem is that it appears randomly, to just ~10% of the users/executions. Application server: Apache Tomee 1.5.2 stable / 1.6.0-2013.09.20 dev (It happens on both). I use the MyFaces distribution that comes with each of them, so 2.1.10 / 2.1.12, so nothing new added. Part of web.xml: <context-param> <param-name>org.apache.myfaces.USE_ENCRYPTION</param-name> <param-value>false</param

p:datatable filter: cannot validate component with empty value

只愿长相守 提交于 2019-12-02 07:34:29
Is there a way to filter a p:datatable column by clicking on the text inside and making this text the filter ? In other words, if I click on a session ID, I would like the datatable to filter this column by the clicked ID, as if I had entered it manually in the filter above ? I am using Primefaces 6 UPDATE This is my complete Datatable with the suggested solution: <p:dataTable id="tablealltx" var="transaction" value="#{pastTxModel.txList}" paginator="true" rows="20" sortBy="#{transaction.createdDate}" sortOrder="descending" resizableColumns="true"> <p:column filterBy="#{transaction.session}"

Arquillian integration test code coverage issue with Jacoco

浪尽此生 提交于 2019-12-02 04:16:25
I am doing integration testing using arquillian and tomee remote plugin. it is working good. But my code coverage is not working. I am using Jacoco plugin for code coverage. Getting Exception in my Java class java.lang.instrument.IllegalClassFormatException: Error while instrumenting com/demo/EmpService How to do code coverage in remote container using Jacoco ? Note: I have passed javaagent ( argLine ) to server catalina opts in integration phase. I am injecting my bean in test class and trying to cover test cases. Test case is passed. But no code coverage and getting exception EmpService:

REST+EJB+JPA 框架在 Eclipse+TomEE 的开发环境搭建

送分小仙女□ 提交于 2019-12-01 16:34:36
Apache TomEE结合了众多开源Java EE的实现,诸如GlassFish、JBoss和Apache Geronimo,同时也是仅有的6个通过认证的JavaEE引擎之一。 一、准备工作 下载TomEE, http://mirrors.hust.edu.cn/apache/tomee/tomee-1.7.1/apache-tomee-1.7.1-plume.zip ,该版本内核为Tomcat 7,解压即可。 下载Eclipse for JavaEE, 必须是Kepler或以上版本 ,否则不支持Tomcat 7 jdk1.7或以上版本 + Maven 3.x 二、环境搭建步骤及关键代码 1、Eclipse+TomEE 1) 启动Eclipse,菜单Window-Preference-Server-Runtime Environment-Add,增加TomEE(与增加tomcat方法相同); 2) Window-Show View-Servers,增加Server,选择上一步的TomEE; 3) 双击上一步中的Server,勾选如下内容并保存: 增加后需要手动将 tomee.xml和system.properties 导入(import - File System)到localhost-config文件夹下。 4) 创建TomEE数据源:在Servers项目中的“TomEE

@SessionScoped CDI bean is a different Instance when injected

两盒软妹~` 提交于 2019-12-01 06:52:23
My config is a bean that I inject in my code wherever I need it. However, when injected, I get a new instance of the bean instead of the one from the session. My bean: @Named @SessionScoped public class TestModel implements Serializable { private static final long serialVersionUID = 4873651498076344849L; private String version; public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public void changeVersion() { this.version = "Version 2"; System.out.println("New version : " + version + ", Object : " + this); } } When injected in

why EntityManager is null?

旧街凉风 提交于 2019-11-30 20:08:44
In my web applicaton I use OpenJPA on Apache Tomcat (TomEE)/7.0.37 server. I use Netbeans to auto generate class ("Entity Class from database..." and "Session Beans From Entity Class..."). At SessionBean (for example UserFacade) i want to get EntityManager: @Stateless public class UserFacade extends AbstractFacade<User> { @PersistenceContext(unitName = "CollDocPU") private EntityManager em; @Override protected EntityManager getEntityManager() { return em; } } but when i get it by above way I get null. When I make it by: @Override protected EntityManager getEntityManager() {

Bean not instantiated

强颜欢笑 提交于 2019-11-29 17:59:28
Platform I am using : Fedora 20; mariadb-5.5.34-2.fc20.x86_64; Eclipse Kepler Service Release from www.eclipse.org; Apache TomEE plus 1.6.0. I am implementing example See here and I am trying to manage to work the login interface. My problem is that the Java Bean of Login.xhtml has not been instantiated. How is it possible? I am quite familiar with java Beans, I checked for errors and the example comes from an expert Java programmer. I found out this trouble because I did not manage to work the login, and the debugger showed no variables. Eclipse: no shown variables in debugging Java EE I