Error deploying ADF App (Fusion Web Application) to JBOSS 7 AS - jboss

When i'm deploying ADF App in JBOSS AppServer it gives me the following error:
[02:53:17 PM] Target platform is (JBoss 5.x).
[02:53:17 PM] Running dependency analysis...
[02:53:17 PM] Building...
[02:53:17 PM] Deploying profile...
[02:53:17 PM] ADF shared library is not available, implicitly deploying library ADF Controller Runtime
[02:53:17 PM] ADF shared library is not available, implicitly deploying library ADF Controller Schema
[02:53:17 PM] ADF shared library is not available, implicitly deploying library ADF Page Flow Runtime
[02:53:18 PM] Wrote Web Application Module to C:\JDeveloper\mywork\ola\ViewController\deploy\ola_ViewController_webapp.war
[02:54:48 PM] Copied C:\JDeveloper\mywork\ola\ViewController\deploy\ola_ViewController_webapp.war to //10.10.1.11/jboss-as-7.1.1.Final/standalone/deployments/ola_ViewController_webapp.war
[02:54:48 PM] Elapsed time for deployment: 1 minute, 30 seconds
[02:54:48 PM] ---- Deployment finished. ----
On the JBoss side it gives me the stack error:
http://justpaste.it/zom
I guess the problem is that is missing the three .jar classes but i canĀ“t find it anywhere.
Thanks in advance.

Does your deployment EAR file contains the libraries for Oracle ADF Faces where the missing class is - oracle.adf.view.faces.bi.webapp.GraphServlet d

Make sure your web.xml is configured to have the jspx files handled by the Faces servlet.
Looks like right now it just sees this as a text file that needs to be delivered "as is".

Couple of things:
The deployment ear file needs the ADF libraries.
Add /faces/ to your url, for example: http://localhost:8080/warfilename/faces/page.jsf

Related

Missing .class files in Eclipse O2/Wildfly 10.1.0 war deployment

I am working on a project to manage and orchestrate a legacy Wildfly Java/Maven web application. I know very little about the application itself, and frankly, not much about Wildfly. I am using Eclipse Oxygen and Wildfly 10.1.0 with the JBoss plugin.
I am following sketchy deployment instructions for the app and they're not working. However, this application has deployed for other folks on the project.
When publishing the app (I've tried clean, publish, full publish etc.), the resultant exploded war in standalone/deployment is missing .class files. However, the missing .class files are present in the taget directory and they are in the .WAR file, they're just not in the Widlfly deployment.
This application builds two base 'com' packages. Let's call them com.rrr and com.ttt for anonymity.
When the application builds, there is the expected WEB-INF/classes/com directory structure (in target and the war) with all package directories and all .class files present.
When deployed to Wildfly, all of the package directories are present for both com.rrr and com.ttt, however, there are .class files in the com.ttt packages, but there are NO .class files in the com.rrr packages.
So, when I try and deploy the app using the JBoss/Eclipse plugin, I'm getting:
Caused by: java.lang.ClassNotFoundException: com.rrr.ui.servlet.ActionServlet from [Module "deployment.myapp-18.1.0.0.war:main" from Service Module Loader]
Again, this deployment works for others (who are unavailable at this time) so I don't think it's a project issue. Perhaps I have configured something wrong based on the sketchy instructions?
Any guidance on what to look for or how to solve this would be appreciated.

Eclipse Unable to publish to WeSphere

I have a mabven project structure as follow
project1
-- Main pom is here
project2
-- This is my EAR project
Project3
-- This is my JAX-WS client project
Project4
-- This is my EAR project
All of these are bundled together in a single EAR file. Maven build run successfully and ear also gets deployed to WebSphere(v7) from ADMIN console.
But When I am trying to publish it to WAS from eclipse(I have web sphere developer tools plugin installed in my Eclipse) it shows some weird error as follows..
javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Workspaces/Project3/target/classes/META-INF/wsdl/'.: org.xml.sax.SAXParseException: Content is not allowed in prolog.
Any help will be appreciated.

Embedded Message Driven Resource Adapter fails to deploy

I have been struggling to get an example of a Message driven (inbound) resource adapter to deploy and interact with an EAR on Wildfly 8.2.0.
I used this Java EE 7 JCA sample as the basis of my application.
I can see in the log files that the Resource Adapter gets deployed
INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-2)
IJ020002: Deployed: file:/C:/Software/jboss/wildfly/8.2.0.Final/standalone/tmp/
vfs/deployment/deployment4490b91cd6391845/jca-ra.rar-86794a0699d3da23/contents/
but when the MDB gets initialised I get the following error:
Caused by: java.lang.IllegalStateException: JBAS014521: No message listener
of type org.javaee7.jca.filewatch.adapter.FileSystemWatcher found in
resource adapter jcaInflowApp.ear#jca-ra.rar
The message listener is definitely in the RAR and the RAR is embedded in that location in the EAR.
I've uploaded the code base that I've been working on up to github - hopefully somebody can peruse and see what the issue is?
EDIT for anybody that wants to see a working JBoss example please see the github repo
The issue is duplicate JAR's containing message listener within your EAR. Change the scope of JAR to provided so that it does not get bundled inside lib folder. I've sent you a PR with the fix.

Remote deploy artifact to Jboss AS using JRebel

Just trying to setup remote deployment of projects to Jboss AS 4.2.1 using Jrebel.
After enabling the JRebel for my project in eclipse along with the remoting feature, it asks for the deployed app's URL in the server. How do I get to know the URL of my project so that I can mention that in the JRebel remoting section?
I thought of looking it up in the JMX console but my project jar will reside in the lib folder of the EAR that's deployed to the server, so I wasn't able to locate it there. Can anyone help me out?
JRebel Remoting requires a HTTP facing component to function. It makes use of the HTTP protocol using the same port as the web container. This means zero conf (sort of) and no holes to poke into the firewall, but the downside is that it won't work for apps with no WAR module in them (yet :)).
I assume your app is a jar file inside an ear. All it needs is a war module in that ear. That war does not need to have rebel.xml nor rebel-remote.xml in it. Create the WAR if one does not exist.
The URL would be the address you have to enter in a web browser to access that webapp. For example http://example.org:8080/MyWar/
Also make sure you have the rebel.xml and rebel-remote.xml in the deployed library project (simply creating them in Eclipse is not enough, those two xml files have to end up in the server).
Also, you need to install and activate JRebel on the remote server machine, then start JBoss with the following JVM arguments: -javaagent:path/to/jrebel.jar -Drebel.remoting_plugin=true
where path/to/jrebel.jar points to the installed jrebel.jar file
More info: http://zeroturnaround.com/software/jrebel/remoting/
In your case the layout of the EAR could look like this:
- myapp.ear
- webapp.war
- someEJB.jar
- lib/
- yourApp.jar
- WEB-INF/classes/
- rebel.xml
- rebel-remote.xml
- someOtherLib.jar
--
Arnel
JRebel Remoting Tech Lead

JBPM workflow deployment into alfresco error

I'm getting the following error when deploying from JBPM eclipse interface to alfresco. This happens when I select 'classes and resources to include in process archive', like 'src/main/java' etc.
Exception happened while deploying
java.lang.NullPointerException
at org.jbpm.gd.jpdl.util.ProcessDeployer.addClassOrResource(Unknown Source)
It was working perfectly, just stopped working suddenly. Any clues?
Thanks.
You should try not selecting anything in the Java Classes and Resources pane. You should be able to deploy your process definition XML file. If you have Java classes specific to your process definition, just have your build script JAR those up alongside your other Alfresco related Java classes you may have and put those in WEB-INF/lib.