ear

How do I correctly use SNAPSHOTS dependencies with EARs and EJBs

半城伤御伤魂 提交于 2019-12-23 19:24:37
问题 I am trying to build an EJB in an EAR. My EJB has dependencies on SNAPSHOTS. So when I build the EAR my structure looks like this: my-ear-1.0.0-SNAPSHOT.ear + META-INF - application.xml - MANIFEST.MF - my-ejb-1.0.0-SNAPSHOT.jar - third-party-lib-1.0.0-SNAPSHOT.jar However, when using the maven-ejb-plugin to generate its MANIFEST.MF: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ejb-plugin</artifactId> <version>2.3</version> <configuration> <archive> <manifest>

Glassfish error while deploying ear web application

风流意气都作罢 提交于 2019-12-23 15:17:31
问题 I'm walking with this error several weeks, i've never work with java web applications so i'm really lost on this. My setup is: Glassfish 5.0 Netbeans IDE 8.2 Java 8 Update 181 (64-bit) Java 10.0.2 (64-bit) Java SE Development Kit 8 Update 181 (64-bit) Java(TM) SE Development Kit 10.0.2 (64-bit) The error is the following: Grave: Exception while deploying the app [ociumfinal-ear] : Cannot resolve reference [Local ejb-ref name=chat.ChatUsers/usuarioEjb,Local 3.x interface =com.eventos

Glassfish 3 + ear + logback.xml

有些话、适合烂在心里 提交于 2019-12-23 10:03:04
问题 I'm using logback in an EAR-File which contains a JAR (ejb) and a WAR. This should run on a Glassfish v3 Server. Everything works, except the loading of the logback.xml. This can't be found. I build the Project with Netbeans. The used external libs are in the lib-Directory of the EAR (Which shouldn't make a difference where they are...). I've planed to put the logback.xml-File in the root-Directory or another Subdirectory in the EAR. The Classpath is set in the Manifest-Files of the JAR and

How to add a file to EAR META-INF folder - Maven

安稳与你 提交于 2019-12-23 06:57:35
问题 I want to move a startup MBEAN file (startup-client-service.xml) from my EJB > META-INF , to EAR > META-INF folder. I tried with the maven-resources-plugin plugin but it just copy the file from EJB > META-INF to Target in ear folder. But in built ear the startup-client-service.xml file is not available in META-INF How can I move my startup file to META-INF into ear > META-INF ? This is the pom file of ear. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0

Updating .ear file on websphere (6.1) still runs old code

て烟熏妆下的殇ゞ 提交于 2019-12-23 00:26:09
问题 I have a question regarding updating a application on websphere application server. The application is already up and running and I just want to update the code which is packaged in a .ear file. Here is what I thought I should do: stop the application server. go to my enterprise application, select the one I am updating, and click update. point to my .ear file in replace the entire application radio button option. restart my application server. After doing this and trying out my application,

Updating .ear file on websphere (6.1) still runs old code

夙愿已清 提交于 2019-12-23 00:25:22
问题 I have a question regarding updating a application on websphere application server. The application is already up and running and I just want to update the code which is packaged in a .ear file. Here is what I thought I should do: stop the application server. go to my enterprise application, select the one I am updating, and click update. point to my .ear file in replace the entire application radio button option. restart my application server. After doing this and trying out my application,

Weblogic wrap application exception in javax.ejb.EJBException

爷,独闯天下 提交于 2019-12-22 10:45:38
问题 My ear application was working fine. But suddenly it started to throw javax.ejb.EJBException in some method calls, instead of returning the original Application Exception (annotated with @ApplicationException(rollback=true). Now the original application exception is wrapped in the EJBException. the Currently the other developer who was working in the project is on leave. Therefore I have no idea what he has done to the code for happening this. This application exception and ejb remote

How to stop/start specfic WebSphere-deployed EAR from command line?

て烟熏妆下的殇ゞ 提交于 2019-12-21 12:50:14
问题 I'm throwing a dependency jar into my exploded EAR on WebSphere app server. I need to stop/start the EAR to get WS to execute the new code. Is there a way to do this from command line? 回答1: Try running something like this: /opt/ibm/websphere/appserver/profiles/<MyProfileName>/bin/wsadmin.sh -c "AdminControl.invoke(AdminControl.queryNames('type=ApplicationManager,process=<MyServerName>,*'),'stopApplication','MyAppName')" -lang jython It will prompt you for a WAS Userid and password (in case

How to stop/start specfic WebSphere-deployed EAR from command line?

纵然是瞬间 提交于 2019-12-21 12:50:10
问题 I'm throwing a dependency jar into my exploded EAR on WebSphere app server. I need to stop/start the EAR to get WS to execute the new code. Is there a way to do this from command line? 回答1: Try running something like this: /opt/ibm/websphere/appserver/profiles/<MyProfileName>/bin/wsadmin.sh -c "AdminControl.invoke(AdminControl.queryNames('type=ApplicationManager,process=<MyServerName>,*'),'stopApplication','MyAppName')" -lang jython It will prompt you for a WAS Userid and password (in case

create ear in grails

拥有回忆 提交于 2019-12-21 04:25:25
问题 grails supports creation of war. But is there any command to create an ear through grails? 回答1: There's no direct support in Grails, but this Gant script will do the job. Simply added to scripts/ dir and invoked as grails ear . Script originally posted by Graeme on mailing list includeTargets << grailsScript("_GrailsWar") target(ear: "Creates an EAR file from a Grails WAR") { war() event("StatusUpdate", ["Building EAR file"]) generateApplicationXml() def warDest = new File(warName).parentFile