How could I get the file running on JBoss AS? - jboss

I'm recoding my project.
It's older version running well on JBoss EAP 6.0
Now, I found an logical error in the code( older version)
The new version would run correctly only under new logic.
But the older version just works well.
I hope to get the war file on JBoss Server, to check the code
Does anyone could show me how to get the file ?

Related

Migration from JBOSS-3.3.2 to JBOSS EAP 7.1

I am in process of migrating one of our web application from JBOSS-3.3.2 to JBOSS EAP 7.1. As Jboss 3 will not support JDK1.8*. I was instructed to migrate the jboss to latest jboss version available in our repository.
I referred the following link but it confuses me as both the versions folder structures are different.
https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1/html-single/installation_guide
One thing I understood is I have to use standalone/deployments folder for my application(war) to be deployed.
In 3.x we have run.jar, run.sh, run.conf. But in newer versions these are not available instead we have jboss-eap.conf, jboss-eap-rhel.sh but no run.jar any where.
Is there any guide or steps available to be followed for migration.
I was not able to find in google.
In the latest JBoss EAP, you have to start the JBoss EAP server using standalone.sh (for standalone mode) or domain.sh(for domain mode) file.
The .sh file is located under $JBOSS_HOME/bin directory.
For configuration, you can configure using standalone.conf or standalone.xml file in standalone mode and for domain mode, you have to add configuration inside domain.xml file.
For migration please refer to the official document.

Missing Jars when switching from Glassfish to Apache Tomcat Webserver on Glassfish using Eclipse

I am developing an Angularjs frontend which talks to a REST backend. I am developing using Eclipse and was using a Glassfish webserver.
I had the need to create htaccess redirect for Angular routes (see here: htaccess redirect for Angular routes) but to do this I need to change my webserver from Glassfish to Apache Tomcat since the htaccess stuff doesn't exist for the Glasshfish webserver.
When I created the new apache tomcat server v8.0, upon starting the log gave multiple errors for missing JAR files. These JARs were:
avalon-framework-4.1.3.jar
batik-css-1.6-1.jar
batik-ext-1.6-1.jar
batik-gui-util-1.6-1.jar
batik-util-1.6-1.jar
commons-configuration-1.5.jar
logkit-1.0.1.jar
nekohtml-1.9.11.jar
xercesImpl-2.8.1.jar
xml-apis-1.3.03.jar
Additionally, it wants the following JAR which doesn't not seem to be around anymore:
antisamy-1.3-SNAPSHOT.jar
A lot of the JARS mentioned above are old versions of the JARS. What can I do about the missing JAR that is not around anymore?
Also, how do I know if these JARs are the most current versions I should be using? (I added all of them I could find manually in the tomcat /lib directory)
Thanks in advance - I'm quite new to all this stuff so go easy on me:)
EDIT 1: I've included the non-snapshot version of the JAR as per unwichtich's answer. However this doesn't fix the error. Why would the Apache Tomcat v8.0 require such old JAR files to work, especially a snapshot jar? Where would one look to see where these JAR's are configured? Is it possible to know which newer versions of the JARs are compatible with my setup?
antisamy-1.3-SNAPSHOT.jar
First, you should NOT depend on SNAPSHOT dependencies, they can change the programs behaviour in the same version....
Second, SNAPSHOT versions might be seen as beta steps to the final release, so you can not expect that these SNAPSHOT versions are still available online when the final version was released.
A quick googling didn't suggest any old link to antisamy-1.3-SNAPSHOT.jar, but you may try this one: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/owaspantisamy/antisamy-bin.1.3.jar. This should be the final of 1.3 and if you are lucky it contains the same API as the SNAPSHOT version you used before. If not, you may have to update your code so that it works with the final.
There seem to be newer versions of the lib, you also may want to try them.

How to download older versions of Glassfish(3.?.?) and use them in Netbeans (8.0) for testing web applications

I would like to use older versions of Glassfish for testing my web applications in Netbeans 8.0. Where/how should I download these older versions of glassfish and how should I configure my Netbeans environment to run on the older versions of Glassfish instead of the the one (4.0) which came with my netbeans install?
You can get the older versions from the official glassfish.java.net page:
Glassfish 3.0.1: https://glassfish.java.net/downloads/3.0.1-final.html
Glassfish 3.1.1: https://glassfish.java.net/downloads/3.1.1-final.html
Glassfish 3.1.2: https://glassfish.java.net/downloads/3.1.2-final.html
Glassfish 3.1.2.2: https://glassfish.java.net/downloads/3.1.2.2-final.html
It is sufficient to get the zip file versions.
A mirror and some even older versions can be found on the oracle technetwork: http://www.oracle.com/technetwork/middleware/glassfish/downloads/index.html
To add the servers in NetBeans go to the Services tab and right-click on Servers and click Add Server. Choose GlassFish Server and a name (containing the version number), click Next and choose the folder where you extracted the specific version.
Repeat this for the all the versions you need. You can choose the desired server for each NetBeans project in the project properties (in the Run tab).

Do the jBPM 5.4 WARs run under Wildfly 8.0?

I have just gotten Wildfly 8.0 running and integrated with Eclipse (Kepler). I've tried to deploy the following jBPM 5.4 files:
designer
drools-guvnor
jbpm-form-builder
jbpm-gwt-console
jbpm-gwt-console-server
jbpm-human-task-war
but they do not deploy - numerous errors. I just placed them in the .\deployments folder which works under JBoss 7.1. Is this expected behavior? Does this mean that if I want to run Wildfly (which fixes the failure to clean up the 1GB of deployed jBPM files upon shutdown) I have to upgrade everything to the jBPM 6 CR2?
Thank you.
Al
I would recommend you to upgrade to 6.x, we are all working with that version now, so if you have troubles with that let us know and we can looking to fix it.

Undeployment fails for GWT application in tomcat 7

I am using the cargo-maven2-plugin:1.2.0 to do redeployments of my GWT 2.4.0 based web application to Apache Tomcat 7.0.25 1.6.0_30-b12 Sun Microsystems Inc. Windows Server 2008 R2 6.1 amd64).
The initial deployment works fine. I immediately try to undeploy the application using the tomcat manager when I receive the following error message:
org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Unable to delete [C:\apache-tomcat7\webapps\mywebapp]. The continued presence of this file may cause problems.
From tomcat the war file and most of the unzipped web application files have been successfully removed. But it fails to delete two libraries from mywebapp\WEB-INF\lib:
gwt-user-2.4.0
servlet-api-2.3
When I now wait half a minute and trigger the undeploy again, it works.
Did anybody experience the same or a similar behavior?
I already tried to debug using PSI Probe for Tomcat but that didn't really give me any insights. What could I try next?
Both files shouldn't be deployed in the first palce. First gwt-user-2.4.0 is the complete gwt jar file. For deployment only the server specific version needs to be deployed: gwt-servlet-2.4.0.jar. The servlet-api-2.3 is already available in the tomcat lib directory. So you should set both files to provided and if you not yet have the gwt-servlet jar file, add that file to you dependencies.