SEAM projects run in JBoss AS? - java

How do I run Seam applications in JBoss AS?
I put JBoss SEAM as a dependence (using MAVEN2) of my project and deployed it in JBoss AS - just that will sufice to make my project work properly (with all the features provided by JBoss Seam) or do I need to modify JBoss AS in any way (like, for example, include some extra seam library in the lib directory of JBoss AS)?

You don't have to modify your JBoss AS installation, deploying the SEAM JARs as part of your application EAR should work perfectly.

mvn archetype:generate
option 20 and follow steps, you should have a good start up pom.xml.

Related

Eclipse not showing project for the server

I have problem with the Eclipse and the servers... I had installed the Weblogic server and after configuring everything I was able to see the projects when I clicked on servers and try to Add and Remove. But later I needed to install also the Tomcat and for some reason after that I was not able to see the projects there... I removed the Tomcat, but it did not solve the problem. Also I've:
Configured the project facet to use Dynamic Web Module and Java.
Selected Weblogic in Targeted Runtimes.
I checked if Java runtimes are the same for each project and also the server.
I compared the properties and configurations of each project module of the same project on another PC. It looks the same. And on other PC it works. On mine it also worked at the beginning. What is more, the configuration of the project on this other PC was prepared based on my configuration in Eclipse...
I don't know what I should do to make it work again... Maybe some hidden configuration files or properties? I don't know...
BTW what will happen if I would remove this folder:
.metadata\.plugins\org.eclipse.core.resources\.projects ??
Some information:
Server Oracle Weblogic 12c
Tomcat no longer needed, so has been removed
Eclipse Neon 4.x (I will update this tomorrow, because I don't remember)
Runtimes set up for JRE 7
Maven project devided into submodules: 2 ears, each contains 1 war, both wars contains common 2 jars.
EAR projects has EAR 6.0 in facet configuration
WAR projects has Dynamic Web Module 3.0, Java 7, JPA 2.0 (probably) and Javascript in facet
JAR projects just Java 7
There is also other Gradle project, the front-end one, which looks like that: EAR which contains the WAR
Here in facet is also the same situation like with Maven projects

Deploy jar with embedded jetty with maven

I have a (large) maven-web-project with many dependencies. The project runs an embedded jetty.
For some (customer related) reasons I cannot package a war to deploy it to some application server like a standalone jetty or tomcat.
Now I need to deploy the whole project with all dependencies-jars and the web-root stuff to some production-server, where I can start by command line the embedded jetty like java -jar myproject.jar.
How can I build such a package with maven. I tried maven-assembly-plugin, but I do not want to re-pack jars. (IMHO this is not a really good idea.)
I need to package some zip or tar like:
myproject.zip
--myproject.jar
--META-INF (with the whole classpath and may be the auto-start class)
--libs
--slf4j.jar
--logback.jar
--hibernate.jar
--and many, many more.
Any ideas? TIA!
If you use Spring you can use Spring Boot which does this by default. By using Spring Boot maven plugin it will build you a uber jar containing all your dependencies and an embed tomcat or jetty.

Jboss Quickstart using Maven (jboss-as:deploy)

I am new to Maven, I am trying to go through the EAP(JBoss) clusterhasingleton quick start guide.
http://www.jboss.org//quickstarts/eap/cluster-ha-singleton/index.html
I can deploy the jar and everything works fine by running
mvn clean install jboss-as:deploy
I need someone to please explain what does "Deploy" mean in Maven/EAP as i have used JBoss 5 and deployment in that version meant copying the jar in deployments folder(i was using ant) where as i can't find the jar file in the deployments folder in EAP although everything is working.
I can see the jars in the local repository in .m2 folder and target folder in the workspace. How does Jboss know that is deployed? and does it look at the local repository and how?
Kind Regards,
Why does it matter?
In any case the maven repo is not relevant. In JBoss 5/6, placing applications in the "deploy" directory would indicate to JBoss that those applications should be deployed.
You can do the same thing in JBossAS 7.x (aka EAP 6) and WildFly 8.x using the "deployments" directory.
It's important to understand that deployments are not in-situ. The actual deployment is stored in a virtual file system. The deployment is written directly to this VFS when you use the maven tool.
The deployment process is much more than just copying WAR and EAR artifacts into the server. For instance, servlets, EJBS, JPA components, CDI components and other managed objects get wired up, validated and perhaps made available in JNDI.

How to deploy & run multiple war deployment in Jboss AS

How to deploy & run multiple war deployment in Jboss AS.
We have two different war in abc.war, xyz.war inside Jboss 5. How to start
by specific instance of war from command prompt. Looking for command.?
You have not specified the JBoss version you are using. Jboss 7 offers command level interface (CLI) to do this. Please check this link. Here is another related detailed post.

deploy maven war file to tomcat from IntelliJ

I have a maven war project. How can I do do the following from within IntelliJ IDEA:
create .war file
deploy it to a local Tomcat
start Tomcat in debug mode
You need to configure maven-war-plugin to build your war. tomcat<x>-maven-plugin will allow you to deploy it to a tomcat instance and may in fact do the war generation too - I use JBoss at my current office so haven't got any experience with the maven tomcat integration.
see http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/ and http://maven.apache.org/plugins/maven-war-plugin/ for some more details on both of these plugins.
You can use the cargo plugin too. It works pretty well for me.

Categories

Resources