Autopatch with EAR applicaton on jboss - jboss

Has anyone deployed autopatch (the database upgrade tool) in an ear application (on jboss server). Autopatch supports war kind of applications out of the box but for ear kind of applications it would need some extensions.
Moreover I am unable to provide the .sql files inside the ejb jar inside the ear as the location to look for patches to autopatch. Jboss 5 uses VFS and hence there is no reliable way to know the full URL to the jars.
Thanks in advance.

Related

Is it required to restart JBOSS after updating the module.xml?

I am a Siemens Teamcenter Implementation consultant and have limited knowledge of JBOSS.
I have a question-related to JBOSS module dependencies.
Before asking a question, I will quickly give the background.
Background
JBoss version is EAP 6.1.0 installed in Linux.
For one of the POC in the Teamcenter application, we need to deploy the EAR file in JBOSS.
The company provided the shared JBOSS where other applications from the different departments also using the JBOSS.
JBOSS is used in domain mode.
Problem
For deploying the EAR file for Teamcenter application, I need to update the module.xml with JMX dependency. Since the JBOSS is shared by many applications of different departments, we need to get permission from each of them to restart the JBOSS. ( This restart point I want to confirm)
Question
Is it required to restart the JBOSS for module.xml update?
or
Is there another way to add the dependency in classpath without restarting the JBOSS.
If you edit the module.xml of a module that's been loaded you'll need to restart the server.

Can a sub-web.xml be deployed in jboss application?

I am converting a glassfish web application (.war) to be able to deploy it on a jboss (wildfly) server.
The original glassfish .war contains a sun-web.xml file. I am simply wondering if I'm required to convert the sun-web.xml file before it can be added to the equivalently converted jboss war.
Stated another way, is the sun-web.xml file compatible with only glassfish servers, or it is also applicable/compatible with jboss?
Thank-you kindly

Can we deploy the war file of ADF fusion application into web logic server?

I have created a ADF fusion application deployed in Jdev. When I deploy it as war file in Integrated weblogic server - works fine. When I deployed that as war in standalone weblogic server - it gives me error 500.
In the console (startweblogic.cmd) "java.lang.NoClassDefFoundError: oracle/adf/model/RegionBinding"
So I found on internet that deploying it as EAR the whole application would solve. Yes. It indeed was solved. My application runs fine in standalone weblogic.
Can we not deploy it as war in standalone weblogic?
The war file is working fine in integrated but not in stand alone.
Why?
P.S.: I installed ADF runtime, prepared the deployment profile to deploy as a web application.
I think you should make a quick research on the difference between these two types of archives EAR and WAR, then it should be clear to you.
Anyways, the fact is that you are trying to deploy a Fusion application, which includes in itself two different projects: the ViewController project and the Model one. The reason why on the standalone version it can only work if you deploy as an EAR is that this type of archive can contain several WARs, JARs (and other types of archives). While a WAR can contain only one of the projects (you can create a WAR for each, the Model and the ViewController project) and related jars. But they would be separate, so they would not have access to each-others files. I bet you've tried to deploy the ViewController.war only. This is the reason why you should deploy an .ear on the standalone version.
Instead, the integrated version, if an EAR file is deployed at the application level, and it has dependencies on a JAR file in the data model project and dependencies on a WAR file in the view-controller project. (It means, you are not deploying just the war from JDeveloper, it internally creates an EAR).
I hope this link would be useful.

how to auto explode the jboss deployment

I have a war file (MyApp.war). While deploying in jboss, it is still
in compressed format. But in tomcat it is exploding
and creates a MyApp folder. Is there any way to do that in Jboss eap 5.1?
Actually you will find for web applications an exploded version of your war under JBOSS_HOME\standalone\tmp\work\jboss.web[host-name]. This is also the place where you will find JSP files converted as Servlets. The tmp filesystem is used internally by the application server to store the VFS (Virtual File System) storage. For more info about JBoss storage have a look at this tutorial. Hope it helps.

How to restart only one war in ear in WebLogic?

I have two war files in my ear.
In JBoss I can restart one web application via jmx-console.
Not whole ear, but only one web application.
Administrative Console from WebLogic allows to restart whole ear only.
I cannot restart only one war in ear.
Why?
Within the packaged EAR, it is not possible to only deploy individual WAR.
But if you follow the directory structure required for Weblogic "Split Development Directory", then you can build your individual webapp within the Enterprise App, and get only that webapp reloaded. I'm not sure how this works from admin console.
This uses OOTB ant tasks available with Weblogic.
Essentially this becomes an exploded directory instead of packaged EAR.