ear

I want to know value intersections between binary image and circle

对着背影说爱祢 提交于 2019-12-13 22:20:51
问题 clc clear a = imread('004_1.bmp'); I2 = imcrop(a,[80 17 101 180]); [i,j]=size(I2); x_hist=sum(I2,1); y_hist=(sum(I2,2))'; x=1:j ; y=1:i; centx=sum(x.*x_hist)/sum(x_hist) centy=sum(y.*y_hist)/sum(y_hist) BW = edge(I2,'Canny',0.329); bw2 = imcomplement(BW); circle = int32([centx,centy,40]); shapeInserter = vision.ShapeInserter('Fill',false); release(shapeInserter); set(shapeInserter,'Shape','Circles'); K = step(shapeInserter,bw2,circle); figure, imshow(K) I have this program and I want to know

Log4j2.xml configuration file location for EAR

拜拜、爱过 提交于 2019-12-13 19:05:23
问题 I have a Java EE application packaged with ejbs and war. Following is the structure of the EAR: myapp.ear -lib -META-INF -ejbjar1.jar -ejbjar2.jar -mywebapp.war I need to use log4j2 so I have tried to configure it at first from the web.xml by following instructions to initialize Log4j 2 in a web application but when I am creating the Logger in an EJB it is throwing: ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. The

Add .mf & .xml files in META-INF directory inside a Maven built EAR

依然范特西╮ 提交于 2019-12-13 13:33:26
问题 I have arbitrary .xml & .mf files that i have to add in the META-INF folder inside the ear itself. Build is done using maven2.2.1. Simply adding those files under ${basedir}/src/main/application/META-INF/ works fine, but it doesn't fit my needs. Is there another way to do such thing? I tried: <build> <resources> <resource> <directory>G:/WS/vermeg/ear2/XML's</directory> <targetPath>META-INF</targetPath> </resource> </resources> </build> but this doesn't add my xml files under the EAR itself. I

JPA entity manager not correctly injected - Weblogic

╄→尐↘猪︶ㄣ 提交于 2019-12-13 05:47:39
问题 I have an EAR app (to deploy on Weblogic 12c), that has a "persist" componenent. The "persist" component uses JPA (implementation: EclipseLink) to persist the objects. The bean that uses the entityManager is declared as @Stateless and the entity manager is injected though the @PersistenceContext annotation. The problem is, i have an NullPointerException each time i try to access the entityManager (meaning, he has not been correctly injected). @Stateless @TransactionManagement

'Use custom context root' does not work for deployment EAR application to GlassFish in IntelliJ IDEA Server Run Configuration

孤者浪人 提交于 2019-12-13 05:10:14
问题 I changed the context root for the ear artifact. I opened the 'Deployment' tab of the Server Run Configuration, check 'Use custom context root' and enter the desired value into the field: /T4000_Enterprise But the Application Name in GlassFish stayed equal to the name of Output directory(or the Package name): T4000_Enterprise-3.08.HEAD-SNAPSHOT What is wrong? Can I fix it? GlassFish Server Open Source Edition 4.1 (build 13) IntelliJ IDEA 2018.2 EAP (Ultimate Edition) Build #IU-182.3569.1,

MyBatis CDI + Container-Managed Transaction

假装没事ソ 提交于 2019-12-13 03:45:43
问题 I would like to use mybatis with container-managed transaction in my aplication. I use mybatis 3.4.2 and mybatis-cdi 1.0.0. My code works but at the moment I open and close sessions manually and I do not know how to inject either SqlSession or Mapper to my EJB. It seems that mybatis-cdi does not do its job properly in my case. That is my deployment structure: EAR +--- commons.jar (interfaces, POJOs) +--- ejb.jar (stateless EJBs + MyBatis mapper + session factory) +--- web.war (demo servlet

How to call other EAR's bean method

僤鯓⒐⒋嵵緔 提交于 2019-12-13 02:26:57
问题 I have two EARs ( EAR-1 , EAR-2 ) in JBOSS application server. In EAR-2, I have a stateless session bean: TestTimerBean In this bean, I have a method: startTimer() Now I would like to access/call this method: startTimer() from EAR-1 . Could any one suggest me on how can I achieve this? 回答1: The first step you have to do is to make a lookup of EJB. In JBoss you can access using following: context/Bean_Name/remote where context is your ear name the Bean_Name is the remote interface. Hope this

ClassNotFoundException dependent on JDK7 update version only?

拥有回忆 提交于 2019-12-12 18:09:02
问题 I inherited a JBOSS 4.2.3.GA . ear project in which everything loads and runs fine if I build it with JDK 7u45, but fails to load & run early in the JBoss Bootstrap if I build it with any newer update of JDK 7 (e.g. 7u76, 7u79, 7u80). The JBOSS server itself runs on Java 1.7.0_45. The logged reason for the failure is a ClassNofFoundException for a class that is actually there (even for the failing .ear): log4j:ERROR Could not create the Layout. Reported error follows. java.lang

How to get CDI in war AND EJB running if both are bundled in an EAR

会有一股神秘感。 提交于 2019-12-12 17:15:26
问题 I'm trying to build an enterprise application which is assembled in an EAR. This application should contain one or more ejb-jars and one or more war 's. I want to make heavily use of CDI , Interceptors and Producers. In the first step I want to use a Log-Producer which is placed in the ejb-jar in all areas of the application. What I did is creating a beans.xml in the ejb/META-INF and the war/WEB-INF/ folders. Creating the EAR works. But deploying to the Glassfish Server (3.1) fails with a

Maven Integration for RAD7.5 along with automatic Websphere compatible EAR creation

a 夏天 提交于 2019-12-12 10:53:25
问题 I want to understand the entire process for integrating Maven with RAD Version 7.5 and creation of the EAR file using maven. I have been able to successfully integrate Maven with RAD 7.5 using. I also integrated maven-ear plugin with my maven project and I can create the EAR using mvn package command from Run Configurations. However, that EAR cab not be deployed to Websphere Application Server. So, what I want to understand is: Is there a way to create an EAR that can be deployed to Websphere